function winopen(url,winid,width,height){			
    var winTop = window.top.screenTop+10;
    var winLeft = window.top.screenLeft+50;
    var winret = window.open('',winid,
            "status=yes, scrollbars=yes, resizable=yes,width=" + width + ",height=" + height+",top=" + winTop+",left=" + winLeft);
    winret.document.write("加载中……");
    winret.focus();
    winret.location.href = url;
    return winret;  	
}

function winopen_help(url,width,height){	
	if(width == undefined) width = 650;
	if(height == undefined) height = 650;
    var winTop = window.top.screenTop+30;
    var winLeft = screen.width - width;
    if(winLeft<0) winLeft = 0;
    var winret = window.open('',"helpwin",
            "status=no, scrollbars=yes, resizable=yes,width=" + width + ",height=" + height + ",top=" + winTop+",left=" + winLeft);
    winret.document.write("加载中……");
    winret.focus();
    winret.location.href = url;
    return winret;  	
}

function winopen_direct(url,winid,width,height){			
    var winTop = (screen.height - height) / 4;
    var winLeft = (screen.width - width) / 2;
    var winret = window.open(url,winid,
            "status=yes, scrollbars=yes, resizable=yes,width=" + width + ",height=" + height+",top=" + winTop+",left=" + winLeft);
    winret.focus();
    return winret;  	
}

function winopen_nostatus(url,winid,width,height){			
    var winTop = window.top.screenTop+10;
    var winLeft = window.top.screenLeft+50;
    var winret = window.open('',winid,
            "status=no, scrollbars=yes, resizable=yes,width=" + width + ",height=" + height+",top=" + winTop+",left=" + winLeft);
    winret.document.write("加载中……");
    winret.focus();
    winret.location.href = url;
    return winret;  	
}

