function popitup(url,w,h,s) {
	newwindow=window.open(url,'name','height='+h+',width='+w+',scrollbars='+s);
	if (window.focus) {newwindow.focus()}
	return false;
}

function fullScreen(url) {
	// parameters: url = URL of the popup window

	var w = screen.width; //fixed width
	var h = screen.height; //fixed height
	
	leftPosition = 0; // centering horizontal position to middle of screen
	topPosition = 0; // centering vertical position to middle of screen
	if (h<800)	{
		var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no'; //set popup window properties
	} else	{
		var windowprops = 'width=' + w + ',height=' + h + ',top='+ topPosition +',left='+ leftPosition +',toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no'; //set popup window properties
	}
	var popup = window.open(url,'remote',windowprops); // open popup window with properties
	popup.moveTo(0,0)
	popup.resizeTo(screen.width,screen.height);
	popup.focus(); // focus on window
}
