	var indexofpage=1;
	
	function check_form()
	{//合买提交检测
		
		var base_money = 2;
		if(frm.wage_base_th_db!=null)
			base_money = frm.wage_base_th_db.value;
			
		if(!( check_length(document.all("title"),1,50,"方案标题") && check_length(document.all("content"),0,1000,"方案描述")))
		{
			return false;
		} 
		if(!is_item_not_null(document.all("anumber"),"你要分成的份数"))
		{//你要分成的份数不能为空
			document.all("anumber").value="";
			document.all("anumber").focus();
			return false;
		}
		if(!is_digital(document.all("anumber"),"你要分成的份数"))
		{//你要分成的份数应为数字
			document.all("anumber").value="";
			document.all("anumber").focus();
			return false;
		}
		if(document.all("anumber").value==0)
		{//你要分成的份数必须大于等于1
			alert("你要分成的份数必须大于等于1！");
			document.all("anumber").value="";
			document.all("anumber").focus();
			return false;
		}
		if(!is_item_not_null(document.all("BuyNumber"),"你要认购的份数"))
		{//你要认购的份数不能为空
			document.all("BuyNumber").value="";
			document.all("BuyNumber").focus();
			return false;
		}
		if(!is_digital(document.all("BuyNumber"),"你要认购的份数"))
		{//你要认购的份数应为数字
			document.all("BuyNumber").value="";
			document.all("BuyNumber").focus();
			return false;
		}
		if(document.all("BuyNumber").value==0)
		{//要认购的份数不能为零
			alert("你要认购的份数不能为零！");
			document.all("BuyNumber").value="";
			document.all("BuyNumber").focus();
			return false;
		}
		if(document.all("isbaodi").checked)
		{
			if(!is_item_not_null(document.all("BaodiNumber"),"你要保底的数量"))
			{
				document.all("BaodiNumber").value="";
				document.all("BaodiNumber").focus();
				return false;
			}
			if(!is_digital(document.all("BaodiNumber"),"你要保底的数量"))
			{
				document.all("BaodiNumber").value="";
				document.all("BaodiNumber").focus();
				return false;
			}
			if(document.all("BaodiNumber").value==0)
			{//你要保底的数量必须大于等于1
				alert("你要保底的数量必须大于等于1！");
				document.all("BaodiNumber").value="";
				document.all("BaodiNumber").focus();
				return false;
			}
			if(Number(document.all("anumber").value)<Number(document.all("BaodiNumber").value))
			{//判断保底的份数是否大于所分的份数
				alert("你要保底的份数大于你分的份数！");
				document.all("BaodiNumber").value="";
				document.all("BaodiNumber").focus();
				return false;
			}
			if(Number(document.all("BaodiNumber").value)+Number(document.all("BuyNumber").value)>Number(document.all("anumber").value))
			{
				alert("保底的份数加购买的份数应该小于等于总份数！");
				return false;
			}
			if(Number(document.all("BaodiNumber").value)<Math.ceil(Number(document.all("anumber").value)*0.2))
			{//检测保底份数至少为总份数的20%
				alert("您保底的份数至少为该方案的20%，份数："+Math.ceil(Number(document.all("anumber").value)*0.2)+"份！");
				return false;  
			}
		}
		if(Number(document.all("anumber").value)<Number(document.all("BuyNumber").value))
		{//判断购买的份数是否大于所分的份数
			alert("你要购买的份数大于你分的份数！");
			document.all("BuyNumber").value="";
			document.all("BuyNumber").focus();
			return false;
		}
			
		if(document.all("anumber").value>Number(document.all("zhushu").value*base_money*document.all("beishu").value))
		{
			alert("每份金额不能小于1元！");
			document.all("anumber").value="";
			document.all("anumber").focus();
			return false;
		}
		return true;
	}
	
	function check_beishu()
	{//检测倍数合法性
		var beishu = document.all("beishu").value;
		var regBeishu=/[1-9]\d*/;
		if(!regBeishu.test(beishu))
		{
			alert("倍数错误！");
			dispose_beishuErr();
			return false;
		}
		return true;
	}
	
	function dispose_beishuErr()
	{//倍数错误处理
		var zhushu=document.all("zhushu").value;
		document.all("beishu").value=1;
		document.all("beishu").focus();
		var beishu=document.all("beishu");
		document.all("allnumshow").innerText=zhushu;
		document.all("allmonshow").innerText=getFormatMoney(zhushu*2);
		document.all("allnumbershow").innerText=zhushu*beishu;
		document.all("allmoneyshow").innerText=getFormatMoney(zhushu*2*beishu);
	}
	
	function Static_Money_pt(){
		if(document.all("zhushu")==null)
		{
			return;
		}
		var zhushu = document.all("zhushu").value;
		
		var beishu,anumber,isbaodi,BaodiNumber,BuyNumber;
		if(document.all("beishu")!=null)
		{
			beishu = document.all("beishu").value;
			if(beishu.length==0)
			{
				//document.all("beishu").value=1;
				beishu=0;
			}
		}
		else
		{
			beishu=1;
		}
		if(document.all("anumber")!=null)
		{
			anumber = document.all("anumber").value;
		}
		else
		{
			anumber=1;
		}
		
		if(document.all("isbaodi")!=null)
		{
			isbaodi = document.all("isbaodi").value;
		}
		else
		{
			isbaodi=0;
		}
		
		if(document.all("BaodiNumber")!=null)
		{
			BaodiNumber = document.all("BaodiNumber").value;
		}
		else
		{
			BaodiNumber=0;
		}
		
		if(document.all("BuyNumber")!=null)
		{
			BuyNumber = document.all("BuyNumber").value;
		}
		else
		{
			BuyNumber=1;
		}

		if(anumber!="")
		{	
			OneMoney = Math.ceil((zhushu*2*beishu/anumber)*100)/100;
		}
		else
		{
			OneMoney=0;
		}

		if(BaodiNumber=="") BaodiNumber=0;
		if(BuyNumber=="") BuyNumber=0;
		
		
		if(document.all("allnumshow")!=null)
		{
			document.all("allnumshow").innerText=zhushu;
		}
		
		if(document.all("allmonshow")!=null)
		{	
			//document.all("allmonshow").innerText=getFormatMoney(zhushu*2);
			document.all("allmonshow").innerText=zhushu*2;
		}
		
		if(document.all("allnumbershow")!=null)
		{
			document.all("allnumbershow").innerText=zhushu*beishu;
		}
		if(document.all("allmoneyshow")!=null)
		{
			//document.all("allmoneyshow").innerText=getFormatMoney(zhushu*2*beishu);
			document.all("allmoneyshow").innerText= zhushu*2*beishu;
			//document.all("allmoneyshow").innerText= parseInt(zhushu*2*beishu);
		}

		if(document.all("OneMoneyShow")!=null)
		{
			document.all("OneMoneyShow").innerText = getFormatMoney(OneMoney);
		}

		if(document.all("BaodiMoneyShow")!=null)
		{
			document.all("BaodiMoneyShow").innerText = getFormatMoney(OneMoney*BaodiNumber);
		}	

		if(document.all("BuyNumberShow")!=null)
		{
			document.all("BuyNumberShow").innerText = getFormatMoney(OneMoney*BuyNumber);
		}

		try{
			if(frm.allmoney!=null)
			{
				frm.allmoney.value=zhushu*2*beishu;
				if(HM_Static_Money!=null)
					HM_Static_Money();
			}
		}catch(e){}
	}

	function Static_Money()
	{//显示注数、金额、每份金额、保底金额、购买金额
		
		if(form1.zhushu==null)
		{
			return;
		}
		var base_money = 2;
		if(betForm.wage_base_th_db!=null)
			base_money = betForm.wage_base_th_db.value;
			
		var zhushu = form1.zhushu.value;
		var beishu,anumber,isbaodi,BaodiNumber,BuyNumber;
		if(document.all("beishu")!=null)
		{
			beishu = document.all("beishu").value;
			if(beishu.length==0)
			{
				//document.all("beishu").value=1;
				beishu=0;
			}
		}
		else
		{
			beishu=1;
		}
		if(document.all("anumber")!=null)
		{
			anumber = document.all("anumber").value;
		}
		else
		{
			anumber=1;
		}
		if(document.all("isbaodi")!=null)
		{
			isbaodi = document.all("isbaodi").value;
		}
		else
		{
			isbaodi=0;
		}
		if(document.all("BaodiNumber")!=null)
		{
			BaodiNumber = document.all("BaodiNumber").value;
		}
		else
		{
			BaodiNumber=0;
		}
		if(document.all("BuyNumber")!=null)
		{
			BuyNumber = document.all("BuyNumber").value;
		}
		else
		{
			BuyNumber=1;
		}
		
		if(anumber!="")
		{	
			OneMoney = Math.ceil((zhushu*base_money*beishu/anumber)*100)/100;
		}
		else
		{
			OneMoney=0;
		}
		
		if(BaodiNumber=="") BaodiNumber=0;
		if(BuyNumber=="") BuyNumber=0;
		
		if(document.all("allnumshow")!=null)
		{	
			document.all("allnumshow").innerText=zhushu;
		}

		if(document.all("allmonshow")!=null)
		{
			document.all("allmonshow").innerText=getFormatMoney(zhushu*base_money);
		}

		if(document.all("allnumbershow")!=null)
		{
			document.all("allnumbershow").innerText=zhushu*beishu;
		}

		if(document.all("allmoneyshow")!=null)
		{
			document.all("allmoneyshow").innerText=getFormatMoney(zhushu*base_money*beishu);
		}
		//alert(zhushu*base_money*beishu);
		if(document.all("OneMoneyShow")!=null)
		{
			document.all("OneMoneyShow").innerText = getFormatMoney(OneMoney);
		}
		if(document.all("BaodiMoneyShow")!=null)
		{
			document.all("BaodiMoneyShow").innerText = getFormatMoney(OneMoney*BaodiNumber);
		}	
		if(document.all("BuyNumberShow")!=null)
		{
			document.all("BuyNumberShow").innerText = getFormatMoney(OneMoney*BuyNumber);
		}
		
		try{
			if(frm.allmoney!=null)
			{
				frm.allmoney.value=zhushu*base_money*beishu;
				if(HM_Static_Money!=null)
					HM_Static_Money();
			}
		}catch(e){}
	}
	
	function SetIsBaodi()
	{//选中我要保底,其后文本框有效
		if(document.all("isbaodi").checked)
		{
			document.all("BaodiNumber").disabled="";
		}
		else
		{
			document.all("BaodiNumber").value="";
			document.all("BaodiNumber").disabled="false";
			document.all("BaodiMoneyShow").innerText = getFormatMoney("0");
		}
	}

	function Change_Buyuser()
	{//改变招股对象为向500WAN所有网友招股
		document.all("setbuyuser").value="";
	}
	
	function BeforePaste()
	{//禁止粘贴功能
		return clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''));
	}
	
	function SortNum(codes)
	{//对投注内容排序，返回一个排序后的数组
		var arrCodes;
		arrCodes = codes.split(",");
		//alert(arrCodes.length);
		for(var ii=0;ii<arrCodes.length;ii++)
		{
			var chg;
			var exchange = false;
			for(var jj=arrCodes.length;jj>ii;jj--)
			{
				if(Number(arrCodes[jj])<Number(arrCodes[jj-1]))
				{
					chg = arrCodes[jj];
					arrCodes[jj] = arrCodes[jj-1];
					arrCodes[jj-1] = chg;
					exchange = true;
				}
			}
			if(!exchange)
			{
				return arrCodes;
			}
		}
		return arrCodes;
	}
	
	function SortNum_ns(codes)
	{//对投注内容排序，返回一个排序后的数组
		var re = /./g;
		var arrCodes = codes.match(re);
		//alert(arrCodes.length);
		for(var ii=0;ii<arrCodes.length;ii++)
		{
			var chg;
			var exchange = false;
			for(var jj=arrCodes.length;jj>ii;jj--)
			{
				if(Number(arrCodes[jj])<Number(arrCodes[jj-1]))
				{
					chg = arrCodes[jj];
					arrCodes[jj] = arrCodes[jj-1];
					arrCodes[jj-1] = chg;
					exchange = true;
				}
			}
			if(!exchange)
			{
				return arrCodes;
			}
		}
		return arrCodes;
	}
	
	function getRndNum1(max)
	{//产生一个1到max之间的随机整数
		var i=Math.round(Math.random()*max);
		if(i==0)
			i=1;
		if(i>max)
			i=max;
		return i;
	}
	
	function getRndNum2(max)
	{//产生一个0到max之间的随机整数
		var i=Math.round(Math.random()*max);
		if(i>max)
			i=max;
		return i;
	}
	function getRndNum3(min,max)
	{
		return Math.round((max-min)*Math.random()+min);
	}
	
	function CheckSelected(num,selStr)
	{//检测一个号码是否已经选择
		var arra = selStr.substring(0,selStr.length-1).split(",");
		for(var i=0;i<arra.length;i++)
		{
			if(num==arra[i])
				return true;
		}
		return false;
	}
	
	function CheckHaveSameNumber(num,str)
	{//判断num是否存在于str
		var arra = str.split(",");
		for(var i=0;i<arra.length;i++)
		{
			if(Number(num)==Number(arra[i]))
				return true;
		}
		return false;
	}
	
	function openModalDialog(strurl,width,height) {
	//打开模态窗口
		window.showModalDialog(strurl,window,"help: No; resizable: No; status: No;scrollbars:No;center: Yes;dialogWidth:"+width+";dialogHeight:"+height+";");
	}
	
	function changeType(obj,url1,url2,width1,width2)
	{
		var objselecttype = document.all("selecttype");
		if(obj.value==1)
		{
			if(indexofpage!=obj.value)
			{
				document.location.href=url1;
			}
		}
		else if(obj.value==2)
		{
			if(indexofpage!=obj.value)
			{
				document.location.href=url2;
			}
		}
		indexofpage = obj.value;
	}
	
	
	function setType(value)
	{
		indexofpage = value;
		var objselecttype = document.all("selecttype");
		if(objselecttype!=null)
		{
			objselecttype[value-1].checked = true;
		}
		autoSetIframeSize();
	}
	
	function autoSetIframeSize()
	{
	//根据内容自动调整iframe的大小
	//注意：必须为iframe设置name属性，设置什么都行
		var obj=self.parent.parent.document.all[self.name];
		if(obj!=null)
		{
			self.parent.parent.document.all[self.name].style.pixelHeight=self.document.body.scrollHeight+5;
		}
	}
	
	function autoSetIframeSize(num)
	{
	//根据内容自动调整iframe的大小
	//注意：必须为iframe设置name属性，设置什么都行
		var obj=self.parent.parent.document.all[self.name];
		if(obj!=null)
		{
			self.parent.parent.document.all[self.name].style.pixelHeight=self.document.body.scrollHeight+num;
		}
	}
	
	
	
	
	var Tab_Keycode = 9;//TAB键
	var Back_KeyCode = 8;//BackSpace键
	var Enter_Keycode = 13;//回车键
	var Delet_KeyCode = 46;//删除键
	var Next_KeyCode = 39;//向左键
	var Prev_KeyCode = 37;//向右键
	var Up_KeyCode = 38;//向上键
	var Down_KeyCode = 40;//向下键
	var Space_KeyCode = 32;//空格键
	
	var func_KeyCode = [8,9,32,37,38,39,40,46];
	var math_KeyCode = [48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105];//0-9的数字键
	var enable_KeyCodes = [8,9,32,37,38,39,40,46,48,49,50,51,52,53,54,55,56,57];
	function checkEnableKeyCode(keyCode){
			if(isMathKeyCode(keyCode))
				return true;
			if(isFuncKeyCode(keyCode))
				return true;
			return false;
	}
	function isMathKeyCode(keyCode){
		if((keyCode>47&&keyCode<58)||(keyCode>95&&keyCode<106))
			return true;
		return false;
	}
	function isFuncKeyCode(keyCode){
		for(var i = 0;i < func_KeyCode.length;i++){
				if(func_KeyCode[i]==keyCode)
					return true;
		}
		return false;
	}
	
	function toViewHelp(obj){//2006/3/1
		if(obj!=null&&obj.url!=null){
			HEADER.openHandle(obj.url,'viewHelp',800,650);
		}
	}
	function openHelp(obj){//2006/3/1
		if(obj!=null){
			var url = obj.url!=null?obj.url:null;
			if(url!=null){
				var popwindowObj = document.all['popwindow'];
				
				if(popwindowObj!=null){
					popwindowObj.url = url;
					toViewHelp(obj);
					//popwindowObj.click();
				}
			}
		}
	}
	
	var ptType = '';/*dx:大小;dzx:大中小;jo:奇偶;hezhi:和值;shuziyl:数字遗漏;baiwei:百位遗漏;shiwei:十位遗漏;gewei:个位遗漏;zhihe:质合*/
	document.write('<Script type="text/javascript" src="../../js/pt.js"></script>');
	
	function public_checkCodes(){
		var system_type_desc = '';
		if(sysType==1){//直选
			if(check_form_dg_nsfs())
				system_type_desc = '直选';
		}else if(sysType==2||sysType==3){//组选3与组选6
			if(check_form_dg_zx())
				system_type_desc = sysType==2?'组选3':'组选6';
		}else if(sysType==4){//直选和值
			if(check_form_dg_npbdhm())
				system_type_desc = '直选和值';
		}else if(sysType==5){//组选和值
			if(check_form_dg_npzxhz())
				system_type_desc = '组选和值';
		}else if(sysType==7){//图表选号
			try{
				if(check_form_dg_nsfs()){
					if(parentType==1){
						betForm.system_type_id_td_db.value = '1';
						system_type_desc = '直选';
					}else if(parentType==2){
						betForm.system_type_id_td_db.value = '2';
				//		deleteZXCode('showAllCodes','0_6');
						deleteZXCode('showAllCodes','0');
						system_type_desc = '组选';
					}else if(parentType==3){
						betForm.system_type_id_td_db.value = '3';
					//	deleteZXCode('showAllCodes','0_3');
						deleteZXCode('showAllCodes','0');
						system_type_desc = '组选';
					}
					p_sysType = parentType;
				}
			}catch(e){}
		}else if(sysType==6){//偏态选号
			
			var ptCodeTypeObj = document.all("pt_codeType");//偏态号码类型:1:直选;2:组选
			if(ptCodeTypeObj!=null&&ptCodeTypeObj.length==2){
				var bZhixuan = false;
				if(ptCodeTypeObj[0].checked)	
					bZhixuan = true;
				else
					bZhixuan = false;
				var obj = document.all['showAllCodes'];	
				var _options = obj.options;
				if(_options.length > 0){
					//var s_ = getPTDesc(ptType);
					if(bZhixuan){
						p_sysType = 1;
						system_type_desc = '偏态直选';
					}
					else{
						p_sysType = 3;
						system_type_desc = '偏态组选';
					}
						
				}else{
					alert('号码不能为空');
				}
			}else{
				alert('偏态选号失败');
			}
			
		}
		return system_type_desc;
	}
	function getPTDesc(type){
			var s_ = '';
			if(type==null)
				return '';
			if(type=='dx')
					s_ = '大小';
				else if(type=='dzx')
					s_ = '大中小';
				else if(type=='jo')
					s_ = '奇偶';
				else if(type=='hezhi')
					s_ = '和值';
				else if(type=='shuziyl')
					s_ = '数字遗漏';
				else if(type=='baiwei')
					s_ = '百位遗漏';
				else if(type=='shiwei')
					s_ = '十位遗漏';
				else if(type=='gewei')
					s_ = '个位遗漏';
				else if(type=='zhihe')
					s_ = '质合';
				return s_;
	}
	



