
function PopUp(PopName,PopParam,PopWidth,PopHeight,PopFormat)
{
    var Nav, IE;
    var LookWindow;
    var PopLeft;
    var PopTop;

    //identify browser
    if (parseInt(navigator.appVersion) >= 4) 
    {
	    if (navigator.appName == "Netscape") 
	    {
		    Nav = true;
	    } 
	    else 
	    {
		    IE = true;
	    }
    }
	    
    PopLeft = (screen.availWidth - PopWidth) / 2
    PopTop = (screen.availHeight - PopHeight) / 2
	
    if (IE)
    {
	    LookWindow = window.open(PopName+"?Param="+PopParam,"",PopFormat+",height="+PopHeight+",width="+PopWidth+",left="+PopLeft+",top="+PopTop);
    }
    else
    {
	    LookWindow = window.open(PopName+"?Param="+PopParam,"",PopFormat+",height="+PopHeight+",width="+PopWidth+",screenx="+PopLeft+",screeny="+PopTop);
    }
}

function getScreenWidth()
{
    var uAgent = navigator.userAgent;
    if (uAgent.indexOf("MSIE") > -1) 
    {
        if (uAgent.indexOf("MSIE 6.0") > -1)
        {
//            return document.body.clientWidth;
            return document.documentElement.clientWidth;
        }
        else
        {
            if (uAgent.indexOf("MSIE 7.0") > -1)
            {
                return document.body.clientWidth;
            }
        }
    }
    else
    {
        return window.innerWidth;
    }
}


function getScreenHeight()
{
    var uAgent = navigator.userAgent;
    if (uAgent.indexOf("MSIE") > -1) 
    {
        if (uAgent.indexOf("MSIE 6.0") > -1)
        {
//            return document.body.clientHeight;
            return document.documentElement.clientHeight;        }
        else
        {
            if (uAgent.indexOf("MSIE 7.0") > -1)
            {
                return document.body.clientHeight;
            }
        }
    }
    else
    {
        return window.innerHeight;
    }
}

function stripHTML(oldString) 
{

  return oldString.replace(/<&#91;^>&#93;*>/g, "");
  
}