
//declarations

var emailPat = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;//to check email
var phonePat=/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/;//to check phone number in US format
var zipPat=/^[0-9]{5}$/;//to check if zip code is 5 digit

function funSubmit(formName,action)
{
	
	doc=eval("document."+formName);
	doc.action=action;
	doc.submit();
}

//left includes page
function goRecipe(catId,catName)
{
	document.frmLeft.action="recipe.php";
	document.frmLeft.hidCatId.value=catId;
	document.frmLeft.hidCatName.value=catName;
	document.frmLeft.submit();
}

function funSearch()
{
	if(document.frmSrchHead.txtSearch.value=="")
	{
		alert("Please enter search text.");
		document.frmSrchHead.txtSearch.focus();
		return false;
	}
	
	document.frmSrchHead.action="srchResult.php";
	document.frmSrchHead.submit();
	
}

function funKeySrch(e)
{
	if(e.keyCode==13)
	{
		funSearch();	
	}
}
function funSrchCom(formName)
{
	frmName=eval("document."+formName);
	frmName.action="srchResult.php";
	frmName.submit();
}
function srchLinkList(url, pg, index, type,so)
{
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&srch="+document.frmRecipe.hidSrch.value;
	passvalue(url);
}
function funGiftCat(giftCatId)
{
	document.frmGiftCat.hidGiftCat.value= giftCatId;
	document.frmGiftCat.action="present_category_det.php";
	document.frmGiftCat.submit();
}
function funGiftCatLeft(giftCatId)
{
	document.frmLeftMenu.hidGiftCat.value= giftCatId;
	document.frmLeftMenu.action="present_category_det.php";
	document.frmLeftMenu.submit();
}
function funGiftProduct(giftProductId)
{
	document.frmGiftCatDet.hidGiftProduct.value= giftProductId;
	document.frmGiftCatDet.action="present_det.php";
	document.frmGiftCatDet.submit();	
}
function funGiftPrdEnt(giftProductId)
{
	document.frmEntSubCatDet.hidGiftProduct.value= giftProductId;
	document.frmEntSubCatDet.action="present_det.php?from=ent";
	document.frmEntSubCatDet.submit();	
}
function funGiftPrdSrch(giftProductId)
{
	document.frmSrch.hidGiftProduct.value= giftProductId;//alert(document.frmSrch.hidGiftProduct.value);
	document.frmSrch.action="present_det.php?from=srch";
	document.frmSrch.submit();	
}
function funPresentCat(giftCatId)
{
	document.frmGiftProduct.hidGiftCat.value= giftCatId;
	document.frmGiftProduct.action="present_category_det.php";//alert(document.frmGiftProduct.hidGiftCat.value);
	document.frmGiftProduct.submit();	
}
function funMoveCat(moveCatId,formName)
{
	frmName=eval("document."+formName);
	frmName.hidMoveCat.value= moveCatId;
	frmName.action="move_category_det.php";
	frmName.submit();
}
function funMoveProduct(moveProductId)
{
	document.frmMoveCatDet.hidMoveProduct.value= moveProductId;
	document.frmMoveCatDet.action="move_det.php";
	document.frmMoveCatDet.submit();	
}
function funMovePrdSrch(moveProductId)
{
	document.frmSrch.hidMoveProduct.value= moveProductId;
	document.frmSrch.action="move_det.php?from=srch";
	document.frmSrch.submit();	
}
function funMovePrdEnt(moveProductId)
{
	document.frmEntSubCatDet.hidMoveProduct.value= moveProductId;
	document.frmEntSubCatDet.action="move_det.php?from=ent";
	document.frmEntSubCatDet.submit();	
}
function moveCatDetLinkList(url, pg, index, type,so)
{	//alert(document.frmMoveCatDet.hidMoveCat.value);
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidMoveCat="+document.frmMoveCatDet.hidMoveCat.value;
	passvalue(url);
}
function giftCatDetLinkList(url, pg, index, type,so)
{	//alert(document.frmMoveCatDet.hidMoveCat.value);
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidGiftCat="+document.frmGiftCatDet.hidGiftCat.value;
	passvaluee(url);
}
function funEncCat(encCatId,formName)
{
	frmName=eval("document."+formName);
	frmName.hidEncCat.value= encCatId;
	frmName.action="enc_category_det.php";
	frmName.submit();
}
function encCatDetLinkList(url, pg, index, type,so)
{	//alert(document.frmMoveCatDet.hidMoveCat.value);
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidEncCat="+document.frmEncCatDet.hidEncCat.value;
	passvalue(url);
}
function encCatDetLinkListGift(url, pg, index, type,so)
{	//alert(document.frmMoveCatDet.hidMoveCat.value);
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidGiftCat="+document.frmGiftCatDet.hidGiftCat.value;
	passvalue(url);
}
function encCatDetLinkListEnt(url, pg, index, type,so)
{	//alert(document.frmMoveCatDet.hidMoveCat.value);
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidEntSubCat="+document.frmEntSubCatDet.hidEntSubCat.value;
	passvaluee(url);
}
function moveCatDetLinkListEnt(url, pg, index, type,so)
{	//alert(document.frmMoveCatDet.hidMoveCat.value);
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidEntSubCat="+document.frmEntSubCatDet.hidEntSubCat.value;
	passvalue4(url);
}
function giftCatDetLinkListEnt(url, pg, index, type,so)
{	//alert(document.frmMoveCatDet.hidMoveCat.value);
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidEntSubCat="+document.frmEntSubCatDet.hidEntSubCat.value;
	passvalue3(url);
}
function funEncProductGift(encProductId)
{
	document.frmGiftCatDet.hidEncProduct.value= encProductId;
	document.frmGiftCatDet.action="enc_det.php?from=gift";
	document.frmGiftCatDet.submit();	
}
function funEncProductEnt(encProductId)
{
	document.frmEntSubCatDet.hidEncProduct.value= encProductId;
	document.frmEntSubCatDet.action="enc_det.php?from=ent";
	document.frmEntSubCatDet.submit();	
}
function funGiftCatEnc(giftCatId)
{
	document.frmEncProduct.hidGiftCat.value= giftCatId;
	document.frmEncProduct.action="present_category_det.php";
	document.frmEncProduct.submit();
}
function funEntCatRest(cardId,from,formName)
{
	frm=eval("document."+formName);
	frm.hidEntCat.value= cardId;//alert(document.frmEncProduct.hidEntSubCat.value);
	frm.action="ent_category_det.php?from="+from;
	frm.submit();
}
function funEntCatEnc(cardId,from)
{
	document.frmEncProduct.hidEntSubCat.value= cardId;//alert(document.frmEncProduct.hidEntSubCat.value);
	document.frmEncProduct.action="ent_sub_category_det.php?from="+from;
	document.frmEncProduct.submit();
}
function funEntCatMove(cardId,from)
{
	document.frmMoveProduct.hidEntSubCat.value= cardId;//alert(document.frmEncProduct.hidEntSubCat.value);
	document.frmMoveProduct.action="ent_sub_category_det.php?from="+from;
	document.frmMoveProduct.submit();
}
function funEntCatGift(cardId,from)
{
	document.frmGiftProduct.hidEntSubCat.value= cardId;//alert(document.frmEncProduct.hidEntSubCat.value);
	document.frmGiftProduct.action="ent_sub_category_det.php?from="+from;
	document.frmGiftProduct.submit();
}
function funEncProduct(encProductId)
{
	document.frmEncCatDet.hidEncProduct.value= encProductId;
	document.frmEncCatDet.action="enc_det.php";
	document.frmEncCatDet.submit();	
}
function funEncPrdSrch(encProductId)
{
	document.frmSrch.hidEncProduct.value= encProductId;//alert(document.frmSrch.hidEncProduct.value);
	document.frmSrch.action="enc_det.php?from=srch";
	document.frmSrch.submit();	
}
function funEntCat(entCatId)
{
	//frmName=eval("document."+formName);
	document.frmEntCat.hidEntCat.value= entCatId;
	document.frmEntCat.action="ent_category_det.php";
	document.frmEntCat.submit();
}
function funEntCatCom(entCatId,formName)
{
	frmName=eval("document."+formName);
	frmName.hidEntCat.value= entCatId;
	frmName.action="ent_category_det.php";
	frmName.submit();
}
function funEntSubCat(entSubCatId)
{
	//alert(entSubCatId);
	document.frmEntCat.hidEntSubCat.value= entSubCatId;
	document.frmEntCat.action="ent_sub_category_det.php";
	document.frmEntCat.submit();
}
function entSubCatDetLinkList(url, pg, index, type,so)
{	
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidEntSubCat="+document.frmEntSubCatDet.hidEntSubCat.value+"&hidCuisineId="+document.frmEntSubCatDet.hidCuisineId.value+"&hidCityId="+document.frmEntSubCatDet.hidCityId.value+"&hidExpId="+document.frmEntSubCatDet.hidExpId.value;//alert(url);
	passvalue(url);
}
function funEntProduct(entProductId,formName,from)
{
	frmName=eval("document."+formName);
	frmName.hidEntProduct.value= entProductId;//frmEntSubCatDet
	frmName.action="ent_det.php?from="+from;
	frmName.submit();	
}
function funEntPrdFrom(entProductId,formName,from)
{
	frmName=eval("document."+formName);
	frmName.hidEntProduct.value= entProductId;//frmEntSubCatDet
	frmName.action="ent_det.php?from="+from;
	frmName.submit();	
}
function entCatDetLinkList(url, pg, index, type,so)
{	//alert(document.frmMoveCatDet.hidMoveCat.value);
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidEntCat="+document.frmEntCatDet.hidEntCat.value+"&from="+document.frmEntCatDet.hidFrom.value;
	passvalue(url);
}
function funEntSubCat1(entSubCatId,from)
{
	//alert(entSubCatId);
	document.frmEntCatDet.hidEntSubCat.value= entSubCatId;
	if(from=='rest')
	{
		document.frmEntCatDet.action="ent_sub_category_det.php?from="+from;//cuisine.php	
	}
	else
	{
		document.frmEntCatDet.action="ent_sub_category_det.php?from=subDet";
	}
	document.frmEntCatDet.submit();
}
function funEntSubCatH(entSubCatId,from,formName,entCatId)
{
	//alert(entSubCatId);
	var frm=eval("document."+formName);
	frm.hidEntSubCat.value= entSubCatId;
	frm.hidEntCat.value=entCatId;
	if(from=='rest')
	{
		frm.action="ent_sub_category_det.php?from="+from;//cuisine.php	
	}
	else
	{
		frm.action="ent_sub_category_det.php?from=subDet";
	}
	frm.submit();
}
function funEntSubCatRest(entSubCatId,from,formName)
{
	//alert(entSubCatId);
	frmName=eval("document."+formName);
	frmName.hidEntSubCat.value= entSubCatId;
	frmName.action="cuisine.php?from="+from;	
	frmName.submit();
}

