﻿// JScript 文件
var url = document.location.href;
var title = document.title;

document.write(" <div class='text' style='width:760px;margin-top:10px;'>");
document.write(" <form action=http://data.txooo.com/default.aspx?ly=ly method=post id=leavewordForm >");
document.write(" <div class='text' style='width:710px;text-align:center;'>");
document.write(" <div style='float:left;width:160px;text-align:center;;' >");
document.write(" <div style='width:150px;height:300px;margin-left:20px; background-color:#fefbef'  class='BkIn'>");
document.write(" <div style='width:140px;height:22px;text-align:left; margin-top:3px;line-height:22px;color:White;background-color:#cc0000;font-weight:bold;'>");
document.write(" &nbsp;<img style='margin-top:1px;' src='http://618.txooo.com/images/image122.gif'  />&nbsp;天下商机友情提示");
document.write(" </div>");
document.write(" <div style='width:140px;height:22px;line-height:22px;text-align:left;margin-top:3px;'>");
document.write(" &nbsp;&nbsp;&nbsp;&nbsp;<strong>若想找到好项目，请多留言，多咨询；</strong><font color=red>留言是零风险、零费用、零成本，最快找到商家的方式。</font><br/>&nbsp;&nbsp;&nbsp;&nbsp;<strong>您要做的只是</strong>完整填写右侧表单，并尽可能地详细描述您对项目的疑问或要求，招商品牌企业看到您的留言后会进行电话回访，解答您的疑问，以助您详细考察，成功加盟。");
document.write(" </div>");
document.write(" </div>");
document.write(" </div>");

document.write(" <div style='float:left;width:510px;margin-left:20px;'>");

document.write(" <div style='width:510px;'>");
document.write(" <div style='float:left; width:90px;text-align:right;'>选 择 项 目：</div>");
document.write(" <div style='float:left; width:250px;text-align:left;'><input type=\"radio\"  name=\"teamid\" checked=checked value=\"http://9.txooo.com/888/1129/1775/2506/2506.htm\" />天精地髓<input type=\"radio\"  name=\"teamid\" value=\"http://9.txooo.com/888/1129/1932/2571/2571.htm\" />玉脉山庄<input type=\"radio\"  name=\"teamid\" value=\"http://9.txooo.com/888/1129/1931/2570/2570.htm\" />银镶玉专卖店</div>");
document.write(" <div style='float:left; width:190px;text-align:left;display:none;'> <span class='hong' style='font-size: 12px; color: #e30000; line-height: 15px'>* </span>");
document.write(" <span class='text' style='font-size: 12px;line-height: 15px'>请选择项目</span>");
document.write(" </div>");

document.write(" </div>");

document.write(" <div style='width:510px;'>");
document.write(" <div style='float:left; width:90px;text-align:right;'>您 的 姓 名：</div>");
document.write(" <div style='float:left; width:200px;text-align:left;'><input name='LeavewordUserTB' size='30' class='BkIn' maxlength='6'  type='text' id='LeavewordUserTB' /></div>");
document.write(" <div style='float:left; width:220px;text-align:left;'> <span class='hong' style='font-size: 12px; color: #e30000; line-height: 15px'>* </span>");
document.write(" <span class='text' style='font-size: 12px;line-height: 15px'>您的真实姓名,请使用中文</span>");
document.write(" <input name='LyType' type='hidden' value='1' /><input type='hidden' id='site_id'  name='site_id' value='' /><input type='hidden' id='father_type'  style='width: 15px' name='father_type' value='' /><input type='hidden' id='son_type'  style='width: 15px' name='son_type' value='' /><input type='hidden' id='pagetitle'  style='width: 15px' name='pagetitle' value='' /></div>");

