function OpenPopUpWindow(file,w,h) {
if (!window.focus) return;
var par;
par = "width=" + w + ",height=" + h +","
par = par + "dependent=no,scrollbars=yes,resizable=1,location=0"
par = par + "menubar=no,toolbar=no,left=o,top=0"
var PopUpWin = window.open(file,"popwin",par)
PopUpWin.focus();
}
//==============================================================================
//==============================================================================
function checkAgree(Form1) {
 if (form1.agree.checked == false) {
 alert ('You must agree to our Terms and Conditions, Please check the box to continue.');
 return false;
 } else {
 return true;
 }}
//==============================================================================
//==============================================================================
function OpenPopUpWindowHelp(file,w,h) {
if (!window.focus) return;
var par;
par = "width=" + w + ",height=" + h +","
par = par + "dependent=no,scrollbars=yes,resizable=0,location=0"
par = par + "menubar=no,toolbar=no,left=300,top=300"
var PopUpWin = window.open(file,"popwin",par)
PopUpWin.focus();
}
//==============================================================================
//==============================================================================
function OffMsg(whichstatus)
{	var MsgPlus='';
    CloseTip = "Close";
    Msg1 = "<font color=black><b>This mobile number is for the authorized person, the download link for the SG device track will send to this mobile number.</b></font>";
    Msg2 = "<font color=black><b>Mobile Serial No. to be Tracked.</b><br><br>you can get your mobile serial number by pressing on your mobile: *#06#<br>Mobile Serial number must be numbers only; If your mobile serial number comes with any character other than the numbers, please ignore the characters and enter only the numbers.</b></font>";
    Msg3 = "<font color=black><b>Mobile Phone No. to be Tracked.</b><br><br>Mobile phone number must be in an international format (e.g. Qatar mobiles: +974XXXXXX with no spaces).</b></font>";
    Msg4 = "<font color=black><b>Your mailing address for Device Delivery.</b></font>";
   
    if (whichstatus == 1) {MsgPlus = Msg1};
    if (whichstatus == 2) {MsgPlus = Msg2};
    if (whichstatus == 3) {MsgPlus = Msg3};
    if (whichstatus == 4) {MsgPlus = Msg4};
   
    //divAlert(null,MsgPlus,'Close','closeAlert()',null,null,true,true);
 divAlert(null,MsgPlus,null,null,null,null,true,true);
}
//==============================================================================
//==============================================================================
function ShowDiv(DivName)
{document.getElementById(DivName).style.visibility="visible"}

function HideDiv(DivName) 
{document.getElementById(DivName).style.visibility="hidden"}
//==============================================================================
//==============================================================================



