function ecrLogin(){
	var httpobj = new INHTTPRequest("/cgi-bin/fccgi.exe?w3exec=g.w3.login");
	
	httpobj.method="GET";
	httpobj.setParam("sublogin","remote");
	httpobj.setParam("w3usr",document.getElementById("w3usr").value);
	httpobj.setParam("w3pwd",document.getElementById("w3pwd").value);
	httpobj.onload=function(result){
		if (result=="OK"){
			setTimeout("document.location='/cgi-bin/fccgi.exe?w3exec=ecr.web.page&page.name=g.ecr.home.d3p'");
		}else{
			setTimeout("alert('"+result+"')");
		}
	}
    httpobj.onerror=function(errtxt){                                           
        alert(errtxt);                                                          
    }                                                                           
    httpobj.go(); 
    return false;                                                              
} 

function onWait(){
   var wait = new INWaitPanel();
   wait.start("Please wait...");
}                                                                              