﻿//////////////////////////////Error & Alert Popups///////////////////////////////////////
var intTimeErr = 3000;
var intTimeMsg = 1500;


function showErr(msg) 
{
    document.getElementById("iErr").src = "JSFunctions/Err.aspx?err=" + msg;
    //document.getElementById("iErr").style.visibility = 'visible';
    

}
function hideErr() 
{
    document.getElementById("iErr").style.visibility = 'hidden';
}
function showMsg(msg) 
{
    document.getElementById("iMsg").src = "JSFunctions/Msg.aspx?msg=" + msg;    
}
function hideMsg() 
{
    document.getElementById("iMsg").style.visibility = 'hidden';
}

function killQueryString() 
{
    var url = document.location.href;
    if (url.indexOf("?") != -1) {
        url = url.substring(0, url.indexOf("?"));
        document.location.href = url;
    }
}

function popupWin(win) 
{
     window.open (win,"MPWin","left=100, top=100, width=700, height=500,status=1,toolbar=0, menubar=0, scrollbars=1, location=0");
}

var helpon = 0;
function helpme() {
    if (helpon == 0) {
        iHelp1 = document.getElementById("iHelp");
        iHelp1.style.visibility = 'visible';
        //alert(document.getElementById["iHelp"].window.Document.getElementById("help").innerHTML);
        //iHelp.src = "JSFunctions/Msg.asp";
        //window.frames["iHelp"].document.getElementById("help").innerHTML = "b";
        helpon = 1;
    } else {
        document.getElementById("iHelp").style.visibility = 'hidden';
        helpon = 0;
    }
}