function funEntSubCatLeft(entSubCatId)
{
	//alert(entSubCatId);
	document.frmLeftMenu.hidEntSubCat.value= entSubCatId;
	document.frmLeftMenu.action="ent_sub_category_det.php";
	document.frmLeftMenu.submit();
}
function funEntCat1(entCatId)
{
	//frmName=eval("document."+formName);
	document.frmEntSubCatDet.hidEntCat.value= entCatId;
	document.frmEntSubCatDet.action="ent_category_det.php";
	document.frmEntSubCatDet.submit();
}
function cuisineLinkList(url, pg, index, type,so)
{	
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so+"&hidEntSubCat="+document.frmCuisine.hidEntSubCat.value;
	passvalue(url);
}
function funEntCuisine(formName)//cuisineId,
{
	frmName=eval("document."+formName);
	//frmName.hidCuisineId.value= cuisineId;//alert(document.frmCuisine.hidCuisineId.value);
	frmName.action="ent_sub_category_det.php?from=rest";
	frmName.submit();
}
function locLinkList(url, pg, index, type,so)
{	
	var url  = url+"?"+"pg="+pg+"&index="+index+"&type="+type+"&so="+so;
	passvalue(url);
}
function funEntLocation(cityId,formName)
{
	frmName=eval("document."+formName);
	frmName.hidCityId.value= cityId;//alert(frmName.hidCityId.value);
	frmName.action="ent_sub_category_det.php?from=location";
	frmName.submit();
}
function funEntLocation1(cityId)
{
	document.frmEntCat.hidCityId.value= cityId;//alert(document.frmEntCat.hidCityId.value);
	document.frmEntCat.action="ent_sub_category_det.php?from=location";
	document.frmEntCat.submit();
}
function funEntCuisine1(cuisineId)
{
	document.frmEntCat.hidCuisineId.value= cuisineId;//alert(document.frmEntCat.hidCuisineId.value);
	document.frmEntCat.action="ent_sub_category_det.php?from=cuisine";
	document.frmEntCat.submit();
}
function viewEncImg(encProductId)
{
	window.open('encImgDet.php?encId='+encProductId,'popup','width=800,height=600,scrollbars=yes,resizable=yes,toolbar=no,status=no,left=50,top=0');	
}
function viewEntImg(entProductId)
{
	window.open('entImgDet.php?entId='+entProductId,'popup','width=800,height=600,scrollbars=yes,resizable=yes,toolbar=no,status=no,left=50,top=0');	
}
function viewMoveImg(moveId)
{
	window.open('moveImgDet.php?moveId='+moveId,'popup','width=800,height=600,scrollbars=yes,resizable=yes,toolbar=no,status=no,left=50,top=0');	
}
function viewGiftImg(giftId)
{
	window.open('giftImgDet.php?giftId='+giftId,'popup','width=800,height=600,scrollbars=yes,resizable=yes,toolbar=no,status=no,left=50,top=0');	
}
function funMenuDownload(fileName,dir)
{
	//document.frmAddEnticement.action="../downloadFile.php?fileName="+fileName+"&path="+dir;
	//document.frmAddEnticement.submit();
	window.open('downloadFile.php?fileName='+fileName+"&path="+dir,'popup','width=800,height=600,scrollbars=yes,resizable=yes,toolbar=no,status=no,left=50,top=0');
}

