function CheckEmptyField( theField, theMessage ) 
{
    if( theField.value=="" ) 
    {
        theField.focus();
        alert(theMessage);
        return false;
    } 
    else 
    {
        return true;
    }
} 

function CheckEmptyRadio( theRadio, theMessage ) 
{
    for (var i=0; i < theRadio.length; i++)
   {
   if (theRadio[i].checked)
      {
        return true;
      }
   }
   alert(theMessage);
   return false;
}

