function AcceptOnlyCapital(textboxid)
{
    textbox = document.getElementById(textboxid);
    textbox.value = textbox.value.toUpperCase();
}
function AlphaNumeric()
{
    var key = window.event.keyCode;
    if ((key > 47 && key < 58)||(key > 64 && key < 91) || (key > 96 && key < 123))
        return;
    else 
        window.event.returnValue = null;
}
function PageClose()
{
    window.opener=null;
    window.open('','_top');
    window.top.close();
}
function ParentPageCloseNOpenNew(urlValId)
{
    urlVal = document.getElementById(urlValId);
    window.open(urlVal.value);
    window.opener=null;
    window.open('','_top');
    window.top.close();
}
function RemoveHistory()
{
    window.history.forward(-1);
}
 function HideShowDiv(imgUpId,imgDownId,panelId)
{
    UpObj = document.getElementById(imgUpId);
    DownObj = document.getElementById(imgDownId);
    PanelObj  = document.getElementById(panelId);
    if(PanelObj.style.display == "none")
    {
        DownObj.style.display = "none";
        UpObj.style.display = "Inline";
        PanelObj.style.display = "Inline";
    }
    else
    {
        DownObj.style.display = "Inline";
        UpObj.style.display = "None";
        PanelObj.style.display = "None";
    }
}