document.write(" </div>");
document.write(" <div style='width:510px;'>");
document.write(" <div style='float:left; width:90px;text-align:right;'>");
document.write(" 您 的 电 话： "); 
document.write(" </div>");
document.write(" <div style='float:left; width:200px;text-align:left;'> <input name='QuHao' class='BkIn' size='5' maxlength='4' type='text' id='QuHao' /> - <input name='TelephoneTB' size='10' type='text' maxlength='8' id='TelephoneTB' class='BkIn' /></div>");

document.write(" <div style='float:left; width:220px;text-align:left;'><span class='hong' style='font-size: 12px; color: #e30000; line-height: 15px'>* </span>");
document.write(" <span class='text' style='font-size: 12px;  line-height: 15px;'>请正确填写联系电话</span> </div>");

document.write(" </div>");

document.write(" <div style='width:510px;'>");
document.write(" <div style='float:left; width:90px;text-align:right;'>");
document.write("   您 的 手 机：");
document.write(" </div>");
document.write(" <div style='float:left; width:200px;text-align:left;'> ");
document.write(" <input name='MobilePhoneTB' size='30' maxlength='11' type='text' class='BkIn' id='MobilePhoneTB' />");
document.write(" </div>");
document.write(" <div style='float:left; width:220px;text-align:left;'>");
document.write(" <span class=text style='font-size: 12px; line-height: 15px;'>请尽量填写手机号码</span>");
document.write(" </div>");
document.write(" </div>");
document.write(" <div style='width:510px;display:none;'>");
document.write(" <div style='float:left; width:90px;text-align:right;'>");
document.write(" 您  的 qq  号：");
document.write(" </div>");
document.write(" <div style='float:left; width:200px;text-align:left;'> ");
document.write(" <input name='QQTB' size='30' type='text' id='QQTB' class='BkIn' />");
document.write(" </div>");
document.write(" <div style='float:left; width:220px;text-align:left;display:none;'>");
document.write(" <span class=text style='font-size: 12px;  line-height: 15px;'>qq号是与您联系最方便实用的方式</span>");
document.write(" </div>");
document.write(" </div>");
document.write(" <div style='width:510px;'>");
document.write(" <div style='float:left; width:90px;text-align:right;'>");
document.write(" 您 的 邮 箱：");
document.write(" </div>");
document.write(" <div style='float:left; width:200px;text-align:left;'> ");
document.write(" <input name='EmailTB' size='30' type='text' id='EmailTB' class='BkIn' />");
document.write(" </div>");
document.write("  <div style='float:left; width:220px;text-align:left;'>");
document.write("   <span class=text style='font-size: 12px;  line-height: 15px;'>E-mail可收到电子版资料</span>");
document.write(" </div>");
document.write(" </div>");
document.write(" <div style='width:510px;'>");
document.write(" <div style='float:left; width:90px;text-align:right;'>");
document.write("  详 细 地 址：");
document.write(" </div>");
document.write(" <div style='float:left; width:200px;text-align:left;'>"); 
 document.write(" <input name='AddressTB' size='30' type='text' id='AddressTB' class='BkIn' />");
document.write(" </div>");
 document.write(" <div style='float:left; width:220px;text-align:left;'>");
 document.write(" <span class='hong' style='font-size: 12px; color: #e30000; line-height: 15px'>* </span>");
document.write(" <span class=text style='font-size: 12px;  line-height: 15px;'>请尽量详细填写</span>");
document.write(" </div>");
document.write(" </div>");
document.write(" <div style='width:510px;'>");
document.write(" <div style='float:left; width:90px;text-align:right;'>");
document.write("  您 的 邮 编：");
document.write(" </div>");
document.write(" <div style='float:left; width:200px;text-align:left;'> ");
document.write("  <input name='PostCodeTB' size='30' maxlength='6'type='text' id='PostmessdeTB' class='BkIn' />");
document.write(" </div>");
 document.write(" <div style='float:left; width:220px;text-align:left;'>");
 document.write(" <span class='hong' style='font-size: 12px; color: #e30000; line-height: 15px'>* </span>");