///gby for pt
function viewLastLuckNumber(obj,pt_type){//gby add
		var output = obj.substr(0,obj.indexOf("("));
		
		if(pt_type=="root" && p_pt==1){//根值
			if(output=="0"){
						document.all['showLuckCode'].value = root0_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_0;
						document.all['llzq'].value = llzq_root_0;
			}
			if(output=="1"){
						document.all['showLuckCode'].value = root1_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_1;
						document.all['llzq'].value = llzq_root_1;
			}
			if(output=="2"){
						document.all['showLuckCode'].value = root2_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_2;
						document.all['llzq'].value = llzq_root_2;
			}
			if(output=="3"){
						document.all['showLuckCode'].value = root3_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_3;
						document.all['llzq'].value = llzq_root_3;
			}
			if(output=="4"){
						document.all['showLuckCode'].value = root4_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_4;
						document.all['llzq'].value = llzq_root_4;
			}
			if(output=="5"){
						document.all['showLuckCode'].value = root5_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_5;
						document.all['llzq'].value = llzq_root_5;
			}
			if(output=="6"){
						document.all['showLuckCode'].value = root6_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_6;
						document.all['llzq'].value = llzq_root_6;
			}
			if(output=="7"){
						document.all['showLuckCode'].value = root7_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_7;
						document.all['llzq'].value = llzq_root_7;
			}
			if(output=="8"){
						document.all['showLuckCode'].value = root8_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_8;
						document.all['llzq'].value = llzq_root_8;
			}
			if(output=="9"){
						document.all['showLuckCode'].value = root9_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_9;
						document.all['llzq'].value = llzq_root_9;
			}			
		}
			
		if(pt_type=="root" && p_pt==2){//根值
			if(output=="0"){
						document.all['showLuckCode'].value = root_zx_0_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_0;
						document.all['llzq'].value = llzq_root_zx_0;
			}
			if(output=="1"){
						document.all['showLuckCode'].value = root_zx_1_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_1;
						document.all['llzq'].value = llzq_root_zx_1;
			}
			if(output=="2"){
						document.all['showLuckCode'].value = root_zx_2_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_2;
						document.all['llzq'].value = llzq_root_zx_2;
			}
			if(output=="3"){
						document.all['showLuckCode'].value = root_zx_3_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_3;
						document.all['llzq'].value = llzq_root_zx_3;
			}
			if(output=="4"){
						document.all['showLuckCode'].value = root_zx_4_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_4;
						document.all['llzq'].value = llzq_root_zx_4;
			}
			if(output=="5"){
						document.all['showLuckCode'].value = root_zx_5_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_5;
						document.all['llzq'].value = llzq_root_zx_5;
			}
			if(output=="6"){
						document.all['showLuckCode'].value = root_zx_6_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_6;
						document.all['llzq'].value = llzq_root_zx_6;
			}
			if(output=="7"){
						document.all['showLuckCode'].value = root_zx_7_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_7;
						document.all['llzq'].value = llzq_root_zx_7;
			}
			if(output=="8"){
						document.all['showLuckCode'].value = root_zx_8_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_8;
						document.all['llzq'].value = llzq_root_zx_8;
			}
			if(output=="9"){
						document.all['showLuckCode'].value = root_zx_9_lastLuckNumber;
						document.all['ylzq'].value = ylzq_root_zx_9;
						document.all['llzq'].value = llzq_root_zx_9;
			}			
		}
	
		if(pt_type=="zhihe" && p_pt==1){				
			if(output=="质质合"){
							document.all['showLuckCode'].value = tmp_zhihetai_zzh_lastLuckNumber;
							document.all['ylzq'].value = ylzq_zhihetai_zzh;
							document.all['llzq'].value = llzq_zhihetai_zzh;
			}	
			if(output=="质质质"){
							document.all['showLuckCode'].value = tmp_zhihetai_zzz_lastLuckNumber;
							document.all['ylzq'].value = ylzq_zhihetai_zzz;
							document.all['llzq'].value = llzq_zhihetai_zzz;
			}	
			
			if(output=="质合质"){						
							document.all['showLuckCode'].value = tmp_zhihetai_zhz_lastLuckNumber;
							document.all['ylzq'].value = ylzq_zhihetai_zhz;
							document.all['llzq'].value = llzq_zhihetai_zhz;
			}
			if(output=="质合合"){
							document.all['showLuckCode'].value = tmp_zhihetai_zhh_lastLuckNumber;
							document.all['ylzq'].value = ylzq_zhihetai_zhh;
							document.all['llzq'].value = llzq_zhihetai_zhh;
			}
			
			if(output=="合质质"){
							document.all['showLuckCode'].value = tmp_zhihetai_hzz_lastLuckNumber;
							document.all['ylzq'].value = ylzq_zhihetai_hzz;
							document.all['llzq'].value = llzq_zhihetai_hzz;
			}
			if(output=="合质合"){
							document.all['showLuckCode'].value = tmp_zhihetai_hzh_lastLuckNumber;
							document.all['ylzq'].value = ylzq_zhihetai_hzh;
							document.all['llzq'].value = llzq_zhihetai_hzh;
			}
			
			if(output=="合合质"){
							document.all['showLuckCode'].value = tmp_zhihetai_hhz_lastLuckNumber;
							document.all['ylzq'].value = ylzq_zhihetai_hhz;
							document.all['llzq'].value = llzq_zhihetai_hhz;
			}			
			if(output=="合合合"){
							document.all['showLuckCode'].value = tmp_zhihetai_hhh_lastLuckNumber;
							document.all['ylzq'].value = ylzq_zhihetai_hhh;
							document.all['llzq'].value = llzq_zhihetai_hhh;
			}				
		}
		if(pt_type=="zhihe" && p_pt==2){				//组选
			if(output=="全质"){
							document.all['showLuckCode'].value = zhihetai_zx_AllZhi_lastLuckNumber;
							document.all['ylzq'].value = ylzq_All_zhishushu_zx;
							document.all['llzq'].value = llzq_All_zhishushu_zx;
			}	
			if(output=="全合"){
							document.all['showLuckCode'].value = zhihetai_zx_AllHe_lastLuckNumber;
							document.all['ylzq'].value = ylzq_All_heshushu_zx;
							document.all['llzq'].value = llzq_All_heshushu_zx;
			}	
			
			if(output=="2质1合"){						
							document.all['showLuckCode'].value = zhihetai_zx_2Zhi1He_lastLuckNumber;
							document.all['ylzq'].value = ylzq_All_2zhi1he_zx;
							document.all['llzq'].value = llzq_All_2zhi1he_zx;
			}
			if(output=="2合1质"){
							document.all['showLuckCode'].value = zhihetai_zx_2He1Zhi_lastLuckNumber;
							document.all['ylzq'].value = ylzq_All_2he1zhi_zx;
							document.all['llzq'].value = llzq_All_2he1zhi_zx;
			}				
		}
		
		if(pt_type=="dzx" && p_pt==1){//直选
				if(output=="小小小"){
					document.all['showLuckCode'].value = dzx_xxx_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_xxx;
					document.all['llzq'].value = llzq_dzx_xxx;
				}
				if(output=="小小中"){
					document.all['showLuckCode'].value = dzx_xxz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_xxz;
					document.all['llzq'].value = llzq_dzx_xxz;
				}
				if(output=="小小大"){
					document.all['showLuckCode'].value = dzx_xxd_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_xxd;
					document.all['llzq'].value = llzq_dzx_xxd;
				}

				if(output=="小中小"){
					document.all['showLuckCode'].value = dzx_xzx_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_xzx;
					document.all['llzq'].value = llzq_dzx_xzx;
				}
				if(output=="小中中"){
					document.all['showLuckCode'].value = dzx_xzz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_xzz;
					document.all['llzq'].value = llzq_dzx_xzz;
				}
				if(output=="小中大"){
					document.all['showLuckCode'].value = dzx_xzd_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_xzd;
					document.all['llzq'].value = llzq_dzx_xzd;
				}
				
				if(output=="小大小"){
					document.all['showLuckCode'].value = dzx_xdx_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_xdx;
					document.all['llzq'].value = llzq_dzx_xdx;
				}
				if(output=="小大中"){
					document.all['showLuckCode'].value = dzx_xdz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_xdz;
					document.all['llzq'].value = llzq_dzx_xdz;
				}	
				if(output=="小大大"){
					document.all['showLuckCode'].value = dzx_xdd_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_xdd;
					document.all['llzq'].value = llzq_dzx_xdd;
				}
				
				if(output=="中小小"){
					document.all['showLuckCode'].value = dzx_zxx_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_zxx;
					document.all['llzq'].value = llzq_dzx_zxx;
				}
				if(output=="中小中"){
					document.all['showLuckCode'].value = dzx_zxz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_zxz;
					document.all['llzq'].value = llzq_dzx_zxz;
				}
				if(output=="中小大"){
					document.all['showLuckCode'].value = dzx_zxd_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_zxd;
					document.all['llzq'].value = llzq_dzx_zxd;
				}
				
				if(output=="中中小"){
					document.all['showLuckCode'].value = dzx_zzx_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_zzx;
					document.all['llzq'].value = llzq_dzx_zzx;
				}
				if(output=="中中中"){
					document.all['showLuckCode'].value = dzx_zzz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_zzz;
					document.all['llzq'].value = llzq_dzx_zzz;
				}
				if(output=="中中大"){
					document.all['showLuckCode'].value = dzx_zzd_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_zzd;
					document.all['llzq'].value = llzq_dzx_zzd;
				}
				
				if(output=="中大小"){
					document.all['showLuckCode'].value = dzx_zdx_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_zdx;
					document.all['llzq'].value = llzq_dzx_zdx;
				}
				if(output=="中大中"){
					document.all['showLuckCode'].value = dzx_zdz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_zdz;
					document.all['llzq'].value = llzq_dzx_zdz;
				}
				if(output=="中大大"){
					document.all['showLuckCode'].value = dzx_zdd_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_zdd;
					document.all['llzq'].value = llzq_dzx_zdd;
				}
				
				if(output=="大小小"){
					document.all['showLuckCode'].value = dzx_dxx_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_dxx;
					document.all['llzq'].value = llzq_dzx_dxx;
				}
				if(output=="大小中"){
					document.all['showLuckCode'].value = dzx_dxz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_dxz;
					document.all['llzq'].value = llzq_dzx_dxz;
				}
				if(output=="大小大"){
					document.all['showLuckCode'].value = dzx_dxd_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_dxd;
					document.all['llzq'].value = llzq_dzx_dxd;
				}
										
				if(output=="大中小"){
					document.all['showLuckCode'].value = dzx_dzx_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_dzx;
					document.all['llzq'].value = llzq_dzx_dzx;
				}
				if(output=="大中中"){
					document.all['showLuckCode'].value = dzx_dzz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_dzz;
					document.all['llzq'].value = llzq_dzx_dzz;
				}
				if(output=="大中大"){
					document.all['showLuckCode'].value = dzx_dzd_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_dzd;
					document.all['llzq'].value = llzq_dzx_dzd;
				}
				
				if(output=="大大小"){
					document.all['showLuckCode'].value = dzx_ddx_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_ddx;
					document.all['llzq'].value = llzq_dzx_ddx;
				}
				if(output=="大大中"){
					document.all['showLuckCode'].value = dzx_ddz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_ddz;
					document.all['llzq'].value = llzq_dzx_ddz;
				}
				if(output=="大大大"){
					document.all['showLuckCode'].value = dzx_ddd_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_ddd;
					document.all['llzq'].value = llzq_dzx_ddd;
				}
		}
		if(pt_type=="dzx" && p_pt==2){//组选
				if(output=="全小"){
					document.all['showLuckCode'].value = dzx_zx_AllSmall_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_small_zx;
					document.all['llzq'].value = llzq_dzx_small_zx;
				}
				if(output=="全中"){
					document.all['showLuckCode'].value = dzx_xxz_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_middle_zx;
					document.all['llzq'].value = llzq_dzx_middle_zx;
				}
				if(output=="全大"){
					document.all['showLuckCode'].value = dzx_zx_AllBig_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_big_zx;
					document.all['llzq'].value = llzq_dzx_big_zx;
				}
				if(output=="2小1中"){
					document.all['showLuckCode'].value = dzx_zx_2Small1Middle_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_2small1middle_zx;
					document.all['llzq'].value = llzq_dzx_2small1middle_zx;
				}
				if(output=="2小1大"){
					document.all['showLuckCode'].value = dzx_zx_2Small1Big_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_2small1big_zx;
					document.all['llzq'].value = llzq_dzx_2small1big_zx;
				}
				if(output=="2中1小"){
					document.all['showLuckCode'].value = dzx_zx_2Middle1Small_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_2middle1small_zx;
					document.all['llzq'].value = llzq_dzx_2middle1small_zx;
				}				
				if(output=="2中1大"){
					document.all['showLuckCode'].value = dzx_zx_2Middle1Big_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_2middle1big_zx;
					document.all['llzq'].value = llzq_dzx_2middle1big_zx;
				}
				if(output=="2大1小"){
					document.all['showLuckCode'].value = dzx_zx_2Big1Small_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_2big1small_zx;
					document.all['llzq'].value = llzq_dzx_2big1small_zx;
				}	
				if(output=="2大1中"){
					document.all['showLuckCode'].value = dzx_zx_2Big1Middle_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_2big1middle_zx;
					document.all['llzq'].value = llzq_dzx_2big1middle_zx;
				}
				
				if(output=="大中小"){
					document.all['showLuckCode'].value = dzx_zx_BMS_lastLuckNumber;
					document.all['ylzq'].value = ylzq_dzx_SMB_zx;
					document.all['llzq'].value = llzq_dzx_SMB_zx;
				}
				
		}
		if(pt_type=="dx" && p_pt==1){//直选
			if(output=="小小小"){
						document.all['showLuckCode'].value = dx_xxx_lastLuckNumber;
						document.all['ylzq'].value = ylzq_dx_xxx;
						document.all['llzq'].value = llzq_dx_xxx;
			}
			if(output=="小小大"){
						document.all['showLuckCode'].value = dx_xxd_lastLuckNumber;
						document.all['ylzq'].value = ylzq_dx_xxd;
						document.all['llzq'].value = llzq_dx_xxd;
			}
			if(output=="小大小"){
						document.all['showLuckCode'].value = dx_xdx_lastLuckNumber;
						document.all['ylzq'].value = ylzq_dx_xdx;
						document.all['llzq'].value = llzq_dx_xdx;
			}
			if(output=="小大大"){
						document.all['showLuckCode'].value = dx_xdd_lastLuckNumber;
						document.all['ylzq'].value = ylzq_dx_xdd;
						document.all['llzq'].value = llzq_dx_xdd;
			}
			if(output=="大小小"){
						document.all['showLuckCode'].value = dx_dxx_lastLuckNumber;
						document.all['ylzq'].value = ylzq_dx_dxx;
						document.all['llzq'].value = llzq_dx_dxx;
			}
			if(output=="大小大"){
						document.all['showLuckCode'].value = dx_dxd_lastLuckNumber;
						document.all['ylzq'].value = ylzq_dx_dxd;
						document.all['llzq'].value = llzq_dx_dxd;
			}
			if(output=="大大小"){
						document.all['showLuckCode'].value = dx_ddx_lastLuckNumber;
						document.all['ylzq'].value = ylzq_dx_ddx;
						document.all['llzq'].value = llzq_dx_ddx;
			}			
			if(output=="大大大"){
						document.all['showLuckCode'].value = dx_ddd_lastLuckNumber;
						document.all['ylzq'].value = ylzq_dx_ddd;
						document.all['llzq'].value = llzq_dx_ddd;
			}
		}
		if(pt_type=="dx" && p_pt==2){//组选
			if(output=="全大"){
						document.all['showLuckCode'].value = dx_zx_AllBig_lastLuckNumber;
						document.all['ylzq'].value = ylzq_All_big_zx;
						document.all['llzq'].value = llzq_dx_zx_AllBig;
			}
			if(output=="全小"){
						document.all['showLuckCode'].value = dx_zx_AllSmall_lastLuckNumber;
						document.all['ylzq'].value = ylzq_All_small_zx;
						document.all['llzq'].value = llzq_dx_zx_AllSmall;
			}
			if(output=="2大1小"){
						document.all['showLuckCode'].value = dx_zx_2Big1Small_lastLuckNumber;
						document.all['ylzq'].value = ylzq_All_2big1small_zx;
						document.all['llzq'].value = llzq_dx_zx_2Big1Small;
			}
			if(output=="2小1大"){
						document.all['showLuckCode'].value = dx_zx_2Small1Big_lastLuckNumber;
						document.all['ylzq'].value = ylzq_All_1small2big_zx;
						document.all['llzq'].value = llzq_dx_zx_2Small1Big;
			}
		}
		if(pt_type=="jo" && p_pt==1){//直选
			if(output=="奇奇奇"){
						document.all['showLuckCode'].value = tmp_jo_jjj_lastLuckNumber;
						document.all['ylzq'].value = ylzq_jo_jjj;
						document.all['llzq'].value = llzq_jo_jjj;
			}
			if(output=="奇奇偶"){
						document.all['showLuckCode'].value = tmp_jo_jjo_lastLuckNumber;
						document.all['ylzq'].value = ylzq_jo_jjo;
						document.all['llzq'].value = llzq_jo_jjo;
			}
			if(output=="奇偶奇"){
						document.all['showLuckCode'].value = tmp_jo_joj_lastLuckNumber;
						document.all['ylzq'].value = ylzq_jo_joj;
						document.all['llzq'].value = llzq_jo_joj;
			}
			if(output=="奇偶偶"){
						document.all['showLuckCode'].value = tmp_jo_joo_lastLuckNumber;
						document.all['ylzq'].value = ylzq_jo_joo;
						document.all['llzq'].value = llzq_jo_joo;
			}
			if(output=="偶奇奇"){
						document.all['showLuckCode'].value = tmp_jo_ojj_lastLuckNumber;
						document.all['ylzq'].value = ylzq_jo_ojj;
						document.all['llzq'].value = llzq_jo_ojj;
			}
			if(output=="偶奇偶"){
						document.all['showLuckCode'].value = tmp_jo_ojo_lastLuckNumber;
						document.all['ylzq'].value = ylzq_jo_ojo;
						document.all['llzq'].value = llzq_jo_ojo;
			}
			if(output=="偶偶奇"){
						document.all['showLuckCode'].value = tmp_jo_ooj_lastLuckNumber;
						document.all['ylzq'].value = ylzq_jo_ooj;
						document.all['llzq'].value = llzq_jo_ooj;
			}
			if(output=="偶偶偶"){
						document.all['showLuckCode'].value = tmp_jo_ooo_lastLuckNumber;
						document.all['ylzq'].value = ylzq_jo_ooo;
						document.all['llzq'].value = llzq_jo_ooo;
			}
		}
			if(pt_type=="jo" && p_pt==2){//组选
			if(output=="全奇"){
						document.all['showLuckCode'].value = jo_zx_AllJ_lastLuckNumber;
						document.all['ylzq'].value = ylzq_All_qi_zx;
						document.all['llzq'].value = llzq_All_qi_zx;
			}
			if(output=="全偶"){
						document.all['showLuckCode'].value = jo_zx_AllO_lastLuckNumber;
						document.all['ylzq'].value = ylzq_All_ou_zx;
						document.all['llzq'].value = llzq_All_ou_zx;
			}
			if(output=="2奇1偶"){
						document.all['showLuckCode'].value = jo_zx_2J1O_lastLuckNumber;
						document.all['ylzq'].value = ylzq_All_2qi1ou_zx;
						document.all['llzq'].value = llzq_All_2qi1ou_zx;
			}
			if(output=="2偶1奇"){
						document.all['showLuckCode'].value = jo_zx_2O1J_lastLuckNumber;
						document.all['ylzq'].value = ylzq_All_2ou1qi_zx;
						document.all['llzq'].value = llzq_All_2ou1qi_zx;
			}
		}
		if(pt_type=="hezhi" && p_pt==1){
			if(output=="0"){
						document.all['showLuckCode'].value = luckNumber_hezhi0;
						document.all['ylzq'].value = ylzq_sumhi0;
						document.all['llzq'].value = llzq_sumhi0;
			}
			if(output=="1"){
						document.all['showLuckCode'].value = luckNumber_hezhi1;
						document.all['ylzq'].value = ylzq_sumhi1;
						document.all['llzq'].value = llzq_sumhi1;
			}
			if(output=="2"){
						document.all['showLuckCode'].value = luckNumber_hezhi2;
						document.all['ylzq'].value = ylzq_sumhi2;
						document.all['llzq'].value = llzq_sumhi2;
			}
			if(output=="3"){
						document.all['showLuckCode'].value = luckNumber_hezhi3;
						document.all['ylzq'].value = ylzq_sumhi3;
						document.all['llzq'].value = llzq_sumhi3;
			}
			if(output=="4"){
						document.all['showLuckCode'].value = luckNumber_hezhi4;
						document.all['ylzq'].value = ylzq_sumhi4;
						document.all['llzq'].value = llzq_sumhi4;
			}
			if(output=="5"){
						document.all['showLuckCode'].value = luckNumber_hezhi5;
						document.all['ylzq'].value = ylzq_sumhi5;
						document.all['llzq'].value = llzq_sumhi4;
			}
			if(output=="6"){
						document.all['showLuckCode'].value = luckNumber_hezhi6;
						document.all['ylzq'].value = ylzq_sumhi6;
						document.all['llzq'].value = llzq_sumhi6;
			}
			if(output=="7"){
						document.all['showLuckCode'].value = luckNumber_hezhi7;
						document.all['ylzq'].value = ylzq_sumhi7;
						document.all['llzq'].value = llzq_sumhi7;
			}
			if(output=="8"){
						document.all['showLuckCode'].value = luckNumber_hezhi8;
						document.all['ylzq'].value = ylzq_sumhi8;
						document.all['llzq'].value = llzq_sumhi8;
			}
			if(output=="9"){
						document.all['showLuckCode'].value = luckNumber_hezhi9;
						document.all['ylzq'].value = ylzq_sumhi9;
						document.all['llzq'].value = llzq_sumhi9;
			}
			if(output=="10"){
						document.all['showLuckCode'].value = luckNumber_hezhi10;
						document.all['ylzq'].value = ylzq_sumhi10;
						document.all['llzq'].value = llzq_sumhi10;
			}
			if(output=="11"){
						document.all['showLuckCode'].value = luckNumber_hezhi11;
						document.all['ylzq'].value = ylzq_sumhi11;
						document.all['llzq'].value = llzq_sumhi11;
			}
			if(output=="12"){
						document.all['showLuckCode'].value = luckNumber_hezhi12;
						document.all['ylzq'].value = ylzq_sumhi12;
						document.all['llzq'].value = llzq_sumhi12;
			}
			if(output=="13"){
						document.all['showLuckCode'].value = luckNumber_hezhi13;
						document.all['ylzq'].value = ylzq_sumhi13;
						document.all['llzq'].value = llzq_sumhi13;
			}
			if(output=="14"){
						document.all['showLuckCode'].value = luckNumber_hezhi14;
						document.all['ylzq'].value = ylzq_sumhi14;
						document.all['llzq'].value = llzq_sumhi14;
			}
			if(output=="15"){
						document.all['showLuckCode'].value = luckNumber_hezhi15;
						document.all['ylzq'].value = ylzq_sumhi15;
						document.all['llzq'].value = llzq_sumhi15;
			}
			if(output=="16"){
						document.all['showLuckCode'].value = luckNumber_hezhi16;
						document.all['ylzq'].value = ylzq_sumhi16;
						document.all['llzq'].value = llzq_sumhi16;
			}
			if(output=="17"){
						document.all['showLuckCode'].value = luckNumber_hezhi17;
						document.all['ylzq'].value = ylzq_sumhi17;
						document.all['llzq'].value = llzq_sumhi17;
			}
			if(output=="18"){
						document.all['showLuckCode'].value = luckNumber_hezhi18;
						document.all['ylzq'].value = ylzq_sumhi18;
						document.all['llzq'].value = llzq_sumhi18;
			}
			if(output=="19"){
						document.all['showLuckCode'].value = luckNumber_hezhi19;
						document.all['ylzq'].value = ylzq_sumhi19;
						document.all['llzq'].value = llzq_sumhi19;
			}
			if(output=="20"){
						document.all['showLuckCode'].value = luckNumber_hezhi20;
						document.all['ylzq'].value = ylzq_sumhi20;
						document.all['llzq'].value = llzq_sumhi20;
			}
			if(output=="21"){
						document.all['showLuckCode'].value = luckNumber_hezhi21;
						document.all['ylzq'].value = ylzq_sumhi21;
						document.all['llzq'].value = llzq_sumhi21;
			}
			if(output=="22"){
						document.all['showLuckCode'].value = luckNumber_hezhi22;
						document.all['ylzq'].value = ylzq_sumhi22;
						document.all['llzq'].value = llzq_sumhi22;
			}
			if(output=="23"){
						document.all['showLuckCode'].value = luckNumber_hezhi23;
						document.all['ylzq'].value = ylzq_sumhi23;
						document.all['llzq'].value = llzq_sumhi23;
			}
			if(output=="24"){
						document.all['showLuckCode'].value = luckNumber_hezhi24;
						document.all['ylzq'].value = ylzq_sumhi24;
						document.all['llzq'].value = llzq_sumhi24;
			}
			if(output=="25"){
						document.all['showLuckCode'].value = luckNumber_hezhi25;
						document.all['ylzq'].value = ylzq_sumhi25;
						document.all['llzq'].value = llzq_sumhi25;
			}
			if(output=="26"){
						document.all['showLuckCode'].value = luckNumber_hezhi26;
						document.all['ylzq'].value = ylzq_sumhi26;
						document.all['llzq'].value = llzq_sumhi26;
			}
			if(output=="27"){
						document.all['showLuckCode'].value = luckNumber_hezhi27;
						document.all['ylzq'].value = ylzq_sumhi27;
						document.all['llzq'].value = llzq_sumhi27;
			}
		}
		if(pt_type=="hezhi" && p_pt==2){
			if(output=="0"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber0;
						document.all['ylzq'].value = ylzq_sum_zx_0;
						document.all['llzq'].value = llzq_sum_zx_0;
			}
			if(output=="1"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber1;
						document.all['ylzq'].value = ylzq_sum_zx_1;
						document.all['llzq'].value = llzq_sum_zx_1;
			}
			if(output=="2"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber2;
						document.all['ylzq'].value = ylzq_sum_zx_2;
						document.all['llzq'].value = llzq_sum_zx_2;
			}
			if(output=="3"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber3;
						document.all['ylzq'].value = ylzq_sum_zx_3;
						document.all['llzq'].value = llzq_sum_zx_3;
			}
			if(output=="4"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber4;
						document.all['ylzq'].value = ylzq_sum_zx_4;
						document.all['llzq'].value = llzq_sum_zx_4;
			}
			if(output=="5"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber5;
						document.all['ylzq'].value = ylzq_sum_zx_5;
						document.all['llzq'].value = llzq_sum_zx_4;
			}
			if(output=="6"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber6;
						document.all['ylzq'].value = ylzq_sum_zx_6;
						document.all['llzq'].value = llzq_sum_zx_6;
			}
			if(output=="7"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber7;
						document.all['ylzq'].value = ylzq_sum_zx_7;
						document.all['llzq'].value = llzq_sum_zx_7;
			}
			if(output=="8"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber8;
						document.all['ylzq'].value = ylzq_sum_zx_8;
						document.all['llzq'].value = llzq_sum_zx_8;
			}
			if(output=="9"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber9;
						document.all['ylzq'].value = ylzq_sum_zx_9;
						document.all['llzq'].value = llzq_sum_zx_9;
			}
			if(output=="10"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber10;
						document.all['ylzq'].value = ylzq_sum_zx_10;
						document.all['llzq'].value = llzq_sum_zx_10;
			}
			if(output=="11"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber11;
						document.all['ylzq'].value = ylzq_sum_zx_11;
						document.all['llzq'].value = llzq_sum_zx_11;
			}
			if(output=="12"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber12;
						document.all['ylzq'].value = ylzq_sum_zx_12;
						document.all['llzq'].value = llzq_sum_zx_12;
			}
			if(output=="13"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber13;
						document.all['ylzq'].value = ylzq_sum_zx_13;
						document.all['llzq'].value = llzq_sum_zx_13;
			}
			if(output=="14"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber14;
						document.all['ylzq'].value = ylzq_sum_zx_14;
						document.all['llzq'].value = llzq_sum_zx_14;
			}
			if(output=="15"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber15;
						document.all['ylzq'].value = ylzq_sum_zx_15;
						document.all['llzq'].value = llzq_sum_zx_15;
			}
			if(output=="16"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber16;
						document.all['ylzq'].value = ylzq_sum_zx_16;
						document.all['llzq'].value = llzq_sum_zx_16;
			}
			if(output=="17"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber17;
						document.all['ylzq'].value = ylzq_sum_zx_17;
						document.all['llzq'].value = llzq_sum_zx_17;
			}
			if(output=="18"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber18;
						document.all['ylzq'].value = ylzq_sum_zx_18;
						document.all['llzq'].value = llzq_sum_zx_18;
			}
			if(output=="19"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber19;
						document.all['ylzq'].value = ylzq_sum_zx_19;
						document.all['llzq'].value = llzq_sum_zx_19;
			}
			if(output=="20"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber20;
						document.all['ylzq'].value = ylzq_sum_zx_20;
						document.all['llzq'].value = llzq_sum_zx_20;
			}
			if(output=="21"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber21;
						document.all['ylzq'].value = ylzq_sum_zx_21;
						document.all['llzq'].value = llzq_sum_zx_21;
			}
			if(output=="22"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber22;
						document.all['ylzq'].value = ylzq_sum_zx_22;
						document.all['llzq'].value = llzq_sum_zx_22;
			}
			if(output=="23"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber23;
						document.all['ylzq'].value = ylzq_sum_zx_23;
						document.all['llzq'].value = llzq_sum_zx_23;
			}
			if(output=="24"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber24;
						document.all['ylzq'].value = ylzq_sum_zx_24;
						document.all['llzq'].value = llzq_sum_zx_24;
			}
			if(output=="25"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber25;
						document.all['ylzq'].value = ylzq_sum_zx_25;
						document.all['llzq'].value = llzq_sum_zx_25;
			}
			if(output=="26"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber26;
						document.all['ylzq'].value = ylzq_sum_zx_26;
						document.all['llzq'].value = llzq_sum_zx_26;
			}
			if(output=="27"){
						document.all['showLuckCode'].value = sum_zx_lastLuckNumber27;
						document.all['ylzq'].value = ylzq_sum_zx_27;
						document.all['llzq'].value = llzq_sum_zx_27;
			}
		}
		if(pt_type=="baiwei" && p_pt==1){
			if(output=="0"){
							document.all['showLuckCode'].value = baiwei0_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_0;
							document.all['llzq'].value = llzq_baiwei_0;
			}
			if(output=="1"){
							document.all['showLuckCode'].value = baiwei1_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_1;
							document.all['llzq'].value = llzq_baiwei_1;
			}
			if(output=="2"){
							document.all['showLuckCode'].value = baiwei2_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_2;
							document.all['llzq'].value = llzq_baiwei_2;
			}
			if(output=="3"){
							document.all['showLuckCode'].value = baiwei3_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_3;
							document.all['llzq'].value = llzq_baiwei_3;
			}
			if(output=="4"){
							document.all['showLuckCode'].value = baiwei4_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_4;
							document.all['llzq'].value = llzq_baiwei_4;
			}
			if(output=="5"){
							document.all['showLuckCode'].value = baiwei5_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_5;
							document.all['llzq'].value = llzq_baiwei_5;
			}
			if(output=="6"){
							document.all['showLuckCode'].value = baiwei6_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_6;
							document.all['llzq'].value = llzq_baiwei_6;
			}
			if(output=="7"){
							document.all['showLuckCode'].value = baiwei7_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_7;
							document.all['llzq'].value = llzq_baiwei_7;
			}
			if(output=="8"){
							document.all['showLuckCode'].value = baiwei8_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_8;
							document.all['llzq'].value = llzq_baiwei_8;
			}			
			if(output=="9"){
							document.all['showLuckCode'].value = baiwei9_lastLuckNumber;
							document.all['ylzq'].value = ylzq_baiwei_9;
							document.all['llzq'].value = llzq_baiwei_9;
			}		
		}
			if(pt_type=="shiwei" && p_pt==1){
				if(output=="0"){
								document.all['showLuckCode'].value = shiwei0_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_0;
								document.all['llzq'].value = llzq_shiwei_0;
				}
				if(output=="1"){
								document.all['showLuckCode'].value = shiwei1_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_1;
								document.all['llzq'].value = llzq_shiwei_1;
				}
				if(output=="2"){
								document.all['showLuckCode'].value = shiwei2_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_2;
								document.all['llzq'].value = llzq_shiwei_2;
				}
				if(output=="3"){
								document.all['showLuckCode'].value = shiwei3_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_3;
								document.all['llzq'].value = llzq_shiwei_3;
				}
				if(output=="4"){
								document.all['showLuckCode'].value = shiwei4_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_4;
								document.all['llzq'].value = llzq_shiwei_4;
				}
				if(output=="5"){
								document.all['showLuckCode'].value = shiwei5_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_5;
								document.all['llzq'].value = llzq_shiwei_5;
				}
				if(output=="6"){
								document.all['showLuckCode'].value = shiwei6_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_6;
								document.all['llzq'].value = llzq_shiwei_6;
				}
				if(output=="7"){
								document.all['showLuckCode'].value = shiwei7_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_7;
								document.all['llzq'].value = llzq_shiwei_7;
				}
				if(output=="8"){
								document.all['showLuckCode'].value = shiwei8_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_8;
								document.all['llzq'].value = llzq_shiwei_8;
				}			
				if(output=="9"){
								document.all['showLuckCode'].value = shiwei9_lastLuckNumber;
								document.all['ylzq'].value = ylzq_shiwei_9;
								document.all['llzq'].value = llzq_shiwei_9;
				}		
		}
		if(pt_type=="gewei" && p_pt==1){
			if(output=="0"){
							document.all['showLuckCode'].value = gewei0_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_0;
							document.all['llzq'].value = llzq_gewei_0;
			}
			if(output=="1"){
							document.all['showLuckCode'].value = gewei1_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_1;
							document.all['llzq'].value = llzq_gewei_1;
			}
			if(output=="2"){
							document.all['showLuckCode'].value = gewei2_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_2;
							document.all['llzq'].value = llzq_gewei_2;
			}
			if(output=="3"){
							document.all['showLuckCode'].value = gewei3_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_3;
							document.all['llzq'].value = llzq_gewei_3;
			}
			if(output=="4"){
							document.all['showLuckCode'].value = gewei4_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_4;
							document.all['llzq'].value = llzq_gewei_4;
			}
			if(output=="5"){
							document.all['showLuckCode'].value = gewei5_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_5;
							document.all['llzq'].value = llzq_gewei_5;
			}
			if(output=="6"){
							document.all['showLuckCode'].value = gewei6_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_6;
							document.all['llzq'].value = llzq_gewei_6;
			}
			if(output=="7"){
							document.all['showLuckCode'].value = gewei7_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_7;
							document.all['llzq'].value = llzq_gewei_7;
			}
			if(output=="8"){
							document.all['showLuckCode'].value = gewei8_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_8;
							document.all['llzq'].value = llzq_gewei_8;
			}			
			if(output=="9"){
							document.all['showLuckCode'].value = gewei9_lastLuckNumber;
							document.all['ylzq'].value = ylzq_gewei_9;
							document.all['llzq'].value = llzq_gewei_9;
			}		
		}		
	}
function Init_luckNumber(){
	try{
		document.all['lastLuckCode'].value = '';
		document.all['lastdatenumber'].value = '';
		document.all['ylzq'].value = '';
		document.all['llzq'].value = '';
		document.all['LuckCodeCon'].value = '';
	}catch(e){}

}
var p_pt = 1;//1:偏态直选	2:偏态组选



