document.writeln("<form id=\"form1\" name=\"form1\" method=\"post\" action=\"book.asp\" onSubmit=\"return yz1();\">");
document.writeln("       <table width=\"205\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("         <tr>");
document.writeln("           <td colspan=\"2\" valign=\"middle\" height=\"5\">&nbsp;<\/td>");
document.writeln("         <\/tr>");
document.writeln("         <tr >");
document.writeln("           <td colspan=\"2\" class=titletr height=\"26\"> <strong><font color=\"#FFFFFF\" size=\"2px\">&nbsp;&nbsp;留言板<\/font><\/strong><\/td>");
document.writeln("         <\/tr>");
document.writeln("         <tr bgcolor=#F7E9D0 class=lefttable2>");
document.writeln("           <td width=\"48\" height=\"30\" align=\"right\" valign=\"middle\">*姓名<\/td>");
document.writeln("           <td width=\"162\" height=\"30\" valign=\"middle\"><input type=\"text\" size=\"18\" id=\"xm\" name=\"xm\" \/><\/td>");
document.writeln("         <\/tr>");
document.writeln("         <tr bgcolor=#F7E9D0 class=lefttable2>");
document.writeln("           <td height=\"30\" align=\"right\" valign=\"middle\">*电话<\/td>");
document.writeln("           <td height=\"30\" valign=\"middle\"><input name=\"dh\" type=\"text\" id=\"dh\" size=\"18\" maxlength=\"100\" \/><\/td>");
document.writeln("         <\/tr>");
document.writeln("         <tr bgcolor=#F7E9D0 class=lefttable2>");
document.writeln("           <td height=\"30\" align=\"right\" valign=\"middle\">邮箱<\/td>");
document.writeln("           <td height=\"30\" valign=\"middle\"><input type=\"text\" size=\"18\" id=\"yx\" name=\"yx\" \/><\/td>");
document.writeln("         <\/tr>");
document.writeln("         <tr bgcolor=#F7E9D0 class=lefttable2>");
document.writeln("           <td height=\"30\" align=\"right\" valign=\"middle\">*地址 <\/td>");
document.writeln("           <td height=\"30\" valign=\"middle\"><input name=\"dz\" type=\"text\" id=\"dz\" size=\"18\" maxlength=\"100\" \/><\/td>");
document.writeln("         <\/tr>");
document.writeln(" ");
document.writeln("         <tr bgcolor=#F7E9D0 class=lefttable2>");
document.writeln("           <td align=\"right\" valign=\"middle\">*留言<\/td>");
document.writeln("           <td valign=\"middle\"><textarea name=\"bz\" cols=\"16\" rows=\"4\" id=\"bz\"><\/textarea><\/td>");
document.writeln("         <\/tr>");
document.writeln("         <tr bgcolor=#F7E9D0 class=lefttable2>");
document.writeln("           <td height=\"30\" colspan=\"2\" align=\"center\" valign=\"middle\">");
document.writeln("		     <input type=\"hidden\" id=\"ys\" name=\"ys\" value=\"yes\" \/>");
document.writeln("		   <input type=\"hidden\" id=\"sq\" name=\"sq\" value=\"b\" \/>");
document.writeln("		   <input type=\"submit\" name=\"Submit\" value=\"提交\" \/>&nbsp;&nbsp;&nbsp;&nbsp;");
document.writeln("           <input type=\"reset\" name=\"Submit2\" value=\"重填\" \/><\/td>");
document.writeln("         <\/tr>");
document.writeln("  <\/table>   ");
document.writeln("<\/form>");
document.writeln(" ");
document.writeln(" ");
document.writeln("<script language=\"JavaScript\"> ");
document.writeln("function yz1(){");
document.writeln("		");
document.writeln("		if (document.form1.xm.value.length <2) {");
document.writeln("		alert(\"请正确姓名!\");");
document.writeln("		document.form1.xm.focus();");
document.writeln("		return false;");
document.writeln("		}");
document.writeln(" ");
document.writeln("		if (!document.form1.dh.value.match(\/^\\d+$\/)) {");
document.writeln("		alert(\"电话必须是数字!\");");
document.writeln("		document.form1.dh.focus();");
document.writeln("		return false;");
document.writeln("		}");
document.writeln("		if (document.form1.dh.value.length<10) {");
document.writeln("		alert(\"电话格式不正确!\");");
document.writeln("		document.form1.dh.focus();");
document.writeln("		return false;");
document.writeln("		}");
document.writeln("		if (document.form1.dz.value.length <4) {");
document.writeln("		alert(\"地地址不能为空!\");");
document.writeln("		document.form1.dz.focus();");
document.writeln("		return false;");
document.writeln("		}");
document.writeln("		if (document.form1.bz.value.length <8) {");
document.writeln("		alert(\"请认真填写留言!\");");
document.writeln("		document.form1.bz.focus();");
document.writeln("		return false;");
document.writeln("		}");
document.writeln("	return true;");
document.writeln("}");
document.writeln("<\/script>");
document.writeln("")
