
<!--
function checkddemail(toCheck) {
  var i = 0
  var isNum = true;
  for (j = 0; j < toCheck.length; j++) {  if ((toCheck.substring(j,j+1) == "@")) {i++;}  }
  if ( i > 1) { isNum = false; }  return isNum;
}

function testForms(){
  var tmpfrm=document.getElementById('form1');
	 	 
  if (!tmpfrm.name.value) {alert('請輸入您的姓名');
     tmpfrm.name.focus(); return false;}
        
  if (!tmpfrm.company.value) {alert('請輸入服務單位名稱');
     tmpfrm.company.focus(); return false;}
	 
  if (!tmpfrm.Address.value) {alert('請輸入地址');
     tmpfrm.Address.focus(); return false;}
	 
  if (!tmpfrm.Telephone.value) {alert('請輸入您的聯絡電話');
     tmpfrm.Telephone.focus(); return false;}
	 
  if (!tmpfrm.email.value) {alert('請輸入電子郵件');
     tmpfrm.email.focus(); return false;}
  else{ if (tmpfrm.email.value.indexOf("@")<3){
              alert("Sorry, 您的電子郵件有錯");
              tmpfrm.email.focus(); return false;} }
              
  if (!tmpfrm.verify.value) {alert('請輸入驗證碼');
     tmpfrm.verify.focus(); return false;}
	 
}
//-->