function validateUser()
{
	if(trim(document.frmJoin.txtFirstName.value) == "")
	{
		alert("Please enter first name.");
		document.frmJoin.txtFirstName.focus();
		return false;
	}
	if(trim(document.frmJoin.txtLastName.value) == "")
	{
		alert("Please enter last name.");
		document.frmJoin.txtLastName.focus();
		return false;
	}
	if(trim(document.frmJoin.txtEmail.value) == "")
	{
		alert("Please enter email.");
		document.frmJoin.txtEmail.focus();
		return false;
	}
	if(!email.test(document.frmJoin.txtEmail.value))
	{
		alert("Invalid email address.");
		document.frmJoin.txtEmail.focus();
		 return false;
	}
	if(trim(document.frmJoin.txtUsername.value) == "")
	{
		alert("Please enter username.");
		document.frmJoin.txtUsername.focus();
		return false;
	}
	document.frmJoin.txtId.value=document.frmJoin.txtUsername.value;//alert(document.frmJoin.txtId.value);
	if(trim(document.frmJoin.txtPassword.value) == "")
	{
		alert("Please enter password.");
		document.frmJoin.txtPassword.focus();
		return false;
	}
	if(trim(document.frmJoin.txtPassword.value) != trim(document.frmJoin.txtCPassword.value))
	{
		alert("Password mismatch.");
		document.frmJoin.txtCPassword.focus();
		return false;
	}
	if(trim(document.frmJoin.txtMobile.value) == "")
	{
		alert("Please enter your UAE mobile number.");
		document.frmJoin.txtMobile.focus();
		return false;
	}
	var dt=document.frmJoin.txtDOB;
	if(trim(document.frmJoin.txtDOB.value) == "")
	{
		alert("Please enter date of birth.");
		document.frmJoin.txtDOB.focus();
		return false;
	}

	if (isDate(dt.value)==false)
	{
		dt.focus()
		return false
	}
    
 
	if(trim(document.frmJoin.drpCountry.value) == "")
	{
		alert("Please enter your nationality.");
		document.frmJoin.drpCountry.focus();
		return false;
	}
	if(trim(document.frmJoin.txtAddress.value) == "")
	{
		alert("Please enter your address.");
		document.frmJoin.txtAddress.focus();
		return false;
	}/**/
	if(trim(document.frmJoin.fileImg.value) == "")
	{
		alert("Please choose your image.");
		document.frmJoin.fileImg.focus();
		return false;
	}
	document.frmJoin.action="joinNow1.php?act=Add";
	document.frmJoin.submit();
	
}

