62,271
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
<!--
// -- Login Functions
var hWnd;
function Login(szUID) {
try {
if (hWnd == null || hWnd.closed) {
hWnd = OpenWin(szUID);
hWnd.focus();
}
else {
window.alert('你已经登录了管理者CRM(客户资源管理系统)!');
hWnd.focus();
}
}
catch (e) {
window.alert("CRM不能正常登录,请检查是否禁用了弹出窗口\n\n错误:" + e);
}
}
function OpenWin(szUID) {
var width = 800;
var height = 600;
var scr_width = screen.width;
var scr_height = screen.height;
var top = 0;
var left = 0;
if (scr_width == 800) { //800*600
top = 0;
left = 0;
width = 785;
height = 570;
}
else if (scr_height > 600) { //1024*768
top = 0; //(scr_height-height)/2;
left = 0; //(scr_width-width)/2;
width = scr_width - 10;
height = scr_height - 60;
}
var win_param = "top=" + top + ",left=" + left + ",toolbar=no,location=no,scrollbars=no,menubar=no,status=yes,resizable=yes,";
win_param = win_param + "width=" + width + ",height=" + height;
var hWnd = window.open("Window.aspx?UID=" + szUID, "CRM_NET", win_param);
hWnd.resizeTo(screen.availWidth, screen.availHeight);
return hWnd;
}
//-->
</script>