var bLogin = false; var bOpenPop = true; var bHaveOCX = false; var bLoadComplete = true; var bfullMode = false; var info_width = 0; var info_height = 0; var info_left = 0; var info_right = 0; var openMode = 0; function openGuest() { openMode = 0; infoLayer.innerHTML = ""; openInfoWindow(); return; } function openMember() { openMode = 1; infoLayer.innerHTML = ""; openInfoWindow(); return; } function openInfoWindow() { infoLayer.style.border = "2px solid #e4e4e4"; infoLayer.style.backgroundColor = "#000000"; infoLayer.style.color = "#FFFFFF"; infoLayer.style.padding = 5; startOpenWindow(); } function startOpenWindow() { if(info_width >= 580 && info_height >= 300) { typeInfo(":: System checks to operate DVR station properly."); typeInfo(""); setTimeout("checkXPSP2()", 50); } else { info_width += 58; info_height += 30; infoLayer.style.width = info_width; infoLayer.style.height = info_height; setTimeout("startOpenWindow();", 100); } } function checkXPSP2() { var xp_sp2 = browserVersion(); typeInfo(":: Installation of XP Service Pack 2 : " + xp_sp2); setTimeout("checkScreen()", 50); } function checkScreen() { var width = window.screen.width; var height = window.screen.height; typeInfo(":: Screen Resolution size: " + width + " x " + height); setTimeout("checkOcx()", 50); } function checkOcx() { hiddenLayer.innerHTML = ""; } function catchError(readyState) { bLoadComplete = false; } function catchReadyState(readyState) { if(!bLoadComplete) { var xp_sp2 = browserVersion(); if(xp_sp2) { typeInfo(""); typeInfo("1. A small icon will appear on the upper left corner of the internet explorer verifying the presence of the WEB CMS. If none present, then an active X security warning dialog will open. Please allow this program to access DVR STATION"); typeInfo(""); typeInfo(""); typeInfo("2. This page will be automatically refreshed."); typeInfo(""); typeInfo("3. Go to Log in page: Member or Guest."); typeInfo(""); typeInfo("4. Click on INTATLL to download."); typeInfo(""); typeInfo(""); } else { typeInfo(""); typeInfo("1. A small icon will appear on the upper left corner of the internet explorer verifying the presence of the WEB CMS. If none present, then an active X security warning dialog will open. Please allow this program to access DVR STATION"); typeInfo(""); typeInfo(""); typeInfo("2. This page will be automatically refreshed."); typeInfo(""); typeInfo("3. Go to Log in page: Member or Guest."); typeInfo(""); typeInfo("4. Click on INTATLL to download."); typeInfo(""); typeInfo(""); typeInfo("::Do you wish to install and run CMS ?::"); typeInfo(""); } } else { typeInfo(":: OCX has been installed completely"); setTimeout("openPopup()", 50); } } function openPopup() { var width = window.screen.width; var height = window.screen.height; if(width < 1024 || height < 768) { typeInfo(""); typeInfo(":: The Screen Resolution is not enough for CMS program; you might have Scroll down on right side. "); typeInfo(""); typeInfo(":: Do you wish to run?"); typeInfo(""); } else if (height == 768) { typeInfo(""); typeInfo(":: It runs as [Full Screen] on 1024*768 Resolution. "); typeInfo(""); typeInfo(":: Press [Alt]+[Tab] to escape or press power button to close CMS"); typeInfo(""); typeInfo(":: Do you wish to run?"); typeInfo(""); } else { typeInfo(""); typeInfo(":: CMS pops up."); setTimeout("openPopUp_normal();",50); } } function openPopUp_scroll() { bfullMode = false; if(openMode == 0) { var dvrWin = window.open("html/main_frame_guest.php", "dvrMain", ""); } else if(openMode == 1) { var dvrWin = window.open("html/main_frame.php", "dvrMain", ""); } dvrWin.focus(); setTimeout("initInfo();",50); } function openPopUp_full() { bfullMode = true; if(openMode == 0) { var dvrWin = window.open("html/main_frame_guest.php", "dvrMain", "fullscreen=1"); } else if(openMode == 1) { var dvrWin = window.open("html/main_frame.php", "dvrMain", "fullscreen=1"); } dvrWin.focus(); setTimeout("initInfo();",50); } function isfullMode(){return bfullMode;} function openPopUp_normal() { bfullMode = false; var width=1024, height=768; var left, top; var winpos, winstyle; left = (window.screen.width-width)/2; top = (window.screen.height-height)/2; winpos = "left=" + left + ",top=" + top; winstyle = "width="+width+",height="+height+",status=no,toolbar=no,menubar=no, location=no, resizable=no,scrollbars=auto,copyhistory=no," + winpos; if(openMode == 0) { var dvrWin = window.open("html/main_frame_guest.php", "dvrMain", winstyle); } else if(openMode == 1) { var dvrWin = window.open("html/main_frame.php", "dvrMain", winstyle); } dvrWin.focus(); setTimeout("initInfo();",50); } function browserVersion() { tmp_MSIE = window.navigator.userAgent.indexOf("MSIE"); if(tmp_MSIE && window.navigator.userAgent.indexOf("SV1") > tmp_MSIE){ //This browser is Internet Explorer with SP2. return true; } else { //This browser is not Internet Explorer with SP2. return false; } } function initInfo() { bLogin = false; bOpenPop = true; bHaveOCX = false; bLoadComplete = true; info_width = 0; info_height = 0; info_left = 0; info_right = 0; infoLayer.innerHTML = ""; infoLayer.style.border = "0px"; infoLayer.style.backgroundColor = ""; infoLayer.style.padding = 0; infoLayer.style.width = 0; infoLayer.style.height = 0; } function typeInfo(data) { infoLayer.insertAdjacentHTML("beforeEnd",data +"
"); } function reTry() { initInfo(); openInfoWindow(); } function openforgot() { var ret = ""; ret += ""; ret += ""; ret += ""; ret += ""; ret += ""; ret += ""; ret += "
"; ret += ""; ret += "* You are responsible for maintaining the confidentiality of the password and account, and are fully responsible for all activities that occur under your password or account.

"; ret += "* From time to time, make sure your information is accurate and that no one has altered your data. If at any time, you become concerned about the security of your password, you should change it immediately. (Refer to Sign Up page).

"; ret += "* Your password is encoded and no one knows. We will never respond to any phone call or email message for your password. Please register your ID again and make your own station once more.
"; ret += "
"; ret += "
"; var cX = parseInt(event.clientX, 10) + parseInt(document.body.scrollLeft,10); var cY = parseInt(event.clientY, 10) + parseInt(document.body.scrollTop,10); ForgetLayer.style.left = cX-60; ForgetLayer.style.top = cY-60; ForgetLayer.innerHTML = ret; ForgetLayer.style.visibility = "visible"; } function hideForgotLayer() { ForgetLayer.style.left = 0; ForgetLayer.style.top = 0; ForgetLayer.innerHTML = ""; ForgetLayer.visibility = "hidden"; }