/*begin*/
var isGlobalPassValid=false;var isPassQQNumValid=false;var tTipMsg="\u4f8b\uff1a44455774";var oMarquee=document.getElementById("mq");var iLineHeight=44;var iLineCount=getLineCount();var iScrollAmount=1;function DispatchEnter(event){if(event.keyCode==13)stopBubble(event)}function stopBubble(e){var e=e?e:window.event;if(!e.preventDefault){e.cancelBubble=true;e.returnValue=false}else{e.preventDefault();e.stopPropagation()}}
function checkNumber(num){var isPassValid=false;var reg=new RegExp("^[0-9]{5,12}$");isPassValid=reg.test(num);isPassQQNumValid=isPassValid;return isPassValid}
function checkQQNum(){var tipObj=document.getElementById("errTip");var qObj=document.getElementById(_qqTextId);var qObj_value=qObj.value;var isTrueQQNum=checkNumber(qObj_value);if(isTrueQQNum){tipObj.innerHTML=tTipMsg;tipObj.className="form_tips";isPassQQNumValid=true}else{tipObj.innerHTML="\u8bf7\u8f93\u5165\u6b63\u786e\u7684QQ\u53f7\u7801";tipObj.className="form_false";isPassQQNumValid=false}}
function checkAccountBank(){var abTipObj=document.getElementById("accountTip");var abObj=document.getElementById(_accountBId);var abObj_value=abObj.value;var re=new RegExp("^\\d{16}$|^\\d{19}$");if(!re.test(abObj_value)){abTipObj.className="form_false";abTipObj.innerHTML="\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u94f6\u884c\u8d26\u53f7\uff01"}else{abTipObj.className="";abTipObj.innerHTML=""}}
function checkAccountBankSubmit(){var abObj=document.getElementById(_accountBId);var abObj_value=abObj.value;var re=new RegExp("^\\d{16}$|^\\d{19}$");if(abObj_value==""){alert("\u8bf7\u8f93\u5165\u5b8c\u6574\u7684\u94f6\u884c\u8d26\u53f7\uff01");return false}else if(re.test(abObj_value)==false){alert("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u94f6\u884c\u8d26\u53f7\uff01");return false}else return true}
function checkSumbit(){var qObj=document.getElementById(_qqTextId);var qObj_value=qObj.value;checkNumber(qObj_value);var nick=document.getElementById(_qqNTextId);if(nick.value.length<=0){alert("\u8bf7\u8f93\u5165QQ\u6635\u79f0\uff01");return false}var gPassValid=isPassQQNumValid;if(gPassValid)return true;else{alert("\u8bf7\u8f93\u5165\u6b63\u786e\u7684QQ\u53f7\u7801\u548c\u6635\u79f0!");return false}}
function run(){oMarquee.scrollTop+=iScrollAmount;if(oMarquee.scrollTop==iLineCount*iLineHeight)oMarquee.scrollTop=0;if(oMarquee.scrollTop%iLineHeight==0)window.setTimeout("run()",_heartBeetSecs);else window.setTimeout("run()",_scrollFrequency)}function getLineCount(){var len=0;var m_Scroll=_allQQNums.split("$");if(m_Scroll)if(m_Scroll.length%2==0)len=m_Scroll.length/2;else len=Math.floor(m_Scroll.length/2+1);return len}
function generateQQNumContent(){var oMarquee=document.getElementById("mq");var m_Scroll=_allQQNums.replace(/\$/ig,",");m_Scroll=m_Scroll.split(",");if(m_Scroll)for(i=0;i<m_Scroll.length;i++)if(m_Scroll[i]!=""){var pObj;if(i%4==0){pObj=document.createElement("ul");pObj.className="dottbottom";var spObjFirst=document.createElement("li");spObjFirst.innerHTML=m_Scroll[i];pObj.appendChild(spObjFirst)}else{var spObj=document.createElement("li");spObj.innerHTML=m_Scroll[i];pObj.appendChild(spObj)}oMarquee.appendChild(pObj)}}
function main(){generateQQNumContent();oMarquee.innerHTML+=oMarquee.innerHTML;window.setTimeout("run()",_heartBeetSecs)}main();function closeDiv(){document.getElementById("payLayer").style.display="none";document.getElementById("clarityBG").style.display="none"}
function openDiv(styleName,content,url){SetIconStyle(styleName);SetPormptContent(content);if(url.length>0)GoToSpecialPage(url);document.getElementById("payLayer").style.display="block";document.getElementById("clarityBG").style.display="block";tem=document.getElementById("payLayer");temH="-"+(tem.offsetHeight-2)/2+"px";temW="-"+(tem.offsetWidth-2)/2+"px";tem.style.margin=temH+" "+"0"+" "+"0"+" "+temW}
function GoToSpecialPage(url){var btnOK=document.getElementById("btnOK");btnOK.value="\u6211\u8981\u4e3e\u62a5";btnOK.onclick=function(){window.location.href=url}}function SetIconStyle(styleName){var name=styleName=="1"?"left_icon icon_true":"icon_false";var icon=document.getElementById("icon");icon.className=name}function SetPormptContent(content){var divContent=document.getElementById("content");divContent.innerHTML=content}
function CheckNick(){var nick=document.getElementById(_qqNTextId);if(nick.value.length<=0){errNick.innerHTML="\u8bf7\u8f93\u5165QQ\u6635\u79f0!";errNick.className="form_false"}else{errNick.innerHTML="\u4f8b\uff1a\u5bc4\u552e\u5ba2\u670d998";errNick.className="form_tips"}}
function DisplayAddtionInfo(){var divInfo=document.createElement("div");divInfo.className="graytips";divInfo.innerHTML="\u8bf7\u586b\u5199\u4e3e\u62a5\u4fe1\u606f\uff0c5173\u771f\u8bda\u611f\u8c22\u60a8\u7684\u53c2\u4e0e\uff01";var parent=document.getElementById("content");parent.appendChild(divInfo)};

/*end*/
