function checkSubmit() { if(document.form1.message.value=="") { alert("请输入留言内容!"); document.form1.message.focus(); return false; } if(document.form1.name.value=="") { alert("请输入您的姓名!"); document.form1.name.focus(); return false; } if(document.form1.company.value=="") { alert("请输入您的公司名称!"); document.form1.company.focus(); return false; } if(document.form1.phone.value=="") { alert("请输入您的电话!"); document.form1.phone.focus(); return false; } if(document.form1.email.value=="") { alert("请输入您的邮箱!"); document.form1.email.focus(); return false; } if (document.form1.email.value.length == 0) { alert("邮箱不能为空"); return false; } var rule=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (!rule.test(document.form1.email.value)){ alert("请输入有效邮箱!"); return false; } if(document.form1.inputcode.value=="") { alert("请输入验证码!"); document.form1.inputcode.focus(); return false; } } document.writeln("
"); document.writeln("
* 为必填选项!
"); document.writeln(""); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln("
* 咨询留言:"); document.writeln(" "); document.writeln("
图纸附件:"); document.writeln("

"); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln("
附件格式:pdf、doc、xls、gif、jpg、png、txt、zip、rar"); document.writeln("

"); document.writeln("
"); document.writeln("
您的联系方式:
"); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln("
* 您的称呼:
* 公司名称:"); document.writeln("
* 联系电话: (手机或座机)
* E-mail:
* 验 证 码: \"换一张\"
"); document.writeln(""); document.writeln(" "); document.writeln(""); document.writeln("
"); document.writeln("
");