var thechild;
function pu_Open(bUrl, bName, bWidth, bHeight)
{
	thechild = window.open(bUrl,bName,'location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,width='+bWidth+',height='+bHeight);
	if(typeof thechild != 'undefined')
		thechild.focus();
		
	return;
}

function pu_OpenScroll(bUrl, bName, bWidth, bHeight)
{
	thechild = window.open(bUrl,bName,'location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no,width='+bWidth+',height='+bHeight);
	if(typeof thechild != 'undefined')
		thechild.focus();
		
	return;
}


function myClose()
{
	if (typeof thechild != 'undefined') {
		thechild.close();
	}
}
		
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);
}

