
function pu_Open(bUrl, bName, bWidth, bHeight)
{
	var viewerpop = window.open(bUrl, null, 'location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,width='+bWidth+',height='+bHeight);
	viewerpop.focus();
}

function WaitForLoading()
{
	pu_Open('' + document.forms[0].elements['fhdVpath'].value + 'StandBy/StandBy.html', 'standby', 200, 50);
	return true;
}

function myFullscreen(theURL) {
  window.open(theURL,'myName','width='+ window.screen.width +',height=' + window.screen.height + ',top=0,left=0,resizable=yes, scrollbars=yes');
}

function myResolutionScreen(theURL){
  theURLname	  = theURL.substring(0,theURL.indexOf('.'));
  theURLExtension = theURL.substring(theURL.indexOf('.'), theURL.length);

  wscreen  = window.screen.width;
  hscreen  = window.screen.height;
  
  if (wscreen > 800 && hscreen > 600){
	myFullscreen(theURLname + 'Big' + theURLExtension);}
  else 
	myFullscreen(theURLname + 'Little' + theURLExtension);
		if (arguments.callee.caller.arguments[0])
		arguments.callee.caller.caller.arguments[0].preventDefault();
	else
		event.returnValue = false;		

}