
			function IsNumeric(strString) 
			{ 
				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; 
					} 
				} 
				return blnResult; 
			} 
			function roundNumber(p_vNumber) {
				var numberField = p_vNumber; // Field where the number appears
				var rlength = 2; // The number of decimal places to round to
				var vNum=  String(Math.round(p_vNumber*Math.pow(10,rlength))/Math.pow(10,rlength));
				var vPointPos=vNum.indexOf(".");
				if (vPointPos>0 &&  (vPointPos=vNum.length-1))
				{
					vNum = vNum +"0";
				}
				return vNum;
			}
			function ValidateDelete()
			{
					if (!confirm('Are you sure you want to delete this item'))
					{
						window.event.returnValue=false;
					}
			}


				function ValidateInput(p_vControl,p_vValidChars,p_vEvent)
				{
					
					var key;
					var keychar;
					
					key = p_vEvent.keyCode;
					keychar = String.fromCharCode(key);

					// control keys
					if ((key==null) || (key==0) || (key==8) ||
						(key==9) || (key==13) || (key==27) )
					{
						return true;
					}	
					// numbers
					else if (p_vValidChars.indexOf(keychar) > -1)
					{
						return true;
					}	
					else
					{
						return false;
					}
				}
