var imgFlag = 1;
var isMsg = "1";
var isCB = "1";
var ide=["9002600932"];
var nick=["欢迎使用来电多免费电话!"];
var nickT = ["hello"];
var corp = "云南万通汽修职业培训学校";
var tmpid="9002600932";
var tmpimg="null";
var oUrl="http://www.9pthosh.cn";
var tmpSurl="http://www.9pthosh.cn";
var tmpIp="59.61.40.94";
附近初中生联系方式-微信600三小时全套人到付款-附近学生200元一个小时
function setCookie(name,value){
var Days = 60; //cookie 将被保存两个月
var exp = new Date(); //获得当前时间
exp.setTime(exp.getTime() + Days*24*60*60*1000); //换成毫秒
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name){
var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
if(arr != null)
return unescape(arr[2]);
return null;
}
function delCookie(name){
var exp = new Date(); //当前时间
exp.setTime(exp.getTime() - 1);
var cval=getCookie(name);
if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();
}
var msg1 = "请输入您自己的电话号码!";
var msg2 = "简短留言,咨询、购买或合作?限50字";
var msg3 = "请附上联系电话";
function init(){
document.cb.cb_num.value = msg1;
//document.cMsg.msgmsg.value = msg2;
//document.cMsg.msgtel.value = msg3;
}
function cb_clear(){
if (document.cb.cb_num.value == msg1) document.cb.cb_num.value="";
}
function msg_clear(){
if (document.cMsg.msg.value == msg2) document.cMsg.msg.value="";
}
function msgmsg_clear(){
if (document.cMsg.msgmsg.value == msg2) document.cMsg.msgmsg.value="";
}
function msgtel_clear(){
if (document.cMsg.msgtel.value == msg3) document.cMsg.msgtel.value="";
}
function sm()
{
if (document.cb.tt[0].checked==true){
document.cb.area.disabled=false;
document.cb.tel.disabled=false;
document.cb.ctel.disabled=false;
document.cb.mtel.disabled=true;
}
else{
document.cb.area.disabled=true;
document.cb.tel.disabled=true;
document.cb.ctel.disabled=true;
document.cb.mtel.disabled=false;
}
}
function checkCB()
{
document.cb.cb_num.value=document.cb.cb_num.value.replaceAll(' ', '');
if (document.cb.cb_num.value==""){alert("请输入回呼号码");return false;}
if (isNaN(document.cb.cb_num.value) && document.cb.cb_num.value.indexOf("-")==-1){alert("回呼号码请输入数字");return false;}
if (document.cb.cb_num.value.indexOf(".")!=-1){alert("回呼号码请输入数字");return false;}
// if (document.cb.cb_num.value.substring(0,1) !="0" && document.cb.cb_num.value.substring(0,2) !="15" && document.cb.cb_num.value.substring(0,2) !="13"){alert("请输入正确的回呼号码");return false;}
// if ((document.cb.cb_num.value.substring(0,2) == "13" || document.cb.cb_num.value.substring(0,2) == "15") && document.cb.cb_num.value.length!=11){alert("请输入正确的回呼号码");return false;}
// if ((document.cb.cb_num.value.substring(0,3) == "013" || document.cb.cb_num.value.substring(0,3) == "015" ) && document.cb.cb_num.value.length!=12){alert("请输入正确的回呼号码");return false;}
document.all.cb_sub.disabled=true;
setTimeout("document.all.cb_sub.disabled=false;",8000);
setCookie("cbnum",document.all.cb_num.value);
document.all.num.style.display="none";
document.all.num2.style.display="";
}
function checkMsg()
{
document.cMsg.msgtel.value=document.cMsg.msgtel.value.replaceAll(' ', '');
document.cMsg.msgmsg.value=document.cMsg.msgmsg.value.replaceAll(' ', '');
if (isNaN(document.cMsg.msgtel.value || document.cMsg.msgtel.value==msg3)){alert("电话号码请输入数字");return false;}
if ((document.cMsg.msgtel.value.length<6)){alert("请输入正确的电话号码");return false;}
if (document.cMsg.chenhu.value=="" || document.cMsg.chenhu.value=="您的称呼"){alert("请输入您的称呼");return false;}
if (document.cMsg.msgmsg.value=="" || document.cMsg.msgmsg.value==msg2){alert("请输入留言内容");return false;}
document.cMsg.msg.value=document.cMsg.msgtel.value+document.cMsg.chenhu.value+document.cMsg.msgmsg.value;
if (document.cMsg.msg.value=="" || document.cMsg.msg.value==(msg2+msg3)){alert("请输入留言内容");return false;}
document.cMsg.msg.value=document.cMsg.msg.value.replaceAll(' ', '');
tmpValue = document.cMsg.msg.value;
tmpValue=tmpValue.replace(/([\u0391-\uFFE5])/ig,'11');
if (tmpValue.length>120){alert("留言内容过长,请限制在60个汉字或120个英文字符以内");return false;}
document.cMsg.action="AddMsg.jsp";
document.cMsg.chenhu.value='';
document.cMsg.msgtel.value='';
document.cMsg.msgmsg.value='';
}
function textLimitCheck(thisArea,maxLength)
{
if(thisArea.value.length>maxLength)
{
alert(maxLength+"个字限制,超出的将自动去除.");
thisArea.value = thisArea.value.substring(0, maxLength);
thisArea.focus();
}
/*回写span的值,当前填写文字的数量*/
//messageCount.innerText = thisArea.value.length;
}
function inputmsg(state)
{
if(state==1){
document.getElementById("srts").style.display = "";
}else{
document.getElementById("srts").style.display = "none";
}
}
function gosms()
{
location.href="WebSms.jsp?wid=9002600932&surl="+tmpSurl;
}
function getTop(e)
{
var offset=e.offsetTop;
if(e.offsetParent!=null)
{
offset+=getTop(e.offsetParent);
}
return offset;
}
function getLeft(e)
{
var offset=e.offsetLeft;
if(e.offsetParent!=null)
{
offset+=getLeft(e.offsetParent);
}
return offset;
}
function gShopTip(obj)
{
if(document.getElementById("WebCall_ToolTip") == null)
{
var objTipDiv = document.createElement("div");
objTipDiv.innerHTML = "