$(document).ready(function(){
				var t9 = new PopupLayer({trigger:"#biaozhun_download",popupBlk:"#blk9",closeBtn:"#close9",useOverlay:true,useFx:true,
					offsets:{
						x:0,
						y:-41
					}
				});
				
				t9.doEffects = function(way){
					$('#banben').val('biaozhun');
					if(way == "open"){
						this.popupLayer.css({opacity:0.3}).show(400,function(){
							this.popupLayer.animate({
								left:($(document).width() - this.popupLayer.width())/2,
								top:(document.documentElement.clientHeight - this.popupLayer.height())/2 + $(document).scrollTop(),
								opacity:0.8
							},1000,function(){this.popupLayer.css("opacity",1)}.binding(this));
						}.binding(this));
					}
					else{
						this.popupLayer.animate({
							left:this.trigger.offset().left,
							top:this.trigger.offset().top,
							opacity:0.1
						},{duration:500,complete:function(){this.popupLayer.css("opacity",1);this.popupLayer.hide()}.binding(this)});
					}
				}


				var t10 = new PopupLayer({trigger:"#mianfei_download",popupBlk:"#blk10",closeBtn:"#close10",useOverlay:true,useFx:true,
					offsets:{
						x:0,
						y:-41
					}
				});
				
				t10.doEffects = function(way){
					$('#banben').val('mianfei');
					if(way == "open"){
						this.popupLayer.css({opacity:0.3}).show(400,function(){
							this.popupLayer.animate({
								left:($(document).width() - this.popupLayer.width())/2,
								top:(document.documentElement.clientHeight - this.popupLayer.height())/2 + $(document).scrollTop(),
								opacity:0.8
							},1000,function(){this.popupLayer.css("opacity",1)}.binding(this));
						}.binding(this));
					}
					else{
						this.popupLayer.animate({
							left:this.trigger.offset().left,
							top:this.trigger.offset().top,
							opacity:0.1
						},{duration:500,complete:function(){this.popupLayer.css("opacity",1);this.popupLayer.hide()}.binding(this)});
					}
				}
			});
			function closeWindow(){
				$('close9').click();
			}
	function checkNum(){
		var banben=$('#banben').val();
		if(isNaN($('#tel').val())){
			alert("联系电话必须为数字.");
			$('#tel').value="";
			$('#tel').focus();
			return;
		}else if($('#tel').val().length<7){
			alert("联系电话位数不小于七位.");
			$('#tel').value="";
			$('#tel').focus();
			return;
		}else if($('#people').value==""){
			alert("联系人姓名不能为空.");
			$('#people').value="";
			$('#people').focus();
			return;
		}
		if(banben=="mianfei")
			$('#content').value=$('#content').value+"             mianfei";
		else
			$('#content').value=$('#content').value+"             zhuanye";

		var url="checkInfo.jsp?banben="+banben+"&company="+encodeURIComponent($("#company").val())+"&tel="+$("#tel").val()+"&people="+encodeURIComponent($("#people").val())+"&contents="+encodeURIComponent($("#contents").val());
		var o=objPool.GetObj();
		if(!o){alert("不能创建对象!");return;}  
		o.open("post",url,true);
		o.send(null);
		o.onreadystatechange=function()
		{
		if(o.readyState==4){
				 $("#reg").css('display','none'); 
				 $("#download").css('display','inline'); 
				 if(o.responseText.indexOf('mianfei')>0){
						$("#down").attr("href","http://www.f960.com/setupmf.exe");
					}
				 else{
						$("#down").attr("href","http://www.f960.com/setupbz.exe");
					}
		}
		}
		}
		function checkNum1(){
		var banben=$('#banben').val();
		if(isNaN($('#tel1').val())){
			alert("联系电话必须为数字.");
			$('#tel1').value="";
			$('#tel1').focus();
			return;
		}else if($('#tel1').val().length<7){
			alert("联系电话位数不小于七位.");
			$('#tel1').value="";
			$('#tel1').focus();
			return;
		}else if($('#people1').value==""){
			alert("联系人姓名不能为空.");
			$('#people1').value="";
			$('#people1').focus();
			return;
		}
		if(banben=="mianfei")
			$('#content1').value=$('#content1').value+"             mianfei";
		else
			$('#content1').value=$('#content1').value+"             zhuanye";

		var url="checkInfo.jsp?banben="+banben+"&company="+$("#company1").val()+"&tel="+$("#tel1").val()+"&people="+$("#people1").val()+"&contents="+$("#contents1").val();
		var o=objPool.GetObj();
		if(!o){alert("不能创建对象!");return;}  
		o.open("post",url,true);
		o.send(null);
		o.onreadystatechange=function()
		{
		if(o.readyState==4){
				 $("#reg1").css('display','none'); 
				 $("#download1").css('display','inline'); 
				 if(o.responseText.indexOf('mianfei')>0){
					$("#down1").attr("href","http://www.f960.com/setupmf.exe");
					}
				 else{
					$("#down1").attr("href","http://www.f960.com/setupbz.exe");}
		}
		}
		}