function validateUserTerms()
{
	if(!document.frmJoin.chkAgree.checked)
	{
		alert("Please agree our terms and conditions.");
		document.frmJoin.chkAgree.focus();
		return false;
	}
	document.frmJoin.action="joinNowMessage1.php";
	document.frmJoin.submit();
}

function funBuyEnc(formName)
{
	frm=eval("document."+formName);
	frm.action="encUserLogin.php";
	frm.submit();	
}
function funEncLogin()
{
	if(!document.frmJoin.chkMember.checked)
	{
		document.getElementById("div_results").innerHTML="Please choose the following:<br><input type='radio' name='rdPresent' value='0'  checked='checked'>&nbsp; This adventure is for myself.&nbsp;<input type='radio' name='rdPresent' value='1'>&nbsp;This Adventure is a Present<br><br><input type='button' name='btnNoUser' value='Book Now' onClick='validateEncLogin(0)' />";
		
	}
	else
	{
		url="ajax_encUser.php";
		passvalue(url);
	}
}
function validateEncLogin(from)
{
	
	if(from==1)//login
	{
		if(trim(document.frmJoin.txtNo.value)=="")
		{
			alert("Please enter your mystery dubai number.");
			document.frmJoin.txtNo.focus();
			return false;
		}
		if(trim(document.frmJoin.txtPassword.value)=="")
		{
			alert("Please enter your password.");
			document.frmJoin.txtPassword.focus();
			return false;
		}
		document.frmJoin.action="encUserLogin1.php?from=login";
		document.frmJoin.submit();
	}
	else
	{
		document.frmJoin.action="encUserLogin1.php?from=noLogin";
		document.frmJoin.submit();	
	}
		
	
}
function validateProductTerms(minValue,maxValue)
{
	if(trim(document.frmEncUserDet.txtQuantity.value)=="")
	{
		alert("Please enter number of persons.");
		document.frmEncUserDet.txtQuantity.focus();
		return false;
	}
	if(checkint(document.frmEncUserDet.txtQuantity.value)== false)
	{
		alert("Please enter a valid number of persons.");
		document.frmEncUserDet.txtQuantity.focus();
		return false;	
	}
	var qunatity= parseInt(document.frmEncUserDet.txtQuantity.value);
	if((qunatity < minValue) || (qunatity > maxValue))
	{
		alert("Please enter number of persons between "+minValue+" and "+maxValue+".");
		document.frmEncUserDet.txtQuantity.focus();
		return false;		
	}
	
	if(document.frmEncUserDet.hidPresent.value==1)//if present
	{
		if(trim(document.frmEncUserDet.txtRecipientName.value)=="")
		{
			alert("Please enter recipient name.");
			document.frmEncUserDet.txtRecipientName.focus();
			return false;
		}
		/*if(trim(document.frmEncUserDet.txtDelivery.value)=="")
		{
			alert("Will it be delivered to you or the recipient?");
			document.frmEncUserDet.txtDelivery.focus();
			return false;
		}*/
		if(trim(document.frmEncUserDet.txtAddress.value)=="")
		{
			alert("Please enter address.");
			document.frmEncUserDet.txtAddress.focus();
			return false;
		}
		if(trim(document.frmEncUserDet.txtRPhone.value)=="")
		{
			alert("Please enter recipient phone.");
			document.frmEncUserDet.txtRPhone.focus();
			return false;
		}
		if(trim(document.frmEncUserDet.txtPersonalMessage.value)=="")
		{
			alert("Please enter Personalised Message to appear in Present Voucher.");
			document.frmEncUserDet.txtPersonalMessage.focus();
			return false;
		}
	}
	if(trim(document.frmEncUserDet.txtName.value)=="")
	{
		alert("Please enter your name.");
		document.frmEncUserDet.txtName.focus();
		return false;
	}
	if(trim(document.frmEncUserDet.txtMail.value)=="")
	{
		alert("Please enter your email.");
		document.frmEncUserDet.txtMail.focus();
		return false;
	}
	if(!email.test(document.frmEncUserDet.txtMail.value))
	{
		alert("Invalid email address.");
		document.frmEncUserDet.txtMail.focus();
		 return false;
	}
	if(trim(document.frmEncUserDet.txtPhone.value)=="")
	{
		alert("Please enter your phone number.");
		document.frmEncUserDet.txtPhone.focus();
		return false;
	}
	
	document.frmEncUserDet.action="encUserDet1.php";
	document.frmEncUserDet.submit();
}

