function init(cols, spc) {
	
	var cnt = getDIV('content');
	var ftr = getDIV('footer');
	var h1 = 0;
	var h2 = 0;
	var h3 = 0;
	var h = 0;
	//alert(1);
	if (cols > 0 && cols <= 3) {
		col1 = getDIV('columnOne');
		h1 = col1.scrollHeight || col1.offsetHeight;
		h2 = 0; h3 = 0;
	} else { return; }
	if (cols > 1 && cols <= 3) {
		col2 = getDIV('columnTwo');
		h2 = col2.scrollHeight || col2.offsetHeight;
		h3 = 0;
	}
	if (cols == 3) {
		col3 = getDIV('columnThree');
		h3 = col2.scrollHeight || col2.offsetHeight;
	}

	var y =  cnt.offsetTop + col1.offsetTop;
					
	if (h1 >= h2 && h1 >= h3) { h = y+h1+spc; }
	if (h2 >= h1 && h2 >= h3) { h = y+h2+spc; }
	if (h3 >= h1 && h3 >= h2) { h = y+h3+spc; }

	ftr.style.top = h;
	ftr.style.visibility = 'visible';
}
				function popUp(u,w,h,o) {
				// pops open a popup window, window object popUp(string u url, int w width, int h height, string o options)
				// example popUp('popup.html',400,300,'location,scrollbars');
					if (window.popWin && !popWin.closed) {
	 					if (o != popWinOptions) {
							popWin.close();
							popUp(u,w,h,o);
						} // ensure that the same options apply
						if (popWin.resizeTo) {
							popWin.resizeTo(w,h);
						} else {
							popWin.outerWidth = w;
							popWin.outerHeight = h;
						}
						popWin.location = u;
						popWin.focus();
						return popWin;
					} else {
						if (o) {
							popWin = window.open(u,'pop','width='+w+',height='+h+','+o);
							popWinOptions = o;
						} else {
							popWin = window.open(u,'pop','width='+w+',height='+h);
							popWinOptions = '';
						}
						popWin.opener = window;
						popWin.focus();
						return popWin;
					}
				}

				function popDown() {
				// closes the popup when this window regains focus
				// call in the body tag onFocus event
					if (window.popWin && !popWin.closed) {
						popWin.close();
					}
				}