document.write(" <span class=text style='font-size: 12px;  line-height: 15px'>请正确填写邮政编码</span><input type='hidden'  style='width: 15px' name='Yanzheng' value=\"<%=Session['CheckLeaveWord'] %>\"> ");
document.write(" </div>");
document.write(" </div>");
document.write(" <div style='width:510px;'>");
document.write(" <div style='float:left; width:90px;text-align:right;'>");
document.write(" 留 言 内 容：<br /> <br /><div style='display:none;'><a  onclick='ResetLY()' style='font-size:12px;text-decoration: none;font-weight:normal;LETTER-SPACING:0px;cursor:hand;'><font   color='red' >清 空 留 言</font> </a>&nbsp;<br /> <a  onclick='changeReadOnly(LeavewordTB)' style='font-size:12px;text-decoration: none;font-weight:normal;LETTER-SPACING:0px;cursor:hand;'><font   color='red' >自 填 留 言</font> </a></div>");
document.write(" </div>");
document.write(" <div style='float:left; width:200px;text-align:left;'> ");
document.write("  <textarea cols='28' name='LeavewordTB' id='LeavewordTB' style='font-size:12px;' class='BkIn'   rows='6' ></textarea><br><font   color='red' ><strong></strong></font>");
document.write(" </div>");
document.write("  <div id='QuickMessage' style='float:left; width:220px;text-align:left; '>");
document.write(" <span class='hong' style='font-size: 12px; color: #e30000; line-height: 15px'>* </span><span class=text style='font-size: 12px;  line-height: 15px'>请您认真详细填写留言。</span>");
document.write(" </div>");
document.write(" </div>");

document.write(" <div style='width:510px;margin-top:0px; '>");
document.write(" <div style='float:left;width:200px; height:50px; line-height:50px; text-align:right;'>");
document.write(" <img height='26' style='margin-top:10px; margin-right:20px;' src='http://9.txooo.com/images/tijiao.gif' width='97'  style='cursor:hand;' id='ImgOk' onclick=\"sheke(document.all.leavewordForm);\"/>");
document.write(" </div>");
document.write(" <div style='float:left;width:170px;height:50px; line-height:50px; text-align:left;'>");
document.write(" <img height='26' style='margin-top:10px;' src='http://9.txooo.com/images/chongxie.gif' width='97' style='cursor:hand;' onclick=\"document.getElementById('leavewordForm').reset();\"/>");
document.write(" </div>");
document.write(" </div>");
document.write(" </div>");
document.write(" </div>");
document.write(" </form>");
document.write(" </div>");

document.write("<style type='text/css'>");
document.write(".text {");
document.write("	font-size:12px;color: #000000;letter-spacing: 0px;");
document.write("}");
document.write("div{");
document.write("font-size:12px;");
document.write("height:30px; ");
document.write("line-height:30px;");
document.write("}");
document.write(".Bk {");
document.write("	border-right-width: 1px;");
document.write("	border-bottom-width: 1px;");
document.write("	border-left-width: 1px;");
document.write("	border-top-style: none;");
document.write("	border-right-style: solid;");
document.write("	border-bottom-style: solid;");
document.write("	border-left-style: solid;");
document.write("	border-right-color: #adaead;");
document.write("	border-bottom-color: #adaead;");
document.write("	border-left-color: #adaead;");
document.write("}");
document.write(".BkIn {");
document.write("	border-right-width: 1px;");
document.write("	border-bottom-width: 1px;");
document.write("	border-left-width: 1px;");
document.write("	border-top-width: 1px;");
document.write("	border-top-style: outset;");
document.write("	border-top-color: #adaead;");
document.write("	border-right-style: solid;");
document.write("	border-bottom-style: solid;");
document.write("	border-left-style: solid;");
document.write("	border-right-color: #adaead;");
document.write("	border-bottom-color: #adaead;");
document.write("	border-left-color: #adaead;");
document.write("	font-size:12px;");
document.write("}");
document.write(".Bk2 {");
document.write("	border-bottom-width: 1px;");
document.write("	border-bottom-style: solid;");
document.write("	border-bottom-color: #adaead;");
document.write("}");
document.write(".BkL {");
document.write("	border-left-width: 1px;");
document.write("	border-left-style: solid;");
document.write("	border-left-color: #adaead;");
document.write("}");
document.write("</style>");


 function LTrim(s)

