// =====================================
var menuXpos
function calMenuPos(){
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
		menuXpos = (myWidth/2-64);
		} 
	else {
		if(document.documentElement &&	(document.documentElement.clientWidth || document.documentElement.clientHeight)){
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
			menuXpos = (myWidth/2-64);			
		} 
		else{
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
				menuXpos = (myWidth/2-64);
				}
			}
		}
	}
function popupWindowNoScroll(url,name,width,height) {
		newwindow4 = window.open(url,name, "width="+width+",height="+height+",toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=1,copyhistory=0,left="+menuXpos+",top=268");
		newwindow4.focus();
	}	
