var betcount = 0;//注数 var factor=1;//倍数 var selIndex = -1;//选择的号码索引值 var selFactor = 1;//选择的倍数 var bettype = 3101; //设置总注数及总金额 function DoubSetBetcountAndMoney() { document.c737form.doub_betcount.value=betcount*factor; document.c737form.doub_wagermoney.value=betcount*factor*2; } function RTrim(str) { var i; for(i=str.length-1;i>=0;i--) { if(str.charAt(i)!=" "&&str.charAt(i)!=" ")break; } str=str.substring(0,i+1); return str; } function Trim(str) { return LTrim(RTrim(str)); } //双色球选号 function DoubUploadFile(){ var upfile = c737form.doub_filename.value; if(upfile==""){ alert("请选择要导入的文件!"); return false; } if(upfile.toLowerCase().indexOf(".txt")>0 || upfile.toLowerCase().indexOf(".l33")>0){ c737form.action="../parseC737.jhtml?betfactor="+selFactor+"&bettype="+bettype; if(c737form.from_preview) c737form.action+="&from_preview=1"; c737form.submit(); } else{ alert("只能导入文本文件[.txt或.l33类型的文件]"); return false; } } //双色球合买号码上传 function DoubUploadFileHm(){ var upfile = c737form.doub_filename.value; if(upfile==""){ alert("请选择要导入的文件!"); return false; } if(upfile.toLowerCase().indexOf(".txt")>0 || upfile.toLowerCase().indexOf(".l33")>0){ c737form.action="../hm/doubcolorLoad.jhtml?betfactor="+selFactor+"&bettype="+bettype; c737form.submit(); } else{ alert("只能导入文本文件[.txt或.l33类型的文件]"); return false; } } function DoubCheckSuffix(){ alert("接福彩中心通知,按财政等三部委要求,本网站从即日起暂停“彩票在线代购业务”,投注时间截至2008年1月3日19:00整;请本网站会员在3个工作日内通过发起“提现”的方式提取彩金账户中的剩余资金,如有疑问,请咨询客服在线QQ或客服电话。给您带来的不便,本网站深表歉意!"); return false; var betTickets = document.doubform.doub_betcount.value; var passwd = document.doubform.doub_transpw.value; /*var level = document.getElementById('memberlevel').value; if(level=="0"){ alert("您需要升级为在线投注会员才可进行在线投注!"); return false; }*/ if(passwd==""){ alert("请输入交易密码!"); return false; } if(betTickets>0) { if(confirm("确定要委托本次投注吗?")) { DoubSelectedList(); document.doubform.doub_betfactor.value=factor; document.doubform.target="tz"; document.doubform.action="https://"+location.hostname+"/trans/createC737Order.jhtml"; document.doubform.submit(); document.doubform.doub_transpw.value=""; document.doubform.doub_transpw.focus(); // document.getElementById('tzbtn').disabled='true'; //sendRequest(document.doubform.action, document.doubform.elements, document.doubform.method); } } else{ alert("您选择的合法号码注数小于1注,请导入合法的号码!"); document.doubform.doub_transpw.value=""; return false; } } function DoubCheckSuffix2(){ alert("接福彩中心通知,按财政等三部委要求,本网站从即日起暂停“彩票在线代购业务”,投注时间截至2008年1月3日19:00整;请本网站会员在3个工作日内通过发起“提现”的方式提取彩金账户中的剩余资金,如有疑问,请咨询客服在线QQ或客服电话。给您带来的不便,本网站深表歉意!"); return false; var betTickets = document.doubform.doub_betcount.value; if(betTickets>0) { if(confirm("确定要委托本次投注吗?")) { window.open("about:blank", "tz2", "width=571px,height=380px,scrolling=no,toobar=no"); DoubSelectedList(); document.doubform.doub_betfactor.value=factor; document.doubform.target="tz2"; document.doubform.action="/trans/previewOrder.jhtml"; document.doubform.submit(); // document.getElementById('tzbtn').disabled='true'; //sendRequest(document.doubform.action, document.doubform.elements, document.doubform.method); } } else{ alert("您选择的合法号码注数小于1注,请导入合法的号码!"); document.doubform.doub_transpw.value=""; return false; } } //号码框中号码置为选中状态 function DoubSelectedList() { var listlen = document.doubform.doub_basenum.length; var listoption = document.doubform.doub_basenum; for (i=listlen-1;i>=0;i--) { listoption.options[i].selected = true; } } //倍数改变 function DoubChangeFactor(selectedfactor) { selFactor = selectedfactor; } function DoubClickIndex(selectedindex) { selIndex = selectedindex; } //删除所选号码,从号码列表中 function DoubRemoveList(deleteID) { var listlen = document.doubform.doub_basenum.length; var listoption = document.doubform.doub_basenum; var x,i,listtext; switch (deleteID) { case 1: //只清除选定的项 var delid = 0; for (i=listlen-1;i>=0;i--) { if (listoption.options[i].selected) { for(var j=0;j0&&parseInt(redvalue[0])<34&&parseInt(redvalue[1])>0&&parseInt(redvalue[1])<34&&parseInt(redvalue[2])>0&&parseInt(redvalue[2])<34&&parseInt(redvalue[3])>0&&parseInt(redvalue[3])<34&&parseInt(redvalue[4])>0&&parseInt(redvalue[4])<34&&parseInt(redvalue[5])>0&&parseInt(redvalue[5])<34&&(ballvalue[1])>"0"&&(ballvalue[1])<"17") { delid += 1; break; } } } listoption.remove(i); } } for(var i=0;i=0 ; i--) listoption.remove(i); } else return false; DoubCleanForm(); break; } } //调整投注总注数及金额 function DoubSetCountAndFactor(){ betcount = parseInt(document.doubform.doub_betcount.value); var selfactor = parseInt(document.doubform.doub_betfactor.value); //betcount -= 1; document.doubform.doub_betcount.value=betcount-selfactor; document.doubform.doub_wagermoney.value=(betcount-selfactor)*2; } //重新设置表单信息 function DoubCleanForm(){ var selfactor = document.doubform.doub_betfactor.value; betcount = document.doubform.doub_basenum.length; document.doubform.doub_betcount.value=betcount*selfactor; document.doubform.doub_wagermoney.value=betcount*selfactor*2; }