{

    for(var i=0;i<s.length;i++)

        if(s.charAt(i)!=' ')

            return s.substring(i,s.length);

    return "";
}
function RTrim(s)
{
	for(var i=s.length-1;i>=0;i--)
		if(s.charAt(i)!=' ')
		    return s.substring(0,i+1);
    return "";
}
function Trim(s)
{
	return RTrim(LTrim(s));
}

document.getElementById("pagetitle").value=title;
/**清空留言*/
function ResetLY()
{
    document.getElementById("LeavewordTB").value="";
}
/**选择快捷留言*/
function sel(theinput)
{

		if(document.getElementById("LeavewordTB").value!="")
			document.getElementById("LeavewordTB").value+="\n"+theinput
		else
			document.getElementById("LeavewordTB").value=theinput

}

/**自定义填写留言*/

function changeReadOnly(obj) {
	if (obj.readOnly == true) {
		obj.readOnly = false;
		alert("现在您可以自己填写留言了！");
		obj.focus();
		//obj.innerHTML = "你现在可以修改我了";
	} 
}
/**检查是否正确的手机号码*/
function isMobile(s) {
	var regu = "^([1])([3,5])(([0-9-]+)|([0-9]+))([0-9])$";
	var re   = new RegExp(regu);
	if ((s.search(re) != -1) && (s.length==11))
		return true;
	else
		return false;
}
//检查邮箱
function check_email(address)
{
	if ((address == "")|| (address.indexOf ('@') == -1)||(address.indexOf ('.') == -1))
		return false;
	return true;
}

