function popWin(URL,WD,HG,ADJUST)
{
        if(WD == null)
        {
            WD = 400;
        }
        if(HG == null)
        {
            HG = 300;
        }
        if(ADJUST == null)
        {
            ADJUST = "yes";
        }
        
        var strOptions = "width=" + WD + ",height=" + HG + ",toolbar=no,menubar=no,status=no,resize=" + ADJUST + ",resizable=" + ADJUST + ",directories=no,scrollbars=" + ADJUST;
        window.open(URL, "popUp", strOptions);
}

function toggle(id)
{
    var el = document.getElementById(id);
    if (el != null)
    {
        if (el.style.display == "none")
        {
            el.style.display="inline";
        }
        else
        {
            el.style.display = "none";
        }
    }
}

function createHttpRequest() {
    var xmlHttp;
    try {  // Firefox, Opera 8.0+, Safari
        xmlHttp=new XMLHttpRequest();
    } catch (e) {  // Internet Explorer
        try {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try {
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {
                return null; // Can't sent AJAX request
            }
        }
    }
    
    return xmlHttp;
}