﻿function OpenWindow(URL)
{
	intWidth	= 440
	intHeight	= 465
	
	intLeft		= (screen.width/2)-(intWidth/2);
	intTop		= (screen.height/2)-(intHeight/2);
	
	window.open(URL, 'OpenWindow', 'width=' + intWidth + ', height=' + intHeight + ', left=' + intLeft + ', top=' + intTop + ', toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=yes, copyhistory=no, resizable=no');
}

function resizeWindow(intHeight, intWidth)
{
	window.focus();
	window.resizeTo(intWidth, intHeight);
	window.moveTo((screen.availWidth/2)-((intWidth)/2),(screen.availHeight/2)-((intHeight)/2))
}

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;
}

