function flip(x)
{
//document.getElementById(x).background="images/menu2.gif";
}
function uflip(x)
{
//document.getElementById(x).background="images/menu1.gif";
}


function isblank(s) 
    {
      for (var i=0; i < s.length; i++) {
          var c = s.charAt(i);
          if ((c != '') && (c != '\n') && (c != '\t')) return false;
        }
        return true;     
     }  
   function verifyFrm(fr)
    {
     var ermsg;
     var errors = "";
     var empty_str = "";
     ermsg = "" ;
     ermsg += "The Form was not submited because of the following error(s).\n";
     ermsg += "Please Correct these error(s) then re-submit. \n";
     ermsg += "" ;
    
            
               
     if ((fr.Name.value == null) || (fr.Name.value == "") || isblank(fr.Name.value))
        { 
          empty_str += "Name. \n";
        }  
                           
     if ((fr.email.value == null) || (fr.email.value == "") || isblank(fr.email.value))
        { 
          empty_str += "E-mail. \n";
        }
        
      if ((fr.City.value == null) || (fr.City.value == "") || isblank(fr.City.value))
        { 
          empty_str += "City. \n";
        }
        
 	if ((fr.Country.value == null) || (fr.Country.value == "") || isblank(fr.Country.value))
        { 
          empty_str += "Country. \n";
        }
        
      	if ((fr.Telephone.value == null) || (fr.Telephone.value == "") || isblank(fr.Telephone.value))
        { 
          empty_str += "Telephone.";
        }   
        
     if (!empty_str && !errors) return true;

     if (empty_str) {
         ermsg += "-The following required field(s) are empty :\n" + empty_str; 
        }
     if (errors) {
         ermsg += errors ;
        }
     alert (ermsg);
     return false ;

    }