function setSubjectText(){ if(validateFirstName()){ return false; } if(validateFirstaddress()){ return false; } if(validatephone()){ return false; } if(checkEmail(document.form.T51a54a54a49a49a49a84)){ alert("ÇëÊäÈëÕýÈ·µÄemailµØÖ·£¡"); return false; } if(validatecontent()){ return false; } // return true; document.form.Post.disabled=true; document.form.Post.value="¼ì²âÊý¾Ý²¢Ìá½»..."; document.form.submit() } function validateFirstName(){ var firstname = document.form.T49a54a54a53a48a51a84.value; if(Trim(firstname).length < 2 ) { alert("ÐÕÃûµÄλÊýÒª´óÓÚ1λ£¡"); return true; } if(isNumber(Trim(firstname))){ alert("ÐÕÃû²»ÄÜÈ«²¿ÎªÊý×Ö£¡"); return true; } if(IsEnLetter(Trim(firstname)) && isAllEqual(Trim(firstname))){ alert("ÐÕÃû²»ÄÜÈ«²¿ÎªÁ¬ÐøÏàͬµÄ×Öĸ£¡"); return true; } } function validateFirstaddress(){ var firstaddress = document.form.T56a50a49a56a55a53a84.value; if(Trim(firstaddress).length < 2 ) { alert("µØÖ·µÄλÊýÒª´óÓÚ1λ£¡"); return true; } if(isNumber(Trim(firstaddress))){ alert("µØÖ·²»ÄÜÈ«²¿ÎªÊý×Ö£¡"); return true; } if(IsEnLetter(Trim(firstaddress)) && isAllEqual(Trim(firstaddress))){ alert("µØÖ·²»ÄÜÈ«²¿ÎªÁ¬ÐøÏàͬµÄ×Öĸ£¡"); return true; } } function validatephone(){ var phone = document.form.T50a53a50a48a51a50a84.value; var phoneArea = Trim(document.form.phonearea.value); if(Trim(phone).length <= 6 ) { alert("µç»°ºÅÂëÒª´óÓÚ6λ£¡"); return true; } if(Trim(phone).length > 30 ) { alert("µç»°ºÅÂë²»ÄÜ´óÓÚ30λ£¡"); return true; } if(!isNumberPhone(Trim(phone))) { alert("ÇëÌîдÕýÈ·µÄµç»°ºÅÂ룡"); return true; } if(phoneArea.indexOf("011") == 0 || phoneArea.indexOf("012") == 0 ||phoneArea.indexOf("013") == 0 || phoneArea.indexOf("11") == 0 || phoneArea.indexOf("12") == 0 || phoneArea.indexOf("13") == 0 || Trim(phoneArea).length <= 1){ alert("ÇëÌîдÕýÈ·µÄÇøºÅ£¡"); return true; } } function checkEmail(Object){ var pattern = /[a-zA-Z0-9_.]{1,}@[a-zA-Z0-9_]{1,}.[a-zA-Z0-9_]{1,}/; var strValue=Object.value; if (strValue.length==0) return true; if(strValue.match(pattern)==null){ return true; }else{ return false; } } function validatecontent(){ var strcontent = document.form.T51a52a49a57a48a49a84.value; if(Trim(strcontent).length < 4 ) { alert("ÁôÑÔÄÚÈÝÒª´óÓÚ4λ£¡"); return true; } if(isNumber(Trim(strcontent))){ alert("ÁôÑÔ²»ÄÜÈ«²¿ÎªÊý×Ö£¡"); return true; } if(IsEnLetter(Trim(strcontent)) && isAllEqual(Trim(strcontent))){ alert("ÁôÑÔ²»ÄÜÈ«²¿ÎªÁ¬ÐøÏàͬµÄ×Öĸ£¡"); return true; } } function Trim(str){ if(str.charAt(0) == " "){ str = str.slice(1); str = Trim(str); } return str; } function isAllEqual(str){ var tmp = str.charAt(0); for (i=0;i'); document.write('
'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
ÐÕÃû£º* ¹«Ë¾Ãû³Æ£º
µØÖ·£º*Óʱࣺ
µç»°£º*'); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
ÇøºÅµç»°ºÅÂë
'); document.write(' '); document.write('
´«Õ棺'); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
ÇøºÅµç»°ºÅÂë
'); document.write('
ÓÊÏ䣺*ÊÖ»ú£º
ÁôÑÔÄÚÈÝ£º*
'); document.write(' '); document.write('
');