function sendRequestNow(){
	$("#div1")
	.ajaxStart(function(){
		$('#div1').html('<div style="width:41px;margin:auto;"><img src="/santorini-luxury-suites/search/images/loading.gif" alt="loading..." width="41" height="39" vspace="35" /></div>');
		//document.getElementById('div1').innerHTML = '<div style="width:41px;margin:auto;"><img src="/santorini-luxury-suites/search/images/loading.gif" alt="loading..." width="41" height="39" vspace="35" /></div>';
		$(this).show();
		$('#gallery').show();
	})
	
	var str = location.href;
	var result = str.match("santorini-hotels-reservation.php");
	if( result != null )
	{
		var myUrl = 'santorini-luxury-suites/search/script.php';
	}else
	{
		var myUrl = 'search/script.php';
	}
	
	var options = {
		url: 	   myUrl,
		dataType: 'text',
		success: function (data, status)
		{
			$('#div1').hide();
			if(typeof(data) != 'undefined')
			{
				$('#forContentDiv').addClass('ContentDiv');
				$('#div1').html(data);
				//document.getElementById('div1').innerHTML = data;
				$('#div1').slideDown("slow");
			}
		}
	};

	var suite    = $("#room_type").val();
	var start_date = $("#start_date").val();
	var end_date = $("#end_date").val();

	var d = new Date();
	var curr_date = d.getDate();
	var curr_month = d.getMonth();
	curr_month++;
	var curr_year = d.getFullYear();
	
	if(curr_month < 10)
	{
		curr_month =  "0" + curr_month;
	}
	if(curr_date < 10)
	{
		curr_date =  "0" + curr_date;
	}
	
	var today = curr_year + "" + curr_month + "" + curr_date;

	startDate = start_date.split("-");
	startDate = startDate[0] + "" + startDate[1] + "" + startDate[2];
	endDate = end_date.split("-");
	endDate = endDate[0] + "" + endDate[1] + "" + endDate[2];
	
	if (suite == 0)
		{
				alert("REQUIRED FIELD: Please select the suite of your desire");
				return false;
		}else if (start_date == "")
		{
				alert("REQUIRED FIELD: Please enter the date of your arrival");
				return false;
		}else if (startDate < today)
		{
				alert("REQUIRED FIELD: Your arrival date is in the past");
				return false;
		}else if (end_date == "")
		{
				alert("REQUIRED FIELD: Please enter the date of your departure");
				return false;
		}else if (endDate < today)
		{
				alert("REQUIRED FIELD: Your departure date is in the past");
				return false;
		}else if (startDate > endDate)
		{
				alert("REQUIRED FIELD: Your departure date is before arrival date");
				return false;
		}else
		{
			$('#searchform').ajaxSubmit(options);
			return false;
		}
}