var urllinks;
urllinks="";
smsid=4027;

//请将此连接改成您的绝对地址和你的smsid


function fucCheckNUM(NUM)
{
	var i,j,strTemp;
	strTemp="0123456789";
	if ( NUM.length== 0)
		return 0
	for (i=0;i<NUM.length;i++)
	{
		j=strTemp.indexOf(NUM.charAt(i));	
		if (j==-1)
		{
		//说明有字符不是数字
			return 0;
		}
	}
	//说明是数字
	return 1;
}

function checksub(frm)
{

	if (frm.tel_num.value =="")
	 {
		window.alert ("手机号码不能为空！");
		frm.tel_num.focus();
		return false;
	 }
	 str=frm.tel_num.value ;
	 if (str.length!=11)
	  {
		window.alert ("手机号码位数必须为11位！");
		frm.tel_num.focus();
		return false;
	 }
	 if (fucCheckNUM(str)==0 )
	 {
		window.alert ("手机号码只能含有数字字符！");
		frm.tel_num.focus();
		return false;
	 }

     window.open('','muti','width=350,height=400,scrollbars=yes')
	return true;
}


document.writeln("<table width=\"300\" height=\"286\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("  <tr>");
document.writeln("    <td width=\"300\" height=\"251\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"300\" height=\"250\">");
document.writeln("        <param name=\"movie\" value=\"http://www.9158.com.cn/9158/hezuo_images/300x250_jiqing.swf?weburl="+urllinks+"\">");
document.writeln("        <param name=\"quality\" value=\"high\">");
document.writeln("        <embed src=\"http://www.9158.com.cn/9158/hezuo_images/300x250_jiqing.swf?weburl="+urllinks+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"300\" height=\"250\"></embed></object></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td height=\"35\" bgcolor=\"#FF0000\">");
document.writeln("	");
document.writeln("	");
document.writeln("	<table width=\"69%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("      <FORM  action=\"http://www.9158.com.cn/sms/union/order/unionorder.asp?smsid="+smsid+"\" id=\"orderfrm\" name=orderfrm method=post ");
document.writeln("            target=muti onsubmit=\"return checksub(this);\">  <tr> ");
document.writeln("          <td width=\"106\"  style=\"color:#004444;font-size:12px;font-weight:400;\" ><div align=\"right\"><font color=\"#FFFFFF\"><strong>手机号</strong></font> ");
document.writeln("            </div></td>");
document.writeln("          <td width=\"88\"><div align=\"center\">");
document.writeln("              <input name=\"tel_num\" type=\"text\" style=\"BORDER-RIGHT: rgb(0,0,0) 1px solid; BORDER-TOP: rgb(0,0,0) 1px solid; FONT-SIZE: 12px; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-BOTTOM: rgb(0,0,0) 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: white\" value=\"13\" size=11 maxlength=11>");
document.writeln("            </div></td>");
document.writeln("          <td width=\"106\"><input name=\"imageField4\" type=\"image\" src=\"http://www.9158.com.cn/9158/hezuo_images/button4.gif\" width=\"40\" height=\"16\" border=\"0\">");
document.writeln("              <input name=\"id\" type=\"hidden\" id=\"id\" value=\"343\"></td>");
document.writeln("        </tr>");
document.writeln("		</form></table>");
document.writeln("	  ");
document.writeln("	");
document.writeln("	  </td>");
document.writeln("  </tr>");
document.writeln("</table>");

