function getW()
{
	var winW;
	if (parseInt(navigator.appVersion)>3) {
	
	 if (navigator.appName=="Netscape") {
		winW = window.innerWidth;
		window.scrollbars.visible='no';
	 }
	 else if (navigator.appName.indexOf("Microsoft")!=-1) {
		winW = document.body.offsetWidth;
		document.body.scroll="no";
	 }
	 else // OPERA
	 {
	 	winW = document.body.offsetWidth;
	 }
	 
	}		
	return winW;
}

function getH()
{
	var winH;
	if (parseInt(navigator.appVersion)>3) {
	
	 if (navigator.appName=="Netscape") {
		winH = window.innerHeight;
		window.scrollbars.visible='no';
	 }
	 else if (navigator.appName.indexOf("Microsoft")!=-1) {
		winH = document.body.offsetHeight;
		document.body.scroll="no";
	 }
	 else // OPERA
	 {
	 	winH = document.body.offsetHeight;
	 }
	 
	}		
	return winH;
}

function openIt(url) {				

	window.open(url,"nom_popup","menubar=no, status=no, scrollbars=yes, resizable=yes, menubar=no, width=800, height=450");
}

function openfullscreen(name, url) {
	
	//Check browser
	var isNav = (navigator.appName == "Netscape")?1:0;
	var isIE = (navigator.appName.indexOf("Microsoft")!= -1)?1:0;
	//Check Platform
	var isMac=(navigator.platform.indexOf("Mac")>-1)?1:0;
	var isWin=(navigator.platform.indexOf("Win")>-1)?1:0;
	//Set global window options
	var opts = "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizeable=yes,copyhistory=no,menubar=no";

	//Set platform and browser specific options
	if (isNav)
	{
		//Navigator windows have outerWidth and outerHeight properties	
		//use these to set window size to the available screen height and width
		opts = opts+",outerWidth="+screen.availWidth+",outerHeight="+screen.availHeight+",­screenX=0,screenY=0";	
	}
	else if (isIE) {
		//IE has a "full-screen" option which can be used by placing "fullscreen=yes" here
		opts = opts+",left=0,top=0";
		//To size the window (rather than open in fullscreenmode) we need to know the padding
		//i.e. the space taken by the title bar and windowedges. These values are subtracted
		//from the available screen width and height (differentfor Macs). If the new window
		//is opened with toolbars, status bar, etc. the valueshere should be changed to
		//compensate for the new features.
		if (isMac) {
			//this uses a value of 13 for the extra width and 32 for the extra height
			opts = opts+",width="+(screen.availWidth - 13)+",height="+(screen.availHeight - 32);
		} else if (isWin) {
			//this uses a value of 12 for the extra width and 25 for the extra height
			opts = opts+",width="+(screen.availWidth - 12)+",height="+(screen.availHeight - 25);
		} else {
			opts = opts+",width="+screen.availWidth+",height="+screen.availHeight;
		}
	} else {
		//return;
	}
	
	//Open a new window
	var newWin = window.open(url,name,opts);
	newWin.focus();
	
	//Move to 0,0 (JavaScript 1.2)
	if (parseInt(navigator.appVersion) >= 4) {
		newWin.moveTo(0,0);
	}
} 

