function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600');");
}

function popUpSmall(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=450');");
}

function popUpSmaller(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=375');");
}

function onAir()
{
   // return TRUE if it's Mon through Thurs, 7a-7p UTC
   // or if it's Fri, 7a-5p UTC
   
   var thedate   = new Date();
   var dayofweek = thedate.getUTCDay();
   var hourofday = thedate.getUTCHours();
   
   //document.write(dayofweek);
   //document.write(hourofday);

   if ((dayofweek == 5) && (hourofday > 12 && hourofday < 24))
   {
     return true;
   } 
   else if ((dayofweek > 0 && dayofweek < 5) && (hourofday > 12 && hourofday < 26))
   {
     return true;
   }
   else return false;
}
