//将悬浮层的位置定位在屏幕中央
	//获取屏幕宽度
	//availWidth = document.body.scrollWidth;
	//availHeight = document.body.scrollHeight;
	//alert(availWidth);
	
	//divWidth = 309;
	//divHeight=201;

	//div_y = (availHeight - divHeight)/2;
	//div_x = (availWidth - divWidth)/2;	

//执行企业动作，未登陆时弹出的登陆框，登陆后会再次执行企业的动作
document.write("<div id='loginAjax' style=\'width:309px;height:201px;DISPLAY:none; Z-INDEX:999; POSITION:absolute;  BACKGROUND-COLOR:#ffffff; bordercolor:#ffffff'>");
document.write("<iframe id='loginForm' frameborder='0' style='position:absolute; visibility:inherit; top:0px; left:0px; width:309px; height:201px; z-index:-1;'></iframe>");
document.write("<table width=\"309\" height=\"201\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"/images/channel/login/jlogin.gif\" class=\"loginbk\">");
document.write("<form name='theform' method='post' onSubmit=\"return personLogin(this,'{webUrl}');\">");
document.write("<tr>");
document.write("<td valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("<tr><td height=\"5\" colspan=\"3\"></td></tr>");
document.write("<tr><td width=\"20\"></td>");
document.write("<td align=\"right\"><a href=\"####\"><img src=\"/images/channel/login/closelogin.gif\" width=\"19\" height=\"18\" border=\"0\" onClick=\"document.getElementById('loginAjax').style.display='none';\" /></a></td>");
document.write("<td width=\"10\"></td></tr></table>");
document.write("<table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.write("<tr><td height=\"20\" align=\"center\"></td></tr><tr><td height=\"30\" align=\"center\">请先登录(个人会员)，登录后系统会自动执行您的操作</td></tr>");
document.write("<tr>");
document.write("<td height=\"30\" align=\"center\"><input type=\"text\" name=\"name\"  style=\"border:0px;width:160px;margin:0px 0px 0px 78px;\" /><input type='hidden' name='url' value=''/><input type='hidden' name='isAjax' value='1'/></td></tr>");
document.write("<tr><td height=\"14\"></td></tr>");
document.write("<tr>");
document.write("<td align=\"center\"><input type=\"password\" name=\"pwd\" style=\"border:0px;width:160px;margin:0px 0px 0px 78px;\" /></td></tr>");
document.write("<tr><td height=\"60\"><input name=\"Submit2\" type=\"submit\" value=\"个人登录\" style=\"cursor:hand;border:0px;height:26px;width:75px; background:url(/images/channel/login/jloginbtn.gif);margin:0px 10px 0px 0px;\"/>");
document.write("<input name=\"Submit2\" type=\"button\" value=\"忘记密码\" style=\"cursor:hand;border:0px;height:26px;width:75px; background:url(/images/channel/login/jloginbtn.gif);margin:0px 10px 0px 0px;\"  onclick=\"foundPasswordPerson()\"/>");
document.write("<input name=\"Submit2\" type=\"button\"  value=\"注册账号\"  style=\"cursor:hand;border:0px;height:26px;width:75px; background:url(/images/channel/login/jloginbtn.gif);margin:0px 10px 0px 0px;\" onclick=\"regPerson()\"/></td></tr></table></td></tr></form></table></div>");

function GetBrowserDocument()
{
   var _dcw = document.documentElement.clientHeight;
   var _dow = document.documentElement.offsetHeight;
   var _bcw = document.body.clientHeight;
   var _bow = document.body.offsetHeight;
   
   if(_dcw == 0) return document.body;
   if(_dcw == _dow) return document.documentElement;
   
   if(_bcw == _bow && _dcw != 0) 
     return document.documentElement;
   else
     return document.body;
}

function setPosition(){

   var oLoginAjax=document.getElementById("loginAjax");
   oLoginAjax.style.left = ((GetBrowserDocument().scrollWidth-309)/2)+"px";
   oLoginAjax.style.top = GetBrowserDocument().scrollTop+200+"px";    
}