// JavaScript Document

function callRadio()
{
	//alert("call radio");
	parent.frmRadio.location.href='radio_popup.php';
	//document.frmRadio.location.href='radio_popup.php';
}
function createCookie(name,value,days)
{
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	var ck = name+"="+value+expires+"; path=/";
	document.cookie = ck;
}


function saveIt(name,value)
{
	if(value=='OFF')
	{
	parent.frmRadio.location.href='temp.htm';
	//document.frmRadio.location.href='temp.htm';
	}
	var x = value;
	createCookie(name,x,7);
	
}

	function Check()
	{
		if(document.index.key.value=="")
		{
			return false;
		}
		else
			return true;
	}
	var wOpen = null;
    var sOptions;
	function IsRadioPopupClose()
	{
		 if((wOpen==null)||(wOpen.closed))
		 {
			return true;
		 }
		 else
		 {
		 	return false;
		 }
	}
function f_open_Radio_max( aURL, aWinName )
{
   sOptions = 'status=yes,menubar=yes,scrollbars=yes,resizable=yes,toolbar=yes,location=yes';
   sOptions = sOptions + ',width=' + (screen.availWidth - 10).toString();
   sOptions = sOptions + ',height=' + (screen.availHeight - 122).toString();
   sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';

  if(IsRadioPopupClose())
  {
   wOpen = window.open( '', aWinName, sOptions );
   wOpen.location = aURL;
   wOpen.focus();
   wOpen.moveTo( 0, 0 );
   wOpen.resizeTo( screen.availWidth, screen.availHeight );
   return wOpen;
   }
}

