function openAWindow( pageToLoad, winName, width, height, center) {
	/* Opens a new window on the users desktop.

	   Arguments:
	   pageToLoad - The URL of a page to load in the browser window.
	                This can be a relative URL or fully qualified.
	   winName - 	Name of the new window.  NO SPACES!
	   width - 	The horizontal size of the new window.
     		   height - 	The vertical size of the new window.
	   center -     toggle centering on 4.0 browsers.
                              1=centered window 0=no centering

	   Values in the "args" section below can all be toggled in the
	   same fashion as the center toggle.  Just modify the appropriate
	   value in the args section to be either 0 or 1.

	   A call to this function might look like this:
	   <a href="javascript:openAWindow('ice.html','ice',375,250,1)">Ice</a>

	 
	*/
				 
	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=0," 
	    + "menubar=0,"
	    + "resizable=0,"
	    + "scrollbars=0,"
	    + "status=0," 
	    + "titlebar=0,"
	    + "toolbar=0,"
	    + "hotkeys=0,"
	    + "screenx=" + xposition + ","  //NN Only
	    + "screeny=" + yposition + ","  //NN Only
	    + "left=" + xposition + ","     //IE Only
	    + "top=" + yposition;           //IE Only

	window.open( pageToLoad,winName,args );
}

function IsNumeric(sText){
	var ValidChars = "0123456789.";
	var IsNumber=true;
	var Char;

	for (i = 0; i < sText.length && IsNumber == true; i++) 
	{ 
		Char = sText.charAt(i); 
		if (ValidChars.indexOf(Char) == -1) 
		{
			IsNumber = false;
		}
	}
	return IsNumber;
}
