function newWin(page, width, height){
	var left = (screen.width - width) / 2;
	var top = (screen.height - height - 60) / 2;
	window.open(page,'newwin','status=yes,width='+width+',height='+height+',left='+left+',top='+top);
}

function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
	 {
	 blnResult = false;
	 }
      }
	  //if(strString.charAt(0)=='-') return true;
   return blnResult;
}
function isFutureDate( str1 ){
	// Parse the string in DD/MM/YYYY format
	re = /(\d{1,2})\/(\d{1,2})\/(\d{4})/
	var arr = re.exec( str1 );
	var dt1 = new Date( parseInt(arr[3]), parseInt(arr[2], 10) - 1, parseInt(arr[1], 10) );

	return dt1 > new Date();
}