function checkGSearch()
{
  var valid=false;
 if(Sform.q.value=="")
 {
   alert("Search Key Word Field Can't left blank");
   Sform.q.focus();
 }
 else
 {
  valid=true;
 }
 return valid;
}

function subscribe(email)
{
  var valid=false;
 if(email_Form.email.value=="")
 {
   alert("Email Field Can't be lle ft blank");
   email_Form.email.focus();
 }
 else if(email_Form.email.value.indexOf('@')<1)
 {
   alert("Invalid Email Address");
   email_Form.email.focus();
 }
  else if(email_Form.email.value.indexOf('.')<2)
 {
   alert("Invalid Email Address");
   email_Form.email.focus();
 }
 else
 {
   valid=true;
   window.open('subscribe-email.asp?email='+email+' ','subscribePage','width=500,height=500');
 }
 
}

function checkPage()
{
  var valid=false;
  if(Pform.p.value=="")
 {
   alert("Page No. Field Can't be left blank");
   Pform.p.focus();
 }
 else if(isNaN(Pform.p.value))
 {
   alert("Invalid Page Number");
   Pform.p.focus();
 }
 else
 {
   valid=true;
 }
  return valid;
}

function checkOrderForm()
{
  var valid=false;
  if(Oform.msg.value=="")
 {
   alert("Comment / Query Field Can't be left blank");
   Oform.msg.focus();
 }
 else if(Oform.name.value=="")
 {
   alert("Name Field Can't be left blank");
   Oform.name.focus();
 }
 else if(Oform.tc.value=="")
 {
   alert("Country Code Field Can't be left blank");
   Oform.tc.focus();
 }
 else if(isNaN(Oform.tc.value))
 {
  alert("Invalid Country Code, Pls Try Again");
  Oform.tc.focus();
 }
 else if(Oform.ts.value=="")
 {
   alert("City Code Field Can't be left blank");
   Oform.ts.focus();
 }
 else if(isNaN(Oform.ts.value))
 {
  alert("Invalid City Code, Pls Try Again");
 Oform.ts.focus();
 }
 else if(Oform.tp.value=="")
 {
   alert("telephone Number Field Can't be left blank");
   Oform.tp.focus();
 }
 else if(isNaN(Oform.tp.value))
 {
  alert("Invalid Telephone Number, Pls Try Again");
 Oform.tp.focus();
 }
 else if(Oform.email.value=="") 
 {
   alert("Email Field Can't be left blank");
   Oform.email.focus();
 }
 else if(Oform.email.value.indexOf('@')<1)
 {
   alert("Invalid Email Address");
   Oform.email.focus();
 }
 else if(Oform.email.value.indexOf('.')<2)
 {
   alert("Invalid Email Address");
   Oform.email.focus();
 }
 else if(Oform.address.value=="")
 {
   alert("Address Field Can't be left blank");
   Oform.address.focus();
 }
 else if(Oform.country.value=="")
 {
   alert("Country Name Field Can't be left blank");
   Oform.country.focus();
 }
 else
 {
   valid=true;
 }
  return valid;
}


function checkOrderForm2()
{
  var valid=false;
  if(xForm.msg.value=="")
 {
   alert("Comment / Query Field Can't be left blank");
   xForm.msg.focus();
 }
 else if(xForm.name.value=="")
 {
   alert("Name Field Can't be left blank");
   xForm.name.focus();
 }
 else if(xForm.tc.value=="")
 {
   alert("Country Code Field Can't be left blank");
   xForm.tc.focus();
 }
 else if(isNaN(xForm.tc.value))
 {
  alert("Invalid Country Code, Pls Try Again");
  xForm.tc.focus();
 }
 else if(xForm.ts.value=="")
 {
   alert("City Code Field Can't be left blank");
   xForm.ts.focus();
 }
 else if(isNaN(xForm.ts.value))
 {
  alert("Invalid City Code, Pls Try Again");
  xForm.ts.focus();
 }
 else if(xForm.tp.value=="")
 {
   alert("telephone Number Field Can't be left blank");
   xForm.tp.focus();
 }
 else if(isNaN(xForm.tp.value))
 {
  alert("Invalid Telephone Number, Pls Try Again");
  xForm.tp.focus();
 }
 else if(xForm.email.value=="") 
 {
   alert("Email Field Can't be left blank");
   xForm.email.focus();
 }
 else if(xForm.email.value.indexOf('@')<1)
 {
   alert("Invalid Email Address");
   xForm.email.focus();
 }
 else if(xForm.email.value.indexOf('.')<2)
 {
   alert("Invalid Email Address");
   xForm.email.focus();
 }
 else if(xForm.address.value=="")
 {
   alert("Address Field Can't be left blank");
   xForm.address.focus();
 }
 else if(xForm.country.value=="")
 {
   alert("Country Name Field Can't be left blank");
   xForm.country.focus();
 }
 else
 {
   valid=true;
 }
  return valid;
}
