document.write('<form name="gosystem"  id="gosystem" method="post" target="_bank">');
document.write('<input type="hidden"  id="LoginID" name="LoginID">');
document.write('<input type="hidden"  id="LoginKey" name="LoginKey" value="****">');

document.write('</form>')

function goifrm(url){

    try{
        var m_objfrm=document.getElementById("gosystem");
	    m_objfrm.action=url;    	
	   var objLoginID=document.getElementById("LoginID");
	    objLoginID.value=m_LoginID; 
	    var  objLoginKey=document.getElementById("LoginKey");
	    objLoginKey.value=m_KeyID;	
	    var frmName ="DoLogin"+Math.floor(Math.random()*9999+1);
	    var owin=window.open("",frmName,"resizable=1,scrollbars=1,status=0,menubar=0,top="+screen.height*0.1+",left="+screen.width*0.1+"")
	    //装载页面进度过程，
        var newloadingprocess=""
          newloadingprocess+="<table height=80% width=100% style='cursor:progress'>"
          newloadingprocess+="<tr><td align=center valign=bottom height=50%><font color='#000000' style='font-size:11pt'><b>正在加载页面,请稍等......</b></font></td></tr>"
          newloadingprocess+="<tr><td id=ProcessTd align=center valign=top height=50%>&nbsp;</td></tr></table>"
         owin.document.write(newloadingprocess);
          if (document.all)
          {
            owin.moveTo(0,0)
            owin.resizeTo(screen.width,screen.height)
           } 
	    m_objfrm.target =frmName;
	    m_objfrm.submit();	
	    top.window.opener=null;
	    top.window.close();  
	   // window.close();  
	}catch(e){	
	   alert('系统提示:窗口被拦截! 请按Ctrl键完成该操作.');	  
	//   alert(e.message);
	}
}

function gofrm(url,username){
    try{
        var m_objfrm=document.getElementById("gosystem");
	    m_objfrm.action=url;    	
	     var  objLoginKey=document.getElementById("LoginKey");
	    objLoginKey.value=m_KeyID;	
	   var objLoginID=document.getElementById("LoginID");
	   if(username==null || username==""){
	        objLoginID.value=m_LoginID; 
	    }else{
	        objLoginID.value=username; 
	         objLoginKey.value=mLoginKey; //物业系统
	    }
	   
	    var frmName ="DoLogin"+Math.floor(Math.random()*9999+1);
	    var owin=window.open("",frmName,"resizable=1,scrollbars=1,status=0,menubar=0,top="+screen.height*0.1+",left="+screen.width*0.1+",width=800,height=600")
	    //装载页面进度过程，
        var newloadingprocess=""
          newloadingprocess+="<table height=80% width=100% style='cursor:progress'>"
          newloadingprocess+="<tr><td align=center valign=bottom height=50%><font color='#000000' style='font-size:11pt'><b>正在跳转,请稍等......</b></font></td></tr>"
          newloadingprocess+="<tr><td id=ProcessTd align=center valign=top height=50%>&nbsp;</td></tr></table>"
         owin.document.write(newloadingprocess);
          if (document.all)
          {
            owin.moveTo(0,0)
            owin.resizeTo(screen.width,screen.height)
           } 
	    m_objfrm.target =frmName;
	    m_objfrm.submit();	
	   // window.close();  
	}catch(e){	
	   alert('系统提示:窗口被拦截! 请按Ctrl键完成该操作.');	  
	}
}

function gosysfrm(url,otime){
    try{
        var m_objfrm=document.getElementById("gosystem");
	    m_objfrm.action=url;    	
	   var objLoginID=document.getElementById("LoginID");
	    objLoginID.value=m_LoginID; 
	    var  objLoginKey=document.getElementById("LoginKey");
	    objLoginKey.value=m_KeyID;	
	    var frmName ="gosysfrm"+Math.floor(Math.random()*9999+1);
	    var owin=window.open("",frmName,"resizable=0,scrollbars=0,status=0,menubar=0,top=10000000,left=100000,width=0,height=0")	   
	  //  var owin=window.open("",frmName,"resizable=1,scrollbars=1,status=0,menubar=0,top=20,left=100,width=600,height=250")	   
	    m_objfrm.target =frmName;
	    m_objfrm.submit();	  
	    if(otime==null){
	        otime=2000
	    }
	   // window.setTimeout("owin.close();",2000);     
	}catch(e){	
	   alert('系统提示:窗口被拦截! 请按Ctrl键完成该操作.');
	}
}

