<!-- 
// Global Include File
// Validation Routines
// And other funtionality

function Trim(str)
{
    var strText = String(str);
    
    // this will get rid of leading spaces 
    while (strText.substring(0,1) == ' ') 
        strText = strText.substring(1, strText.length);
	
    // this will get rid of trailing spaces 
    while (strText.substring(strText.length-1,strText.length) == ' ')
        strText = strText.substring(0, strText.length-1);
	
   
	return strText;
}

function highlightButton(sButtonName,sState)
{
	if (sState == "on")
		document.all[sButtonName].style.background = "#64E045";
	else
		document.all[sButtonName].style.background = "#94A4A4";
}


function openAWindow( pageToLoad, winName, width, height, center, scroll) {
                          
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
        xposition = (screen.width - width) / 2;
        yposition = (screen.height - height) / 2;
    }
    args = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=1," 
    + "menubar=1,"
    + "resizable=1,"
    + "scrollbars=1,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=1,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

    window.open( pageToLoad,winName,args );
}

//-->