        function FormElement(sFormName, sEleName)
        {
       	    return eval("document." + sFormName + "." + sEleName);
        }
        
        function PopUpCenterWindow(sUrl, iWidth, iHeight, sScroll)
        {
	        var sWindowString;
	        var dNew = new Date();
	        var sRandName = dNew.getUTCMilliseconds();
	        sRandName = sRandName.toString();

	        var Xpos= (screen.availWidth - iWidth)/2;
	        var Ypos= (screen.availHeight - iHeight)/2-10;

	        if (sScroll == "")sScroll = "no";
	        
	        sWindowString = "width=" + iWidth + ",height=" + iHeight + ",screenX=" + Xpos + ",screenY="  + Ypos + ",toolbar=0,scrollbars=" + sScroll + ",location=0,directories=0,status=0,menubar=0,resizable=yes";
	        var newwindow=window.open(sUrl, sRandName, sWindowString);
	        newwindow.moveTo(Xpos, Ypos);	        
        }

        function ShowHiddenDiv(hiddenDivId)
        {
            popup = document.getElementById(hiddenDivId);
            if (popup.style.display == "none")
            {
                popup.style.display = "block";
            }
            else
            {
                popup.style.display = "none";
            }
        }