﻿var LXobjfla; var LXtheTop = 75;var LXtheOldTop = LXtheTop
function startLXflaDiv() {
 
     var tt=10;
     var swidth;
     if (window.innerHeight) { pos = window.pageYOffset }
     else if (document.documentElement && document.documentElement.scrollTop) { pos = document.documentElement.scrollTop }
     else if (document.body) { pos = document.body.scrollTop; }
     pos=pos-LXobjfla.offsetTop+LXtheTop;
     pos=LXobjfla.offsetTop+pos/10;
     if (pos < LXtheTop) pos = LXtheTop;
     if (pos != LXtheOldTop) {
     LXobjfla.style.top = pos+"px";
     tt=10;
     }
     if (window.screen.width > 1024)
     {
        swidth = (window.screen.width - 1024)/2+680;
        LXobjfla.style.left=swidth;
     }
     else
     {
        LXobjfla.style.left="793px";
     }
     LXtheOldTop = pos;
     setTimeout(startLXflaDiv,tt);
}
function initLXflaDiv(id,html) 
{
	

     var n=document.createElement("div");
     n.setAttribute("id",id);
     
     n.style.position="absolute";
     n.style.top=LXtheTop+"px";
     n.style.width="5px";
     n.style.background="none";
     n.style.left="1px";
     
     n.innerHTML=html;
     document.body.appendChild(n);

}

function loadadbanner()
{
initLXflaDiv("rightbanner","<iframe src='/rightbar.aspx' width='201' height='500' marginwidth='0' marginheigh='0' hspace='0' vspace='0' frameborder='0' scrolling='no' allowTransparency='true'></iframe>");

LXobjfla=document.getElementById("rightbanner");
startLXflaDiv();
<!--onLoadSetDiv();-->
}
document.write("<Link Rel='SHORTCUT ICON' href='http://www.u8i8.net/dfh.ico'/>");
function onLoadSetDiv()
{
	  
    var getwidth;
    if (window.screen.width > 1024)
    {
        getwidth = (window.screen.width - 1024)/2;
        document.body.style.marginLeft=getwidth;        
    }
}
function CheckUserLogin(obj)
{
	if(obj.length == 0)
	{
		alert("对不起，您还没有登陆不能进行查询！");
		parent.location.href("PassportLogin.aspx");
	}
	else
	{
		parent.location.href("SereachSufficient.aspx");
	}
}