function validatePrdTerms()
{
	if(!document.frmEncMsg.chkAgree.checked)
	{
		alert("Please agree our terms and conditions.");
		document.frmEncMsg.chkAgree.focus();
		return false;
	}
	document.frmEncMsg.action="encUserMessage1.php";
	document.frmEncMsg.submit();	
}

function validateNewsletter()
{
	if(trim(document.frmJoin.txtFirstName.value) == "")
	{
		alert("Please enter first name.");
		document.frmJoin.txtFirstName.focus();
		return false;
	}
	if(trim(document.frmJoin.txtLastName.value) == "")
	{
		alert("Please enter last name.");
		document.frmJoin.txtLastName.focus();
		return false;
	}
	if(trim(document.frmJoin.txtEmail.value) == "")
	{
		alert("Please enter email.");
		document.frmJoin.txtEmail.focus();
		return false;
	}
	if(!email.test(document.frmJoin.txtEmail.value))
	{
		alert("Invalid email address.");
		document.frmJoin.txtEmail.focus();
		 return false;
	}
	var dt=document.frmJoin.txtDOB;
	if(trim(document.frmJoin.txtDOB.value) == "")
	{
		alert("Please enter date of birth.");
		document.frmJoin.txtDOB.focus();
		return false;
	}

	if (isDate(dt.value)==false)
	{
		dt.focus()
		return false
	}
	
	var dt=document.frmJoin.txtDOB;
	if(trim(document.frmJoin.txtDOB.value) == "")
	{
		alert("Please enter date of birth.");
		document.frmJoin.txtDOB.focus();
		return false;
	}

	if (isDate(dt.value)==false)
	{
		dt.focus()
		return false
	}
    
 
	if(trim(document.frmJoin.drpCountry.value) == "")
	{
		alert("Please enter your nationality.");
		document.frmJoin.drpCountry.focus();
		return false;
	}
	if(trim(document.frmJoin.txtMobile.value) == "")
	{
		alert("Please enter your UAE mobile number.");
		document.frmJoin.txtMobile.focus();
		return false;
	}
	
	document.frmJoin.action="newsletter1.php";
	document.frmJoin.submit();
	
}

/***************brunches*******************/
function funEntExp(expId,formName)
{
	frmName=eval("document."+formName);
	frmName.hidExpId.value= expId;//alert(frmName.hidCityId.value);
	frmName.action="exp_prd_list.php?from=exp";
	frmName.submit();
}
function funExpProduct(expProductId,formName,from)
{
	frmName=eval("document."+formName);
	frmName.hidExpProduct.value= expProductId;//frmEntSubCatDet
	frmName.action="exp_det.php?from="+from;
	frmName.submit();	
}
/****************Other  Experience *****************/
function funEntExpType(expId,formName)
{
	frmName=eval("document."+formName);
	frmName.hidExpId.value= expId;//alert(frmName.hidCityId.value);
	frmName.action="ent_sub_category_det.php?from=exp";
	frmName.submit();
}