function validate()
{
expname=/[^\w|\s|\-|\.|\,]+/;
expphone=/[^\d|\-]+/;

var checkinday=document.frmReservation.CheckInDay.selectedIndex
var checkinmonth=document.frmReservation.CheckInMonth.selectedIndex
var checkinyear=document.frmReservation.CheckInYear.selectedIndex
if((checkinday==0)&&(checkinmonth==0)&&(checkinyear==0))
	{
		alert("Please select the Check In Date")
		document.frmReservation.CheckInDay.focus();
		return false;
	}
if(checkinday==0)
	{	
		alert("Check In(Day) cannot be blank");
		document.frmReservation.CheckInDay.focus();
		return false;
	}
if(checkinmonth==0)
	{
		alert("Check In(Month) cannot be blank");
		document.frmReservation.CheckInMonth.focus();
		return false;
	}
if(checkinmonth!=0)
	{
		if((checkinmonth==4)||(checkinmonth==6)||(checkinmonth==9)||(checkinmonth==11))			
			{
				if(checkinday==31)
					{
						alert("Selected Check In(Month) can not have 31 days");
						document.frmReservation.CheckInMonth.focus();
						return false;
					}
			}
		if((checkinmonth==2) && (checkinday>29))
			{
				alert("Invalid date for February  of Check In(Month)");
				document.frmReservation.CheckInMonth.focus();
				return false;
			}
	}


if(checkinyear==0)
	{
		alert("Check In(Year) cannot be blank");
		document.frmReservation.CheckInYear.focus();
		return false;
	}
var checkoutday=document.frmReservation.CheckOutDay.selectedIndex
var checkoutmonth=document.frmReservation.CheckOutMonth.selectedIndex
var checkoutyear=document.frmReservation.CheckOutYear.selectedIndex

if((checkoutday==0)&&(checkoutmonth==0)&&(checkoutyear==0))
	{
		alert("Please select the Check Out Date")
		document.frmReservation.CheckOutDay.focus();
		return false;
	}
	
	
if(checkoutday==0)
	{	
		alert("Check Out(Day) cannot be blank");
		document.frmReservation.CheckOutDay.focus();
		return false;
	}
if(checkoutmonth==0)
	{
		alert("Check Out(Month) cannot be blank");
		document.frmReservation.CheckOutMonth.focus();
		return false;
	}
if(checkoutmonth!=0)
	{
		if((checkoutmonth==4)||(checkoutmonth==6)||(checkoutmonth==9)||(checkoutmonth==11))
			{
				if(checkoutday==31)
					{
						alert("Selected Check Out(Month) can not have 31 days");
						document.frmReservation.CheckOutMonth.focus();
						return false;
					}
			}
		if((checkoutmonth==2) && (checkoutday>29))
			{
				alert("Invalid date for February  of Check Out(Month)");
				document.frmReservation.CheckOutMonth.focus();
				return false;
			}
	}


if(checkoutyear==0)
	{
		alert("Check Out(Year) cannot be blank");
		document.frmReservation.CheckOutYear.focus();
		return false;
	}

var person=document.frmReservation.Person.value.replace(/ /g,"")
if(person=="")
	{
		alert("Person cannot be blank")
		document.frmReservation.Person.focus()
		return false;
	}

if(isNaN(person)==true)
	{
		alert("Person should have only number")
		document.frmReservation.Person.focus();
		return false;
	}
	
var rooms=document.frmReservation.Rooms.value.replace(/ /g,"")
if(rooms=="")
	{
		alert("Rooms cannot be blank")
		document.frmReservation.Rooms.focus();
		return false;
	}
if(isNaN(rooms)==true)
	{
		alert("Rooms should have only number")
		document.frmReservation.Rooms.focus();
		return false;
	}
	
var contactperson=document.frmReservation.ContactPerson.value.replace(/ /g,"")
if(contactperson=="")
	{
		alert("Conact Person cannot be left blank")
		document.frmReservation.ContactPerson.focus();
		return false
	}
if(expname.test(contactperson)==true)
	{
		alert('Special characters like <> * " ` are not allowed in Contact Person')
		document.frmReservation.ContactPerson.focus();
		return false
	}
var mobile=document.frmReservation.Mobile.value.replace(/ /g,"")
if(mobile=="")
	{
		alert("Mobile No cannot be blank")
		document.frmReservation.Mobile.focus();
		return false
	}
if(expphone.test(mobile)==true)
	{
		alert('Mobile No. should contain only "0-9" and "-" characters')
		document.frmReservation.Mobile.focus();
		return false
	}

document.frmReservation.submit();
}

 
 
var current_img_clean;
var current_img_foggy;
var  interval;


function clean(objid)
{
  var imgobj= document.getElementById(objid);
  current_img_clean = imgobj;
    interval=setInterval("makeclean()",1)
}
 
function foggy(objid)
{
  var imgobj1= document.getElementById(objid);
 imgobj1.filters.alpha.opacity = 100;
 clearInterval(interval)
}

 function makefoggy()
{
 
	if (current_img_foggy.filters.alpha.opacity<100)
	 {
	 current_img_foggy.filters.alpha.opacity+=10
	 }
	else if (window.interval1)
	 {
	 clearInterval(interval1)
	 }
 }


function makeclean()
{
 
	if (current_img_clean.filters.alpha.opacity>20)
	 {
	    current_img_clean.filters.alpha.opacity-=10
 	 }
	else if (window.interval)
	 {
	 clearInterval(interval)
	 }
 }
 