/**检查留言*/
function sheke(theForm)
{
//    if(isSubmited==true)
//    {
//        return(false);
//    }
//    else
//    {
        var isError;
	    var str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,./'[]{}`1234567890-=\~!@#$%^&*()_+|?><:";
//	     if (Trim(theForm.teamid.value) =="")
//	    {
//		    alert("请选择要留言的项目！");
//		    theForm.teamid.focus();   
//		    isError = true;
//		    return(false);
//	    }
	    if (Trim(theForm.LeavewordUserTB.value) =="")
	    {
		    alert("请输入姓名");
		    theForm.LeavewordUserTB.focus();
		    theForm.LeavewordUserTB.value="";
		    isError = true;
		    return(false);
	    }
	    var c=theForm.LeavewordUserTB.value.substr(0,1);
	    if(str.indexOf(c)>-1)
	    {
		    alert("姓名必须填写中文");
		    theForm.LeavewordUserTB.focus();
		    
		    isError = true;
		    return(false);
	    }
	     if (Trim(theForm.LeavewordUserTB.value).length<2)
	    {
		    alert("姓名不得少于2个字！");
		    theForm.LeavewordUserTB.focus();
		    isError = true;
		    return(false);
	    }
	    /**检查区号第一位是否为0*/
	    if (Trim(theForm.QuHao.value)!="" && theForm.QuHao.value.substr(0,1)!=0)
	    {
		    alert("区号的第一位必须为0");
            theForm.QuHao.value="";
		    theForm.QuHao.focus();
		    isError = true;
		    return(false);
	    }
	     if (Trim(theForm.QuHao.value)!="" && Trim(theForm.QuHao.value).length<3 )
	    {
		    alert("请输入正确的区号");
            theForm.QuHao.value="";
		    theForm.QuHao.focus();
		    isError = true;
		    return(false);
	    }
	   
	    if ( Trim(theForm.QuHao.value)!="" && isNaN(Trim(theForm.QuHao.value))==true )
	    {
		    alert("区号请输入数字");
            theForm.QuHao.value="";
		    theForm.QuHao.focus();
		    isError = true;
		    return(false);
	    }
	    if ( Trim(theForm.TelephoneTB.value)!="" && isNaN(Trim(theForm.TelephoneTB.value))==true)
	    {
		    alert("电话号码必须为数字");
             theForm.TelephoneTB.value="";
		    theForm.TelephoneTB.focus();
		    isError = true;
		    return(false);
	    }
	   
	    if (Trim(theForm.TelephoneTB.value)!="" && Trim(theForm.TelephoneTB.value).length<6)
	    {
		    alert("请输入正确的电话号码");
             theForm.TelephoneTB.value="";
		    theForm.TelephoneTB.focus();
		    isError = true;
		    return(false);
	    }
	   if (Trim(theForm.MobilePhoneTB.value)!="" && !isMobile(Trim(theForm.MobilePhoneTB.value)))
	   {
	        alert("请输入正确的手机号码");
	        theForm.MobilePhoneTB.value="";
		    theForm.MobilePhoneTB.focus();
		    isError = true;
		    return(false);
	   }
	  if ( (Trim(theForm.TelephoneTB.value)=="" && Trim(theForm.MobilePhoneTB.value)=="" )|| (Trim(theForm.QuHao.value)=="" && Trim(theForm.MobilePhoneTB.value)=="" ))
	    {
		    alert("必须留一种正确的联系方式，固定电话或手机");

		    theForm.QuHao.focus();
		    isError = true;
		    return(false);
	    }
	    if (Trim(theForm.QQTB.value)!="" && isNaN(Trim(theForm.QQTB.value))==true)
	    {
		    alert("QQ号码必须是数字");
		    theForm.QQTB.value="";
		    theForm.QQTB.focus();
		    isError = true;
		    return(false);
	    }
	    if(Trim(theForm.EmailTB.value)!="" && check_email(Trim(theForm.EmailTB.value))==false)
	    {
		    alert("请输入正确的email地址");
		    theForm.EmailTB.value="";
		    theForm.EmailTB.focus();
		    isError = true;
		    return(false);
	    }
	    if (Trim(theForm.AddressTB.value) =="")
	    {
		    alert("请输入详细地址");
		    theForm.AddressTB.focus();
		    isError = true;
		    return(false);
	    }
	    var t=theForm.AddressTB.value.substr(0,1);
	    if(str.indexOf(t)>-1)
	    {
		    alert("地址必须填写中文");
		    theForm.AddressTB.value="";
		    theForm.AddressTB.focus();
		    isError = true;
		    return(false);
	    }
	    if (Trim(theForm.PostCodeTB.value).length<6)
	    {
		    alert("请输入邮编");
		    theForm.PostCodeTB.value="";
		    theForm.PostCodeTB.focus();
		    isError = true;
		    return(false);
	    }

	    if (isNaN(Trim(theForm.PostCodeTB.value))==true)
	    {
		    alert("邮编必需为6位数字");
		    theForm.PostCodeTB.value="";
		    theForm.PostCodeTB.focus();
		    isError = true;
		    return(false);
	    }
	    if (Trim(theForm.LeavewordTB.value)=="")
	    {
		    alert("请输入留言内容");
		    theForm.LeavewordTB.focus();
		    isError = true;
		    return(false);
	    }
	    var d=theForm.LeavewordTB.value.substr(0,1);
	    if(str.indexOf(d)>-1)
	    {
		    alert("留言内容请填写中文");
		    theForm.LeavewordTB.value = "";
		    theForm.LeavewordTB.focus();
		    isError = true;
		    return(false);
	    }
    //	    document.all["Button1"].disabled=true;
    //	    document.all["Button2"].disabled=true;

 var expdate = new Date();
//以下设置COOKIES时间为1天,自己随便设置该时间..

expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 1)); 
setCookie("LeavewordUserTB",CodeCookie(Trim(theForm.LeavewordUserTB.value)),expdate) 
setCookie("QuHao",Trim(theForm.QuHao.value),expdate) 
setCookie("TelephoneTB",Trim(theForm.TelephoneTB.value),expdate) 
setCookie("MobilePhoneTB",Trim(theForm.MobilePhoneTB.value),expdate) 
setCookie("QQTB",Trim(theForm.QQTB.value),expdate) 
setCookie("EmailTB",Trim(theForm.EmailTB.value),expdate) 
setCookie("AddressTB",CodeCookie(Trim(theForm.AddressTB.value)),expdate) 
setCookie("PostCodeTB",Trim(theForm.PostCodeTB.value),expdate) 
//setCookie("LeavewordTB",CodeCookie(Trim(theForm.LeavewordTB.value)),expdate) 
setCookie("LeaveWordEnd","0000",expdate) 
setCookie("LeaveWordEnd2","0000",expdate)     
	        theForm.submit();
	        
	          document.getElementById('ImgOk').style.display='none';
