  function numbersonly(e)
	{
		var unicode=e.charCode? e.charCode : e.keyCode
		if (unicode!=8 )
		{ //if the key isn't the backspace key (which we should allow)
			if (unicode==46)
			{
				//if dot
			return true; //disable key press
			}
		
			if (unicode<48||unicode>57)
			{
				//if not a number
			return false; //disable key press
			}
		}
	}

function ChkEmail(frmName,strEmail)
	{
		var re;
		var FormName;
		var FldName;
		FormName=frmName;
		FldName=strEmail;
		re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/;
		var str=eval("document."+FormName+"."+FldName+".value");
		if (re.test(str) == false)
		{			
			alert("That is not a valid Email address. Please enter again.    ");
			eval("document."+FormName+"."+FldName+".focus()");
			eval("document."+FormName+"."+FldName+".select()");
			return false;
		}
	}

	function ChkPhone(frmName,fldName,display)
	{
		var FormName;
		var FldName;
		var Display;
		FormName=frmName;
		FldName=fldName;
		Display=display;
		var no;
		no=eval("document."+FormName+"."+FldName+".value");
		var find=/[a-zA-Z\*\=\_\>\<\:\@\&\%\?\$]/;
		if (no.search(find)!= -1 || no == "")
		{
			alert("That is not a valid " + Display+ ". Please enter again.");
			eval("document."+FormName+"."+FldName+".focus()");
			eval("document."+FormName+"."+FldName+".select()");
			return false;
		}
	}
	function ChkImage(form,fload)
	{
	var ext=fload.substr(fload.lastIndexOf(".")).toLowerCase();
		//if(ext!="")
		//{
			if(ext != ".gif" && ext != ".jpeg" && ext != ".png" && ext != ".jpg") 
			{
				alert("Image must be in .gif or .jpeg or .png or .jpg format");
				document.form.fload.focus();
				document.form.fload.select();
				return false;
			}	
			else
			{
				return true ;
			}
		//}
		
	}
	function ChkClip(form,fload)
	{
	var ext=fload.substr(fload.lastIndexOf(".")).toLowerCase();
		if(ext!="")
		{
			alert(ext);
			if(ext !=".flv" ) 
			{
				alert("Movie Clip must be in .flv  format");
				return false;
			}	
			else
			{
				return true ;
			}
		}
		
	}
