﻿function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 
function handleEnter(e,triggerElementID)
{

	//if the key pressed is "enter"
	if(e.keyCode==13)
	{	
		//if the user's browser is Mozilla's based, the first method is available since
		//their DOM implementation is more advanced than IE
		if (e.preventDefault)
		{e.preventDefault();}
		else
		{window.event.returnValue=false;}
		//Focus and click on the trigger
		document.getElementById(triggerElementID).focus(); 
		
		document.getElementById(triggerElementID).click();
	}
	else
	{
		return true;
	}
}
function IsNumeric(input){     var RE = /^-{0,1}\d*\.{0,1}\d+$/;     return (RE.test(input)); } 
