function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
function translator(pattern) {
	var open_in_same_window = 1;
	var my_location = unescape(document.location.toString());
	var new_location ='';
	var new_pattern = '';
	if (my_location.indexOf('translate_url_content?') != -1) {
		/// From google...
		var indexof_u = my_location.indexOf('trurl=');
		if (indexof_u == -1) {
			new_location = document.location;
		}
		else {
			var subs = my_location.substring(indexof_u, my_location.length);
			var ss = subs.split('&');
			new_location = ss[0].substring(2, ss[0].length);
			
			var indexof_url = new_location.indexOf('=url=');
			new_location=new_location.substring(indexof_url+5, new_location.length);
		}
	}
	else {
		new_location = document.location;
	}

	indexof_p = pattern.indexOf('|');

	var isen = '';
	if (indexof_p == -1) {
		indexof_p1 = pattern.indexOf('><');
		if (indexof_p1 == -1) {
			new_pattern = pattern;
			if (pattern == 'en') {
				isen = 1;
			}
		}
		else {
			var psplit =pattern.split('><');
			new_pattern = psplit[0]+'|'+psplit[1];
			if (psplit[1] == 'en') {
				isen = 1;
			}
		}
	}
	else {
		var psplit = pattern.split('|');
		new_pattern = psplit[0]+'|'+psplit[1];
		if (psplit[1] == 'en') {
			isen = 1;
		}
	}

	var thisurl = '';
	if (isen == 1) {
		thisurl = new_location;
	}
	else {
		//http://translate.google.com/translate?u=http%3A%2F%2Fwww.rediff.com&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools
		//thisurl = 'http://translate.google.com/translate?hl='+psplit[0]+'&ie=UTF-8&oe=UTF-8&langpair='+psplit[0]+'%7C'+psplit[1]+'&u='+ new_location+'&prev=%2Flanguage_tools';
		thisurl = 'http://74.6.146.244/babelfish/translate_url_content?trurl='+new_location+'&lp='+psplit[0]+'_'+psplit[1];
	}

	if (open_in_same_window == 1) {
		window.location.href = thisurl;
	}
	else {
		if (CanAnimate ){
			msgWindow=window.open('' ,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
			msgWindow.focus();
			msgWindow.location.href = thisurl;
		}
		else {
			msgWindow=window.open(thisurl,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
		}
	}
}
function chkdelete(){
	var frm=document.formn;
	count = frm.elements.length;
	var c=0;
	for (i=0; i < count; i++){
		if(frm.elements[i].checked == 1){
			c = 1;
		}
	}
	if(c == 0){
		alert('First select a record to delete.');
		return false;
	}
	if(c!=0){
		 return confirm('Are you sure you want to delete ....');
	}
}
function CheckAll(){
	var frm=document.formn;
	var count = frm.elements.length;
	for (i=0; i < count; i++){
		if(frm.elements[i].type=="checkbox"){
			if(frm.elements[i].checked == 0){
				frm.elements[i].checked = 1;
				document.formn.checkall.value="Uncheck All";
				document.formn.chk.checked=1;
			} else {
				frm.elements[i].checked = 0;
				document.formn.checkall.value="Check All";
				document.formn.chk.checked=0;
			}
		}
	}
	
}
function chkactivate(){
	var frm=document.formn;
	count = frm.elements.length;
	var c=0;
	for (i=0; i < count; i++){
		if(frm.elements[i].type=="checkbox"){
			if(frm.elements[i].checked == 1){
				c = 1;
			}
		}
	}
	if(c == 0){
		alert('First select a record to activate.');
		return false;
	}
}

function chkdeactivate(){
	var frm=document.formn;
	count = frm.elements.length;
	var c=0;
	for (i=0; i < count; i++){
		if(frm.elements[i].type=="checkbox"){
			if(frm.elements[i].checked == 1){
				c = 1;
			}
		}
	}
	   if(c == 0){
		alert('First select a record to unactivate.');
		return false;
	}
}
function chksendmail(){
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	count = document.formn.elements.length;
	var c=0;
	for (i=0; i < count; i++){
		if(document.formn.elements[i].checked == 1){
			c = 1;
		}
		
	}
	if(c == 0){
		alert('First, select the record');
		return false;
	}
	else{
		
		if(document.formn.subject.value == ""){
				alert('Please enter subject.');
				document.formn.subject.focus();
				return false;
		}
		if(document.formn.message.value == ""){
				alert('Please enter your message.');
				document.formn.message.focus();
				return false;
		}
	}
}	
function sendmail(f1){
	if(document.formn.subject.value == ""){
				alert('Please enter subject.');
				document.formn.subject.focus();
				return false;
	}
}

function validate_password(f1){
	if (!f1.existing.value.length) {
		   alert("Please Specify Old Password");
		   f1.existing.focus();
		   return false;
	}
	if (!f1.newp.value.length) {
		   alert("Please Specify New Password");
		   f1.newp.focus();
		   return false;
	}
	if (!f1.confirm.value.length) {
		alert("Please Confirm Password");
		f1.confirm.focus();
		return false;
	}
	if (f1.newp.value != f1.confirm.value) {
	  alert("New Password and Confirm passwords should be same");
	  f1.newp.focus();
	  return false;
   }

}
function validate_friend(f1){
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!f1.your_name.value.length) {
		   alert("You Must Enter Your Name");
		   f1.your_name.focus();
		   return false;
	}
	if (!f1.your_email.value.length) {
		   alert("You Must Enter Your Email-id");
		   f1.your_email.focus();
		   return false;
	}
	if (!re_mail.test(f1.your_email.value))	{
				alert( "Enter Your Email-id correctly" );
				f1.your_email.focus();
				return false;
	}
	if (!f1.friend_name.value.length) {
		   alert("You Must Enter Your Friend Name");
		   f1.friend_name.focus();
		   return false;
	}

	if (!f1.friend_email.value.length) {
		   alert("You Must Enter Your Friend Email-id");
		   f1.friend_email.focus();
		   return false;
	}
	if (!re_mail.test(f1.friend_email.value))	{
				alert( "Enter Your Friend  Email-id correctly" );
				f1.friend_email.focus();
				return false;
	}

}
function validate_newsletter(f1){
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!f1.Email.value.length) {
		   alert("You Must Enter Your Email-id");
		   f1.Email.focus();
		   return false;
	}
	if (!re_mail.test(f1.Email.value))	{
				alert( "Enter Your Email-id correctly" );
				f1.Email.focus();
				return false;
	}
}
function validateTourForm(f1,fname){
	
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!f1.fname.value.length) {
	   alert("You Must Enter Your Name");
	   f1.fname.focus();
	   return false;
	}
	if (!f1.email.value.length) {
	   alert("You Must Enter Your Email-id");
	   f1.email.focus();
	   return false;
	}
	if (!re_mail.test(f1.email.value))	{
			alert( "Enter Your Email-id correctly" );
			f1.email.focus();
			return false;
	}
	if(f1.telephone.value=='') {
			alert("Please enter phone number.");
			f1.telephone.focus();
	        return false;
	}
	var re2 = /^[0-9 _-]+$/;
	if (!re2.test(f1.telephone.value)) {
	   alert("Phone no. can be numeric or - only");
	   f1.telephone.focus();
	   return false;
	}
	if(fname!="enquiry"){
		if(f1.mobile.value=='') {
				alert("Please enter mobile number.");
				f1.mobile.focus();
				return false;
		}
		
		if (!re2.test(f1.mobile.value)) {
		   alert("Mobile no. can be numeric or - only");
		   f1.mobile.focus();
		   return false;
		}
	}
	if (f1.country.options[f1.country.selectedIndex].value == '') {
	   alert("Please select your country");
	   f1.country.focus();
	   return false;
	}
	if(f1.city.value=='') {
		alert("Please enter your city.");
		f1.city.focus();
		return false;
	}
	if (f1.adate.options[f1.adate.selectedIndex].value == '') {
	   alert("Please select date");
	   f1.adate.focus();
	   return false;
	}if (f1.amonth.options[f1.amonth.selectedIndex].value == '') {
	   alert("Please select month");
	   f1.amonth.focus();
	   return false;
	}
	if (f1.ayear.options[f1.ayear.selectedIndex].value == '') {
	   alert("Please select year");
	   f1.ayear.focus();
	   return false;
	}
	if (f1.ddate.options[f1.ddate.selectedIndex].value == '') {
	   alert("Please select date");
	   f1.ddate.focus();
	   return false;
	}if (f1.dmonth.options[f1.dmonth.selectedIndex].value == '') {
	   alert("Please select month");
	   f1.dmonth.focus();
	   return false;
	}
	if (f1.dyear.options[f1.dyear.selectedIndex].value == '') {
	   alert("Please select year");
	   f1.dyear.focus();
	   return false;
	}
	if (f1.adult.options[f1.adult.selectedIndex].value == '') {
	   alert("Please select no. of adults");
	   f1.adult.focus();
	   return false;
	}
	if (f1.child.options[f1.child.selectedIndex].value == '') {
	   alert("Please select no. of child");
	   f1.child.focus();
	   return false;
	}
	if(fname!="enquiry"){
		if(f1.budget.value=='') {
			alert("Please specify your budget.");
			f1.budget.focus();
			return false;
		}
	}
	if(f1.preference.value=='') {
		alert("Please enter your preference.");
		f1.preference.focus();
		return false;
	}
}
function validateHotelForm(f1,fname){
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (f1.hotelType.options[f1.hotelType.selectedIndex].value == '') {
	   alert("Please select hotel type");
	   f1.hotelType.focus();
	   return false;
	}
	if (f1.adate.options[f1.adate.selectedIndex].value == '') {
	   alert("Please select date");
	   f1.adate.focus();
	   return false;
	}if (f1.amonth.options[f1.amonth.selectedIndex].value == '') {
	   alert("Please select month");
	   f1.amonth.focus();
	   return false;
	}
	if (f1.ayear.options[f1.ayear.selectedIndex].value == '') {
	   alert("Please select year");
	   f1.ayear.focus();
	   return false;
	}
	if (f1.ddate.options[f1.ddate.selectedIndex].value == '') {
	   alert("Please select date");
	   f1.ddate.focus();
	   return false;
	}if (f1.dmonth.options[f1.dmonth.selectedIndex].value == '') {
	   alert("Please select month");
	   f1.dmonth.focus();
	   return false;
	}
	if (f1.dyear.options[f1.dyear.selectedIndex].value == '') {
	   alert("Please select year");
	   f1.dyear.focus();
	   return false;
	}
	
	if (!f1.adult.value.length) {
	   alert("You Must Enter Number of person");
	   f1.adult.focus();
	   return false;
	}
	if (!f1.fname.value.length) {
	   alert("You Must Enter Your Name");
	   f1.fname.focus();
	   return false;
	}
	if (!f1.email.value.length) {
	   alert("You Must Enter Your Email-id");
	   f1.email.focus();
	   return false;
	}
	if (!re_mail.test(f1.email.value))	{
			alert( "Enter Your Email-id correctly" );
			f1.email.focus();
			return false;
	}
	if(f1.telephone.value=='') {
			alert("Please enter phone number.");
			f1.telephone.focus();
	        return false;
	}
	var re2 = /^[0-9 _-]+$/;
	if (!re2.test(f1.telephone.value)) {
	   alert("Phone no. can be numeric or - only");
	   f1.telephone.focus();
	   return false;
	}
	if(f1.mobile.value=='') {
			alert("Please enter mobile number.");
			f1.mobile.focus();
	        return false;
	}
	
	if (!re2.test(f1.mobile.value)) {
	   alert("Mobile no. can be numeric or - only");
	   f1.mobile.focus();
	   return false;
	}
	if(f1.budget.value=='') {
			alert("Please enter your budget.");
			f1.budget.focus();
	        return false;
	}
	
}
function validatebooking(f1){	
	
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!f1.fname.value.length) {
	   alert("You Must Enter Your Name");
	   f1.fname.focus();
	   return false;
	}
	if (!f1.email.value.length) {
	   alert("You Must Enter Your Email-id");
	   f1.email.focus();
	   return false;
	}
	if (!re_mail.test(f1.email.value))	{
			alert( "Enter Your Email-id correctly" );
			f1.email.focus();
			return false;
	}
	if(f1.telephone.value=='') {
			alert("Please enter phone number.");
			f1.telephone.focus();
	        return false;
	}
	var re2 = /^[0-9 _-]+$/;
	if (!re2.test(f1.telephone.value)) {
	   alert("Phone no. can be numeric or - only");
	   f1.telephone.focus();
	   return false;
	}
	if (f1.country.options[f1.country.selectedIndex].value == '') {
	   alert("Please select your country");
	   f1.country.focus();
	   return false;
	}
	if(f1.city.value=='') {
		alert("Please enter your city.");
		f1.city.focus();
		return false;
	}
	if(f1.preference.value=='') {
		alert("Please enter your requirements.");
		f1.preference.focus();
		return false;
	}

}
function validateServices(f1,frmname){	
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!f1.fname.value.length) {
	   alert("You Must Enter Your First Name");
	   f1.fname.focus();
	   return false;
	}
	if (!f1.lname.value.length) {
	   alert("You Must Enter Your Last Name");
	   f1.lname.focus();
	   return false;
	}
	if (!f1.address.value.length) {
	   alert("You Must Enter Your Address");
	   f1.address.focus();
	   return false;
	}
	if(f1.city.value=='') {
		alert("Please enter your city.");
		f1.city.focus();
		return false;
	}
	if(f1.state.value=='') {
		alert("Please enter your state.");
		f1.state.focus();
		return false;
	}
	if(frmname!="taxi"){
		if (f1.country.options[f1.country.selectedIndex].value == '') {
		   alert("Please select your country");
		   f1.country.focus();
		   return false;
		}
	}
	if(f1.pin.value=='') {
		alert("Please enter pincode.");
		f1.pin.focus();
		return false;
	}
	if(frmname!="group" && frmname!="marriage"){
		if(f1.age.value=='') {
			alert("Please enter your age.");
			f1.age.focus();
			return false;
		}
		if (f1.sex.options[f1.sex.selectedIndex].value == '') {
		   alert("Please select your sex");
		   f1.sex.focus();
		   return false;
		}
	}
	
	if (!f1.email.value.length) {
	   alert("You Must Enter Your Email-id");
	   f1.email.focus();
	   return false;
	}
	if (!re_mail.test(f1.email.value))	{
			alert( "Enter Your Email-id correctly" );
			f1.email.focus();
			return false;
	}
	if(f1.telephone.value=='') {
			alert("Please enter phone number.");
			f1.telephone.focus();
	        return false;
	}
	var re2 = /^[0-9 _-]+$/;
	if (!re2.test(f1.telephone.value)) {
	   alert("Phone no. can be numeric or - only");
	   f1.telephone.focus();
	   return false;
	}
	if(frmname!="group"  && frmname!="marriage"){
		if(f1.from.value=='') {
			alert("Please enter starting point.");
			f1.from.focus();
			return false;
		}
		if(f1.to.value=='') {
			alert("Please enter destination.");
			f1.to.focus();
			return false;
		}
		if (f1.ddate.options[f1.ddate.selectedIndex].value == '') {
		   alert("Please select date");
		   f1.ddate.focus();
		   return false;
		}if (f1.dmonth.options[f1.dmonth.selectedIndex].value == '') {
		   alert("Please select month");
		   f1.dmonth.focus();
		   return false;
		}
		if (f1.dyear.options[f1.dyear.selectedIndex].value == '') {
		   alert("Please select year");
		   f1.dyear.focus();
		   return false;
		}
		if(frmname=="taxi"){
			if (f1.dtime.options[f1.dtime.selectedIndex].value == '') {
			   alert("Please select time");
			   f1.dtime.focus();
			   return false;
			}
		}
		if (f1.adate.options[f1.adate.selectedIndex].value == '') {
		   alert("Please select date");
		   f1.adate.focus();
		   return false;
		}if (f1.amonth.options[f1.amonth.selectedIndex].value == '') {
		   alert("Please select month");
		   f1.amonth.focus();
		   return false;
		}
		if (f1.ayear.options[f1.ayear.selectedIndex].value == '') {
		   alert("Please select year");
		   f1.ayear.focus();
		   return false;
		}
		if(frmname=="taxi"){
			if (f1.atime.options[f1.atime.selectedIndex].value == '') {
			   alert("Please select time");
			   f1.atime.focus();
			   return false;
			}
		}
	}
	if(frmname=="flight"){
		if(f1.preferredAirline.value=='') {
			alert("Please enter preferred airline.");
			f1.preferredAirline.focus();
			return false;
		}
	}
	if(frmname=="train"){
		if(f1.birthclass.value=='') {
			alert("Please enter class.");
			f1.birthclass.focus();
			return false;
		}
		if(f1.totalMembers.value=='') {
			alert("Please enter Total members.");
			f1.totalMembers.focus();
			return false;
		}
		if(f1.detailsmember.value=='') {
			alert("Please enter members details.");
			f1.detailsmember.focus();
			return false;
		}
	}
	if(frmname=="group"){
		if(f1.totalMembers.value=='') {
			alert("Please enter Total members in a group.");
			f1.totalMembers.focus();
			return false;
		}
		if(f1.place.value=='') {
			alert("Please enter Place of Holiday.");
			f1.place.focus();
			return false;
		}
		if(f1.budget.value=='') {
			alert("Please enter your budget.");
			f1.budget.focus();
			return false;
		}
		if(f1.mobile.value=='') {
			alert("Please enter mobile number.");
			f1.mobile.focus();
	        return false;
		}
		var re2 = /^[0-9 _-]+$/;
		if (!re2.test(f1.mobile.value)) {
		   alert("Mobile can be numeric or - only");
		   f1.mobile.focus();
		   return false;
		}
		if(f1.duration.value=='') {
			alert("Please Enter Number of Nights/ Duration.");
			f1.duration.focus();
	        return false;
		}
		if (f1.ddate.options[f1.ddate.selectedIndex].value == '') {
		   alert("Please select date");
		   f1.ddate.focus();
		   return false;
		}if (f1.dmonth.options[f1.dmonth.selectedIndex].value == '') {
		   alert("Please select month");
		   f1.dmonth.focus();
		   return false;
		}
		if (f1.dyear.options[f1.dyear.selectedIndex].value == '') {
		   alert("Please select year");
		   f1.dyear.focus();
		   return false;
		}

		if(f1.vehicle.value=='') {
			alert("Please Enter Vehicle requirement .");
			f1.vehicle.focus();
	        return false;
		}
	}
	if(frmname=="taxi"){
		if(f1.totalMembers.value=='') {
			alert("Please Enter No of People.");
			f1.totalMembers.focus();
			return false;
		}
		if (f1.jType.options[f1.jType.selectedIndex].value == '') {
		   alert("Please select journey type");
		   f1.jType.focus();
		   return false;
		}
		if (f1.cType.options[f1.cType.selectedIndex].value == '') {
		   alert("Please select car type");
		   f1.cType.focus();
		   return false;
		}
		if(f1.budget.value=='') {
			alert("Please Enter your budget.");
			f1.budget.focus();
			return false;
		}
	}
	
	if(frmname=="marriage"){
		if(f1.fPlace.value=='') {
			alert("Please enter venue.");
			f1.fPlace.focus();
			return false;
		}
		if (f1.adate.options[f1.adate.selectedIndex].value == '') {
		   alert("Please select date");
		   f1.adate.focus();
		   return false;
		}if (f1.amonth.options[f1.amonth.selectedIndex].value == '') {
		   alert("Please select month");
		   f1.amonth.focus();
		   return false;
		}
		if (f1.ayear.options[f1.ayear.selectedIndex].value == '') {
		   alert("Please select year");
		   f1.ayear.focus();
		   return false;
		}
		if(f1.budget.value=='') {
			alert("Please enter your budget.");
			f1.budget.focus();
			return false;
		}
	}
}
function validateAttraction(f1){
	if (f1.stateName.options[f1.stateName.selectedIndex].value == '') {
		   alert("Please select state");
		   f1.stateName.focus();
		   return false;
	}
	if(f1.aName.value=='') {
			alert("Please Enter Attraction Name.");
			f1.aName.focus();
			return false;
	}
	var h=/[(\?)|(#)|(\/)|(\\)|(\.)|(&)]/;
	if (h.test(f1.aName.value))	{
			alert('? # \ / . & are not allowed in this');
			f1.aName.focus();
			return false;
	}
}
function validateTheme(f1){
	if(f1.tName.value=='') {
			alert("Please Enter Theme Name.");
			f1.tName.focus();
			return false;
	}
	var h=/[(\?)|(#)|(\/)|(\\)|(\.)|(&)]/;
	if (h.test(f1.tName.value))	{
			alert('? # \ / . & are not allowed in this');
			f1.tName.focus();
			return false;
	}
}
function validatePackage(f1){
	if (f1.tName.options[f1.tName.selectedIndex].value == '') {
		   alert("Please select package theme");
		   f1.tName.focus();
		   return false;
	}
	if(f1.pName.value=='') {
			alert("Please Enter Package Name.");
			f1.pName.focus();
			return false;
	}
	var h=/[(\?)|(#)|(\/)|(\\)|(\.)|(&)]/;
	if (h.test(f1.pName.value))	{
			alert('? # \ / . & are not allowed in this');
			f1.pName.focus();
			return false;
	}


}
function validateHotelType(f1){
	if(f1.tName.value=='') {
			alert("Please Enter Hotel Category Name.");
			f1.tName.focus();
			return false;
	}
	var h=/[(\?)|(#)|(\/)|(\\)|(\.)|(&)]/;
	if (h.test(f1.tName.value))	{
			alert('? # \ / . & are not allowed in this');
			f1.tName.focus();
			return false;
	}
}
function validateHotel(f1){
	if(f1.hName.value=='') {
			alert("Please Enter Hotel Name.");
			f1.hName.focus();
			return false;
	}
	var h=/[(\?)|(#)|(\/)|(\\)|(\.)|(&)]/;
	if (h.test(f1.hName.value))	{
			alert('? # \ / . & are not allowed in this');
			f1.hName.focus();
			return false;
	}
	if (f1.hType.options[f1.hType.selectedIndex].value == '') {
		   alert("Please select hotel type");
		   f1.hType.focus();
		   return false;
	}
	if(f1.hCity.value=='') {
			alert("Please Enter Hotel City.");
			f1.hCity.focus();
			return false;
	}
	
}
function validateEvent(f1){
	if(f1.eName.value=='') {
			alert("Please Enter Event Name.");
			f1.eName.focus();
			return false;
	}
	var h=/[(\?)|(#)|(\/)|(\\)|(\.)|(&)]/;
	if (h.test(f1.eName.value))	{
			alert('? # \ / . & are not allowed in this');
			f1.eName.focus();
			return false;
	}
	if(f1.eshortDesc.value=='') {
			alert("Please Enter Event Description.");
			f1.eshortDesc.focus();
			return false;
	}
}
function validateMeta(f1){
	if(f1.meta_url.value=='') {
			alert("Please Enter URL.");
			f1.meta_url.focus();
			return false;
	}
	if(f1.meta_title.value=='') {
			alert("Please Enter Title.");
			f1.meta_title.focus();
			return false;
	}
	if(f1.meta_key.value=='') {
			alert("Please Enter Keywords.");
			f1.meta_key.focus();
			return false;
	}
	if(f1.meta_desc.value=='') {
			alert("Please Enter Description.");
			f1.meta_desc.focus();
			return false;
	}

}
function validateSearch(f1){
	if (f1.searchin.options[f1.searchin.selectedIndex].value == '') {
		   alert("Please select search category");
		   f1.searchin.focus();
		   return false;
	}
}
function validateEmail(f1){
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!f1.emailID.value.length) {
	   alert("You Must Enter Email-id");
	   f1.emailID.focus();
	   return false;
	}
	if (!re_mail.test(f1.emailID.value))	{
			alert( "Enter Email-id correctly" );
			f1.emailID.focus();
			return false;
	}
}
function chk_state(f1){
	if(f1.stateName.value=='') {
			alert("Please Enter Theme Name.");
			f1.stateName.focus();
			return false;
	}
	var h=/[(\?)|(#)|(\/)|(\\)|(\.)|(&)]/;
	if (h.test(f1.stateName.value))	{
			alert('? # \ / . & are not allowed in this');
			f1.stateName.focus();
			return false;
	}
}