﻿function openWindow(strURL, wWidth, wHeight) 
{
    if (wWidth == null) wWidth = (screen.width * 80) / 100;
    if (wHeight == null) wHeight = (screen.height * 80) / 100;

    //SPECIFY CENTER
    leftVal = (screen.width - wWidth) / 2;
    topVal = (screen.height - wHeight) / 2;
    
    //OPEN NEW WINDOW
    newWindow = window.open(strURL, 'NewWindow', 'width=' + wWidth + ',height=' + wHeight + ',left=' + leftVal + ',top=' + topVal + ',scrollbars=yes');
}
function openDialog(strURL, wWidth, wHeight) 
    {
        if (wWidth == null) wWidth = (screen.width * 75) / 100;
        if (wHeight == null) wHeight = (screen.height * 75) / 100;
        window.showModalDialog(strURL, null,'dialogWidth: ' + wWidth + 'px;dialogHeight: ' + wHeight + 'px;status: no;')
            
     }

var intStatus = 1
function ChangePicHover(ElementID)
    {
        if (intStatus==1)
            {
                intStatus=0;
                setTimeout('document.getElementById(\'' + ElementID + '\').click()', 200)
            }
    }
    
function ChangePicOut()
    {
        intStatus=1
    }