var betcount = 0;//注数 var factor=1;//倍数 var selIndex = -1;//选择的号码索引值 var selFactor = 1;//选择的倍数 var betType = 3101;//投注类型 //设置总注数及总金额 function DoubSetBetcountAndMoney() { document.p3form.doub_betcount.value=betcount*factor; document.p3form.doub_wagermoney.value=betcount*factor*2; } //3D选号 function Pick3UploadFile(){ var upfile = p3form.pick3_filename.value; if(upfile==""){ alert("请选择要导入的文件!"); return false; } if(upfile.toLowerCase().indexOf(".txt")>0 || upfile.toLowerCase().indexOf(".n30")>0){ p3form.action="/trans/parseP3.jhtml?betfactor="+selFactor+"&bettype="+betType; if(p3form.from_preview) p3form.action+="&from_preview=12"; p3form.submit(); } else{ alert("只能导入文本文件[.txt或.n30类型的文件]"); return false; } } function Pick3CheckSuffix(){ alert("接福彩中心通知,按财政等三部委要求,本网站从即日起暂停“彩票在线代购业务”,投注时间截至2008年1月3日19:00整;请本网站会员在3个工作日内通过发起“提现”的方式提取彩金账户中的剩余资金,如有疑问,请咨询客服在线QQ或客服电话。给您带来的不便,本网站深表歉意!"); return false; var betTickets = document.pick3form.pick3_betcount.value; var passwd = document.pick3form.pick3_transpw.value; /*var level = document.getElementById('memberlevel').value; if(level=="0"){ alert("您需要升级为在线投注会员才可进行在线投注!"); return false; }*/ if(passwd==""){ alert("请输入交易密码!"); return false; } if(betTickets>0) { if(confirm("确定要委托本次投注吗?")) { Pick3SelectedList(); document.pick3form.target="tz"; document.pick3form.action="https://"+location.hostname+"/trans/createP3Order.jhtml"; document.pick3form.submit(); document.pick3form.pick3_transpw.value=""; document.pick3form.pick3_transpw.focus(); //alert("已经开始投注,请不要再点击投注按钮,以免重复投注!"); //document.pick3form.action="/zjlottotrans/validateP3Order.jhtml"; //sendRequest(document.pick3form.action, document.pick3form.elements, document.pick3form.method); } } else{ alert("您选择的合法号码注数小于1注,请导入合法的号码!"); document.pick3form.pick3_transpw.value=""; return false; } } function Pick3CheckSuffix2(){ alert("接福彩中心通知,按财政等三部委要求,本网站从即日起暂停“彩票在线代购业务”,投注时间截至2008年1月3日19:00整;请本网站会员在3个工作日内通过发起“提现”的方式提取彩金账户中的剩余资金,如有疑问,请咨询客服在线QQ或客服电话。给您带来的不便,本网站深表歉意!"); return false; var betTickets = document.pick3form.pick3_betcount.value; if(betTickets>0) { if(confirm("确定要委托本次投注吗?")) { Pick3SelectedList(); window.open("about:blank", "tz2", "width=571px,height=380px,scrolling=no,toobar=no"); document.pick3form.target="tz2"; document.pick3form.action="/trans/previewOrder.jhtml"; document.pick3form.submit(); //alert("已经开始投注,请不要再点击投注按钮,以免重复投注!"); //document.pick3form.action="/zjlottotrans/validateP3Order.jhtml"; //sendRequest(document.pick3form.action, document.pick3form.elements, document.pick3form.method); } } else{ alert("您选择的合法号码注数小于1注,请导入合法的号码!"); document.pick3form.pick3_transpw.value=""; return false; } } //号码框中号码置为选中状态 function Pick3SelectedList() { var listlen = document.pick3form.pick3_basenum.length; var listoption = document.pick3form.pick3_basenum; for (i=listlen-1;i>=0;i--) { listoption.options[i].selected = true; } } //投注倍数 function Pick3ChangeFactor(selectedfactor) { selFactor = selectedfactor; } //投注类型 function Pick3ChangeBettype(selectedbettype) { betType = selectedbettype; } function Pick3ClickIndex(selectedindex) { selIndex = selectedindex; } //删除所选号码,从号码列表中 function Pick3RemoveList(deleteID) { var listlen = document.pick3form.pick3_basenum.length; var listoption = document.pick3form.pick3_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;j47&&parseInt(ascnuma)<58&&parseInt(ascnumb)>47&&parseInt(ascnumb)<58&&parseInt(ascnumc)>47&&parseInt(ascnumc)<58){ delid += 1; break; } } } listoption.remove(i); } } for(var j=0;j=0 ; i--) listoption.remove(i); Pick3CleanBetFactor(); } else{ return false; } Pick3CleanForm(); break; } } function Pick3CleanBetFactor(){ document.pick3form.pick3_betfactor.value="1"; document.pick3form.pick3_betfactor.text ="1"; } //调整投注总注数及金额 function Pick3SetCountAndFactor(){ betcount = parseInt(document.pick3form.pick3_betcount.value); var selfactor = parseInt(document.pick3form.pick3_betfactor.value); document.pick3form.pick3_betcount.value=betcount-selfactor; document.pick3form.pick3_wagermoney.value=(betcount-selfactor)*2; } //重新设置表单信息 function Pick3CleanForm(){ var currfactor = document.pick3form.pick3_betfactor.value; betcount = document.pick3form.pick3_basenum.length; document.pick3form.pick3_betcount.value=betcount*currfactor; document.pick3form.pick3_wagermoney.value=betcount*currfactor*2; }