﻿// JScript 文件
function    MM_showHideLayers(src,flag){
       if(src == null) return;
       if(flag==0){
            document.getElementById(src).style.display="";
       }else{   
            document.getElementById(src).style.display="none";
       }
   }
   //document.getElementById("<%=txtCurrUrl.ClientID %>").value = window.location.href;
    if (window.navigator.userAgent.indexOf("MSIE")>=1)
    {document.onreadystatechange = subSomething;
    }else{window.Onload = ShowLoad();}    
    function subSomething(){if(document.readyState == "complete"){ShowLoad();}} 
    
    function ShowLoad(){
        if(document.getElementById("divLogin")!= null) document.getElementById("divLogin").style.display = "block";
        if(document.getElementById("divNoLogin")!= null) document.getElementById("divNoLogin").style.display = "none";
    }  
    function LoginOutUser(){
        var form = document.createElement('form');
            form.id="the_form";        
            form.method='post';
            form.name="the_form_";
            form.action="http://user.yaolan.com/ClientLogonOut.aspx";
            
            var inputBackUrl=document.createElement("input");
            inputBackUrl.id="back_url";
            inputBackUrl.name="back_url";
            inputBackUrl.type="hidden";
            //inputBackUrl.value = window.location.href;
            inputBackUrl.value = "http://space.yaolan.com/SkipPage.aspx?back_url=" +encodeURIComponent(window.location.href);            
         
            form.appendChild(inputBackUrl);       
            document.body.appendChild(form);       
            form.submit();
            document.body.removeChild(form);
    }

