function sendMyFrnd(){
	var regExp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if(document.sendfriend.name.value=="" || document.sendfriend.name.value==null){
		document.getElementById("myname").innerHTML = "Name is required.";
		document.getElementById("myname").style.display='';
		document.sendfriend.name.focus();
		return false;
	}else if(document.sendfriend.frndname.value=="" || document.sendfriend.frndname.value==null){
		document.getElementById("myfrndname").innerHTML = "Friend's Name is required.";
		document.getElementById("myfrndname").style.display='';
		document.sendfriend.frndname.focus();
		return false;
	}else if(document.sendfriend.frndemail.value=="" || document.sendfriend.frndemail.value==null){
		document.getElementById("myfrndemail").innerHTML = "Friend's email required.";
		document.getElementById("myfrndemail").style.display='';
		document.sendfriend.frndemail.focus();
		return false;
	}else if(document.sendfriend.frndemail.value!="" && !regExp.test(document.sendfriend.frndemail.value)){
		document.getElementById("myfrndemail").innerHTML = "Invalid Email ID.";
		document.getElementById("myfrndemail").style.display='';
		document.sendfriend.frndemail.focus();
		return false;
	}else{
		formObj.submit();
	}
}
function hide_myname(){setTimeout("document.getElementById('myname').style.display ='none';",500);}
function hide_myfrndname(){setTimeout("document.getElementById('myfrndname').style.display ='none';",500);}
function hide_myfrndemail(){setTimeout("document.getElementById('myfrndemail').style.display ='none';",500);}
function changedata(me){ if(me.value==me.title){ me.value=""; }}
function changedatas(me){ if(me.value==""){	me.value=me.title; }}

function makeActionString(){
	if(document.userReviewForm.rname.value=="" || document.userReviewForm.rname.value=="Please Enter your Name"){
		document.getElementById("rsname").innerHTML = "Please Enter your Name.";
		document.getElementById("rsname").style.display='';
		document.userReviewForm.rname.focus();
		return false;
	}
	var reason="";
	reason+=validateemail(document.getElementById("remail"));
	if (reason !=""){
		document.getElementById("rsemail").innerHTML =reason;
		document.getElementById("rsemail").style.display='';
		document.userReviewForm.remail.focus();
		return false;
	}
	function trim(s){return s.replace(/^\s+|\s+$/,'');}
	function validateemail(fld){
		var error="";
		var tfld= trim(fld.value);
		var emailfilter =/^[^@]+@[^@.]+\.[^@]*\w\w$/;
		if(fld.value=="" || fld.value=="Please Enter your Email Address"){error="Please Enter Your Email Id.";}
		else if (!emailfilter.test(tfld)){error="Please Enter Your Valid Email Id.";}
		return error;
	}
	if(document.getElementById("otherComments").value=="" || document.getElementById("otherComments").value=="Your Comment must contain between 50 and 5000 characters" || (document.getElementById("otherComments").value).length<50 || (document.getElementById("otherComments").value).length>5000 ){
		document.getElementById("rscomment").innerHTML ="Your Comment must contain between 50 and 5000 characters";
		document.getElementById("rscomment").style.display='';
		document.userReviewForm.otherComments.focus();
		return false;
	}
	return true;
}
function clearname(strs){
	document.getElementById(strs).style.display ='none';	
}
