function getUserAll(input){
	var url='/etInterface/getAllUser.jsp';
	var paras='';
	new Ajax.Request(url,{method:'post',parameters:paras,asynchronous:false,onSuccess:function(request){
	 		resultAll=request.responseText;
	 		//alert(resultAll);
	},onFailure:function (){}});
	return resultAll;
}

function getAll(){
	var allresult=getUserAll('');
	var allreults=allresult.split("|");
	if(allreults.length>0) return allreults;
}

function openTzzxImpl(webCall) {
    var url=webCall+"client/et_wz_index.jsp";
    var re= getAll();
    //if yk
    if(re == 'null'){
       url += "?formenu=tzzx";
       url += "&from=webcallwz";
    }else{
       url += "?userId=" + re[0];
       url += "&realName=" + encodeURIComponent(re[1]);
       url += "&account=" + re[6];
       url += "&formenu=tzzx";
       url += "&branchId=" + re[8];
       url += "&from=webcallwz";
       url += "&userClass=" + re[4];
       url += "&userType=" + re[5];
       url += "&branchName=" + encodeURIComponent(re[7]);
    }
    window.open(url, 'newwindow', 'height=549,width=681,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,status=yes,top=100,left=200');
}
	
function openYwzxImpl(webCall) {
	var url=webCall+"client/et_wz_index.jsp";
    var re= getAll();
    //if yk
    if(re == 'null'){
       url += "?formenu=ywzx";
       url += "&from=webcallwz";
    }else{
       url += "?userId=" + re[0];
       url += "&realName=" + encodeURIComponent(re[1]);
       url += "&account=" + re[6];
       url += "&formenu=ywzx";
       url += "&branchId=" + re[8];
       url += "&from=webcallwz";
       url += "&userClass=" + re[4];
       url += "&userType=" + re[5];
       url += "&branchName=" + encodeURIComponent(re[7]);
    }
    window.open(url, 'newwindow', 'height=549,width=681,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,status=yes,top=100,left=200');
}
	
function openZyfwImpl(webCall) {
	var url=webCall+"client/et_wz_index.jsp";
    var re= getAll();
    //if yk
    if(re == 'null'){
       url += "?formenu=khjl";
       url += "&from=webcallwz";
    }else{
       url += "?userId=" + re[0];
       url += "&realName=" + encodeURIComponent(re[1]);
       url += "&account=" + re[6];
       url += "&formenu=khjl";
       url += "&branchId=" + re[8];
       url += "&from=webcallwz";
       url += "&userClass=" + re[4];
       url += "&userType=" + re[5];
       url += "&branchName=" + encodeURIComponent(re[7]);
    }
    window.open(url, 'newwindow', 'height=549,width=681,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,status=yes,top=100,left=200');
}
	
function openGczdImpl(webCall) {
	var url=webCall+"client/et_wz_index.jsp";
    var re= getAll();
    //if yk
    if(re == 'null'){
       url += "?formenu=etjqr";
       url += "&from=webcallwz";
    }else{
       url += "?userId=" + re[0];
       url += "&realName=" + encodeURIComponent(re[1]);
       url += "&account=" + re[6];
       url += "&formenu=etjqr";
       url += "&branchId=" + re[8];
       url += "&from=webcallwz";
       url += "&userClass=" + re[4];
       url += "&userType=" + re[5];
       url += "&branchName=" + encodeURIComponent(re[7]);
    }
    window.open(url, 'newwindow', 'height=549,width=681,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,status=yes,top=100,left=200');
}