
<!--

function keyCheck(eventObj, obj)
{
	var keyCode

	// Check For Browser Type
	if (document.all){ 
		keyCode=eventObj.keyCode
	}
	else{
		keyCode=eventObj.which
	}

	var str=obj.value

	if(keyCode==45){ 
		if (str.indexOf(".")>0){
			return false
		}
	}

	if(keyCode==43){ 
		if (str.indexOf(".")>0){
			return false
		}
	}

	if(keyCode==32){ 
		if (str.indexOf(".")>0){
			return false
		}
	}


	if((keyCode<48 || keyCode >58)   &&   (keyCode != 45)   &&   (keyCode != 43)   &&   (keyCode != 32)){ // Allow only integers and decimal points
		//alert("It accepts only 'numbers',  '+',  '-' and  'space'.")
		return false
	}
	return true
}


function chk(){

function isNumber(data)
{
	var numstr="0123456789";
	var thischar;
	var counter=0;
	for ( var i=0; i < data.length; i++ ) 
		{
		thischar = data.substring(i,i+1);
		if ( numstr.indexOf(thischar) != -1 ) 
			counter++;
		} // end for loop
	if ( counter == data.length )
		return true;
	else 
		return false;

}

function isEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) != -1)
        return true;
    else
        return false;
}


if(document.frm.fname.value == "")    {
	
	alert("Please Enter Name.")
	document.frm.fname.focus();
		return false;
	}

	

if(document.frm.REPLYTO.value == ""){
	
	alert("Please enter your email address.")
	document.frm.REPLYTO.focus();
		return false;
	}
	if (document.frm.REPLYTO.value != "")	{
if(isEmail(document.frm.REPLYTO.value)==false){
	document.frm.REPLYTO.focus();
	alert("Please Enter Correct Email Address. (you@yourdomain.com)");
	return false;
}}		return true;
}
//-->