//    }
}
/**写Cookie*/
function setCookie(cookiename,cookievalue,cookieexpdate) 
  { 
  //alert(cookievalue);
  document.cookie = cookiename + "=" + cookievalue 
 // + "; domain="+ "www.qwqw.com"
  + "; path=" + "/" 
  + "; expires=" + cookieexpdate.toGMTString(); 
  } 
  /**翻译Cookie*/
 function DecodeCookie(str)
{
    var strArr;
    var strRtn="";
    strArr=str.split("|");
    try{
        for (var i=strArr.length-1;i>=0;i--)
        strRtn+=String.fromCharCode(eval(strArr[i]));
    }catch(e){
    }
    return strRtn; 
}
  /**编码Cookie*/
function CodeCookie(str)
{
    var strRtn="";
    for (var i=str.length-1;i>=0;i--)
    {
        strRtn+=str.charCodeAt(i);
        if (i) strRtn+="|"; //用a作分隔符 
    }
    return strRtn;
} 
  /**读Cookie*/
 function ReadCookie()
{

var str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,./'[]{}`1234567890-=\~!@#$%^&*()_+|?><:";
 var Allgo=document.all;
var myCookie=document.cookie;
 //alert(myCookie); 
var cookieUserTB="LeavewordUserTB=";
var startUserTB =myCookie.indexOf (cookieUserTB);
var endstrUserTB = myCookie.indexOf(";", startUserTB);

if (startUserTB!=-1)
{
  Allgo.LeavewordUserTB.value=DecodeCookie(myCookie.substring(startUserTB+cookieUserTB.length,endstrUserTB)); 
	    var c= Allgo.LeavewordUserTB.value.substr(0,1);
	    if(str.indexOf(c)>-1)
	    {
		     Allgo.LeavewordUserTB.value="";
	    }
 } 
 
 var cookieQuHao="QuHao=";
var startQuHao =myCookie.indexOf(cookieQuHao);
var endstrQuHao = myCookie.indexOf(";", startQuHao);
if (startQuHao!=-1)
{
 //alert(myCookie);
  Allgo.QuHao.value=unescape(myCookie.substring(startQuHao+cookieQuHao.length,endstrQuHao));
  
  if (isNaN(Allgo.QuHao.value)==true )
	    {
            Allgo.QuHao.value="";
	    }
 } 
 var cookieTelephoneTB="TelephoneTB=";
var startTelephoneTB =myCookie.indexOf(cookieTelephoneTB);
var endstrTelephoneTB = myCookie.indexOf (";", startTelephoneTB);
if (startTelephoneTB!=-1)
{
 Allgo.TelephoneTB.value=unescape(myCookie.substring(startTelephoneTB+cookieTelephoneTB.length,endstrTelephoneTB));
  if (isNaN(Allgo.TelephoneTB.value)==true)
	    {
		   
             Allgo.TelephoneTB.value="";

	    }
	   
 
 } 
 
 var cookieMobilePhoneTB="MobilePhoneTB=";
var startMobilePhoneTB =myCookie.indexOf (cookieMobilePhoneTB);
var endstrMobilePhoneTB = myCookie.indexOf (";", startMobilePhoneTB);

if (startMobilePhoneTB!=-1)
{
 Allgo.MobilePhoneTB.value=unescape(myCookie.substring(startMobilePhoneTB+cookieMobilePhoneTB.length,endstrMobilePhoneTB));
 
  if (!isMobile(Allgo.MobilePhoneTB.value))
	   {
	        
	        Allgo.MobilePhoneTB.value="";
		 
	   }
   
 }  
  var cookieQQTB="QQTB=";
var startQQTB =myCookie.indexOf (cookieQQTB);
var endstrQQTB = myCookie.indexOf (";", startQQTB);

if (startQQTB!=-1)
{
 Allgo.QQTB.value=unescape(myCookie.substring(startQQTB+cookieQQTB.length,endstrQQTB));
 } 
 
  var cookieEmailTB="EmailTB=";
var startEmailTB =myCookie.indexOf (cookieEmailTB);
var endstrEmailTB = myCookie.indexOf (";", startEmailTB);

if (startEmailTB!=-1)
{
 Allgo.EmailTB.value=unescape(myCookie.substring(startEmailTB+cookieEmailTB.length,endstrEmailTB));

if(check_email(Allgo.EmailTB.value)==false)
	    {
		    
		    Allgo.EmailTB.value="";		
	    }

 } 
 
  var cookieAddressTB="AddressTB=";
var startAddressTB =myCookie.indexOf (cookieAddressTB);
var endstrAddressTB = myCookie.indexOf (";", startAddressTB);

if (startAddressTB!=-1)
{
 Allgo.AddressTB.value=unescape(DecodeCookie(myCookie.substring(startAddressTB+cookieAddressTB.length,endstrAddressTB)));
 
  var t=Allgo.AddressTB.value.substr(0,1);
	    if(str.indexOf(t)>-1)
	    {
		    Allgo.AddressTB.value="";

	    }
 
 } 
 
 var cookiePostCodeTB="PostCodeTB=";
var startPostCodeTB =myCookie.indexOf (cookiePostCodeTB);
var endstrPostCodeTB = myCookie.indexOf (";", startPostCodeTB);

if (startPostCodeTB!=-1)
{
 Allgo.PostCodeTB.value=unescape(myCookie.substring(startPostCodeTB+cookiePostCodeTB.length,endstrPostCodeTB));

if (isNaN(Allgo.PostCodeTB.value)==true)
	    {
		    
		    Allgo.PostCodeTB.value="";

	    }
 } 
 
//  var cookieLeavewordTB="LeavewordTB=";
//var startLeavewordTB =myCookie.indexOf (cookieLeavewordTB);
//var endstrLeavewordTB = myCookie.indexOf (";", startLeavewordTB);

//if (startLeavewordTB!=-1)
//{
// Allgo.LeavewordTB.value=unescape(DecodeCookie(myCookie.substring(startLeavewordTB+cookieLeavewordTB.length,endstrLeavewordTB)));
//  
//   var d=Allgo.LeavewordTB.value.substr(0,1);
//	    if(str.indexOf(d)>-1)
//	    {
//		   
//		    Allgo.LeavewordTB.value = "";

//	    }
// } 
 
}                               
                 
ReadCookie();
//document.write("<script language='javascript' type='text/javascript' src='http://open.txooo.com/open.aspx' ></script>");

