function mailsome1(){
  mymail = "sales@acever.com";
  company = document.mail.Company.value;
  country = document.mail.Country.value;
  address = document.mail.Address.value;
  tel = document.mail.Tel_Country.value+"-"+document.mail.Tel_Area.value+"-"+document.mail.Tel_Code.value;
  fax = document.mail.Fax_Country.value+"-"+document.mail.Fax_Area.value+"-"+document.mail.Fax_Code.value;
  email = document.mail.EMail.value;
  site = document.mail.Site.value;
  subject = document.mail.Subject.value;
  
  if (company == "")
  {
  	alert("company is a mandatory field.\nPlease amend and retry.");
  	return false;
  }
  
  if (country == "--Select--")
  {
  	alert("country is a mandatory field.\nPlease select a country.")
  	return false;
  }
  
  if (address == "")
  {
  	alert("address is a mandatory field.\nPlease amend and retry.");
  	return false;
  }
  /*
  if (£¡IsNumeric(document.mail.Tel_Country.value) 
  		|| £¡IsNumeric(document.mail.Tel_Area.value) 
  		|| !IsNumberic(document.mail.Tel_Code.value))
  {
  	alert("Telephone Number is error.\Please amend and retry.");
  	return false;
  }
  */
  if (email == "")
  {
  	alert('A valid e-mail address is required.\nPlease amend and retry');
  	return false;
  }
  
  if (subject == "")
  {
  	alert("subject is a mandatory field.\nPlease amend and retry.");
  	return false;
  }
  
  content = "[Company]:" + company + "  " + "\n";
  content += "[Country]:" + country + "  " +'\n';
  content += "[Address]:" + address + "  " + '\n';
  content += "[Telephone Code]:" + tel + "  " +'\n';
  content += "[Fax Code]:" + fax + "  "  + '\n';
  content += "[Email]:" + email + "  " + '\n';
  content += "[Site]:" + site + "  " + '\n';
  content += document.mail.Content.value;
		
  document.mail.Content.value = content;
  parent.location.href="mailto:"+mymail+"?subject="+subject+"&body="+document.mail.Content.value;
location.replace("http://www.acever.com");
}

//function to check valid email address
function isValidEmail(strEmail){
  validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
  strEmail = document.forms[0].email.value;

   // search email text for regular exp matches
    if (strEmail.search(validRegExp) == -1) 
   {
      return false;
    } 
    return true; 
}

function IsNumeric(sText)
{
   var ValidChars = "0123456789";
   var IsNumber=true;
   var Char;

 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return true;
   
}


function Inquiry(){
	mymail = "acever@yahoo.com";
	companyName = document.frmInquiry.companyName.value;
	contactPerson = document.frmInquiry.contactPerson.value;
	contents = document.frmInquiry.contents.value;
	
	subject = document.frmInquiry.productName.value;
	content = "[Company]:" + companyName;
	content += "[Contact Person]:" + contactPerson
	content += "[email]:" + document.frmInquiry.email.value;
	content += "[Contents]:" + contents;
	parent.location.href="mailto:"+mymail+"?subject="+subject+"&body=" + content;
  
}