﻿			function floatDiv(s1,s2,ID)
			{
				var tempdiv="";
				tempdiv += "<div ";
				tempdiv += "style=\"width 12px; height 23px;position:absolute;top:"+s1;
				tempdiv+="; left:"+s2;
				tempdiv += "\"></div>";
				
				window.document.getElementById(ID).innerHTML =tempdiv;	
				
			}
			
			
			function UnStrCode(str) 
			{
				if(decodeURIComponent )
					return decodeURIComponent (str);
				if(unescape) 
					return unescape(str);
			}
			function Trim(s)
			{
				var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/);
				return (m == null)?"":m[1];
			}
			function gid(id)
			{
				return document.getElementById?document.getElementById(id):null;
			}
			function gname(name)
			{
				return document.getElementsByTagName?document.getElementsByTagName(name):new Array()
			}

			function Browser()
			{
				var ua, s, i;
				this.isIE = false;
				this.isNS = false;
				this.isOP = false;
				this.isSF = false;
				ua = navigator.userAgent.toLowerCase();
				s = "opera";
				if ((i = ua.indexOf(s)) >= 0)
				{
					this.isOP = true;return;
				}
				s = "msie";
				if ((i = ua.indexOf(s)) >= 0) 
				{
					this.isIE = true;return;
				}
				s = "netscape6/";
				if ((i = ua.indexOf(s)) >= 0)
				{
					this.isNS = true;
					return;
				}
				s = "gecko";
				if ((i = ua.indexOf(s)) >= 0)
				{
					this.isNS = true;
					return;
				}
				s = "safari";
				if ((i = ua.indexOf(s)) >= 0) 
				{
					this.isSF = true;
					return;
				}
			}

			function ScreenConvert()
			{
				var browser = new Browser();
				var objScreen = gid("ScreenOver");
				if(!objScreen)
					var objScreen = document.createElement("div");
					var oS = objScreen.style;objScreen.id = "ScreenOver";
					oS.display="none";
					oS.top = oS.left = oS.margin = oS.padding = "0px";
					if (document.body.clientHeight)
					{
						var wh = document.body.clientHeight + "px";
					}
					else if(window.innerHeight)
					{
						var wh = window.innerHeight + "px";
					}
					else
					{
						var wh = "100%";
					}
					oS.width = "100%";
					oS.height = wh;
					oS.position = "absolute";
					oS.zIndex = "3";
					if ((!browser.isSF) && (!browser.isOP))
					{
						oS.background = "#000";   //颜色
					}
					else
					{
						oS.background = "#000";
					}
					oS.filter = "alpha(opacity=60)";
					oS.opacity = 60/100;oS.MozOpacity = 60/100;//调透明度
					document.body.appendChild(objScreen);
					var allselect = gname("select");
					for (var i=0; i<allselect.length; i++) 
						allselect[i].style.visibility = "hidden";
			}

			function ScreenClean()
			{
				var objScreen = document.getElementById("ScreenOver");
				if (objScreen) objScreen.style.display = "none";
				var allselect = gname("select");
				for (var i=0; i<allselect.length; i++) allselect[i].style.visibility = "visible";
			}
			var t_DiglogX,t_DiglogY,t_DiglogW,t_DiglogH;

			function DialogShow(showdata,w,h,t,l)
			{
				var objDialog = document.getElementById("DialogMove");
				if (!objDialog) 
					objDialog = document.createElement("div");
				objDialog.id = "DialogMove";
				var oS = objDialog.style;oS.display = "block";
				t_DiglogX=l;
				t_DiglogY=t;		
				oS.top = t_DiglogY + "px";
				oS.left = t_DiglogX + "px";
				oS.margin = "0px";
				oS.padding = "0px";
				oS.width = w + "px";
				oS.height = h + "px";
				oS.position = "absolute";
				oS.zIndex = "5";
				oS.background = "#FFF";
				oS.border = "0px solid #999999";
				objDialog.innerHTML = showdata;document.body.appendChild(objDialog);
			}

			function DialogHide()
			{
				ScreenClean();
				var objDialog = document.getElementById("DialogMove");
				if (objDialog) 
					objDialog.style.display = "none";
			}
			
			function ShopAuth(name, url,width,height,t,l)
			{
				ScreenConvert();
				name = UnStrCode(name);
				var AJAX_LoginBody="";

				AJAX_LoginBody+="<div class='fqfk_1_xxjc'><img src='../images/paymentsystem/fqfk1.jpg' width='469' height='8' border='0' alt='' /></div>";
				AJAX_LoginBody+="<div style='width:469px; height:auto; overflow:hidden; background:url(../images/paymentsystem/fqfkbg.jpg) repeat-y; clear:both'><div class='fqfk_2_xxjc' style=' width:447px; height:26px; background:url(../images/paymentsystem/xxjc.jpg) no-repeat 20px; margin=auto'><a href='#' onclick='DialogHide()' ><img src='../images/paymentsystem/fqfk4.jpg' alt='关闭' width='26' height='26' border='0' align='right' /></a></div></div>";
				AJAX_LoginBody+="<div height='"+height+"' colspan='3' valign='top'><iframe src='"+url+"' width="+width+" height='"+height+"' frameborder='0' scrolling='no' allowtransparency=true></iframe></div>";
				DialogShow(AJAX_LoginBody,width,height,t,l);	
			}
			
			function zengpin(name, url,width,height,t,l)
			{
				ScreenConvert();
				name = UnStrCode(name);
				var AJAX_LoginBody="";

				AJAX_LoginBody+="<div class='fqfk_1_zp'><img src='../images/paymentsystem/zp01.jpg' width='756' height='10' border='0' alt='' /></div>";
				AJAX_LoginBody+="<div style='width:756px; height:auto; overflow:hidden; background:url(../images/paymentsystem/zp02.jpg) repeat-y; clear:both'><div class='zp_head' style=' width:746px; height:26px; background:url(../images/paymentsystem/zp_head.jpg) no-repeat 20px; margin=auto'><a href='#' onclick='DialogHide()' ><img src='../images/paymentsystem/fqfk4.jpg' alt='关闭' width='26' height='26' border='0' align='right' /></a></div></div>";
				AJAX_LoginBody+="<div height='"+height+"' colspan='3' valign='top'><iframe src='"+url+"' width="+width+" height='"+height+"' frameborder='0' scrolling='no' allowtransparency=true></iframe></div>";
				DialogShow(AJAX_LoginBody,width,height,t,l);	
			}
			
			function ShopAuth_bj(name, url,width,height,t,l)
			{
				ScreenConvert();
				name = UnStrCode(name);
				var AJAX_LoginBody="";

				AJAX_LoginBody+="<div class='fqfk_1_bjtz'><img src='../images/paymentsystem/fqfk1.jpg' width='469' height='8' border='0' alt='' /></div>";
				AJAX_LoginBody+="<div style='width:469px; height:auto; overflow:hidden; background:url(../images/paymentsystem/fqfkbg.jpg) repeat-y; clear:both'><div class='fqfk_2_bjtz' style=' width:447px; height:26px; background:url(../images/paymentsystem/bjtz.jpg) no-repeat 20px; margin=auto'><a href='#' onclick='DialogHide()'><img src='../images/paymentsystem/fqfk4.jpg' alt='关闭' width='26' height='26' border='0' align='right' /></a></div></div>";
				AJAX_LoginBody+="<div height='"+height+"' colspan='3' valign='top'><iframe src='"+url+"' width="+width+" height='"+height+"' frameborder='0' scrolling='no' allowtransparency='true' style='background-color:transparent;'></iframe></div>";
				DialogShow(AJAX_LoginBody,width,height,t,l);	
			}
			
			function ShopAuth_jb(name, url,width,height,t,l)
			{
				ScreenConvert();
				name = UnStrCode(name);
				var AJAX_LoginBody="";

				AJAX_LoginBody+="<div class='fqfk_1_bjtz'><img src='../images/paymentsystem/fqfk1.jpg' width='469' height='8' border='0' alt='' /></div>";
				AJAX_LoginBody+="<div style='width:469px; height:auto; overflow:hidden; background:url(../images/paymentsystem/fqfkbg.jpg) repeat-y; clear:both'><div class='fqfk_2_jgjb' style=' width:447px; height:26px; background:url(../images/paymentsystem/jiagejubao.jpg) no-repeat 20px; margin=auto'><a href='#' onclick='DialogHide()'><img src='../images/paymentsystem/fqfk4.jpg' alt='关闭' width='26' height='26' border='0' align='right' /></a></div></div>";
				AJAX_LoginBody+="<div height='"+height+"' colspan='3' valign='top'><iframe src='"+url+"' width="+width+" height='"+height+"' frameborder='0' scrolling='no' allowtransparency=true></iframe></div>";
				DialogShow(AJAX_LoginBody,width,height,t,l);	
			}
			
			function ShopAuth_bm(name, url,width,height,t,l)
			{
				ScreenConvert();
				name = UnStrCode(name);
				var AJAX_LoginBody="";

				AJAX_LoginBody+="";
				AJAX_LoginBody+="<div style='width:377px; height:0;  background:#fff; clear:both'><div class='fqfk_2_jgjb' style='width:377px; height:26px; position:absolute; top:1px;'><a href='#' onclick='DialogHide()'><img src='../images/paymentsystem/fqfk400.jpg' alt='关闭' width='26' height='26' border='0' align='right' /></a></div></div>";
				AJAX_LoginBody+="<div height='"+height+"' colspan='3' valign='top'><iframe src='"+url+"' width="+width+" height='"+height+"' frameborder='0' scrolling='no' allowtransparency=true></iframe></div>";
				DialogShow(AJAX_LoginBody,width,height,t,l);	
			}
			
			function ShopAuth_Mm(name, url,width,height,t,l)
			{
				ScreenConvert();
				name = UnStrCode(name);
				var AJAX_LoginBody="";

				AJAX_LoginBody+="<div class='fqfk_1_bjtz'><img src='../images/paymentsystem/fqfk1.jpg' width='469' height='8' border='0' alt='' /></div>";
				AJAX_LoginBody+="<div style='width:469px; height:auto; overflow:hidden; background:url(../images/paymentsystem/fqfkbg.jpg) repeat-y; clear:both'><div class='fqfk_2_jgjb' style=' width:447px; height:26px; background:url(../images/paymentsystem/zhmm_03.jpg) no-repeat 20px; margin=auto'><a href='#' onclick='DialogHide()'><img src='../images/paymentsystem/fqfk4.jpg' alt='关闭' width='26' height='26' border='0' align='right' style='margin-right=5px' /></a></div></div>";
				AJAX_LoginBody+="<div height='"+height+"' colspan='3' valign='top'><iframe src='"+url+"' width="+width+" height='"+height+"' frameborder='0' scrolling='no' allowtransparency=true></iframe></div>";
				DialogShow(AJAX_LoginBody,width,height,t,l);	
			}
			
			
			
			
			
