var mh
var marginH = 410;
var OS = navigator.userAgent.match(/Mac/)? "mac" :"win"

function fixh(h){
	//Netscape
	if( navigator.appName.charAt(0)=="N"){
		if(window.innerHeight > (marginH + h)){
			mh = window.innerHeight - (marginH + h + 22);
		}else mh = 1;
	}else{
		if(document.body.clientHeight > (marginH + h)){
			if(OS == "mac"){
				//alert("Mac IE")
				mh = document.body.clientHeight - (marginH + h + 10);
			}else{
				//alert("Win IE")
				mh = document.body.clientHeight - (marginH + h + 15);
			}
		}else mh = 1;
	}
	document.writeln('<img src="spacer.gif" alt="" width="1" height="' +mh+'">');
}



// Reload NS
if (document.layers) {
	window.captureEvents(Event.RESIZE);
	window.onResize = reloadPage;
}

function reloadPage(e) {
	window.location.reload();
}

function openwin(url,wname,w,h,toolbar,resizable,scrollbars){

	win_set = 'width=' + w;
	win_set += ',height=' + h;
	win_set += ',toolbar='+ toolbar;
	win_set += ',resizable='+ resizable;
	win_set += ',scrollbars=' + scrollbars;
	win_set += ',menubar=no';

	swin = window.open(url,wname,win_set);
}


