function changeMainFrameBackgroundColor()
{
    if(document.getElementById)
        document.getElementById('mainBody').style.backgroundColor = "#dfe6ec";
    else if(document.all)
        document.all['mainBody'].style.backgroundColor = "#dfe6ec";
}

function mouseOverButton(boolState)
{

    tmpImage = new Image();
    if (boolState == 0)     // Off
        tmpImage.src = "Images/Button.jpg";
    else
        tmpImage.src = "Images/ButtonOver.jpg";
    if (document.images)
    {
        if (document.getElementById('buttonImage'))
        {   document.getElementById('buttonImage').src = tmpImage.src;  }
        else if (document.buttonImage)
        {   document.buttonImage.src = tmpImage.src;    }
    }
}

function mouseOverContactButton(boolState)
{
    tmpImage = new Image();
    if (boolState == 0)     // Off
        tmpImage.src = "Images/ContactButton.jpg";
    else
        tmpImage.src = "Images/ContactButtonOn.jpg";
    if (document.images)
    {
        if (document.getElementById('ctl00_mainContentPlaceHolder_btnSubmit'))
        {   document.getElementById('ctl00_mainContentPlaceHolder_btnSubmit').src = tmpImage.src;  }
        else if (document.buttonImage)
        {   document.buttonImage.src = tmpImage.src;    }
    }
}

function PopupPic(url, w, h)
{ 
    var winleft = (screen.width - w) / 2;
    var wintop = (screen.height - h) / 2;
    winprops = 'height=' + h + ', width=' + w + ', top=' + wintop + ', left=' + winleft + ', resizable=1, status=0, toolbar=0, location=0, menubar=0';
    //'status=0, toolbar=0, location=0, menubar=0, resizable=1, width=700, height=650, scrollbars=0. left=100, top=50'
    window.open(url, "popupWindow", winprops);
} 