function Print_Click(CartId)
{
 	with(document.frmTourCart)
	{
	 popupWindowURL("transfercart.php?Action=Print&cartId="+CartId, 'Print', 600, 350, false, false, true);
	}
}

/*
function Form_Submit(frm)
{
	with(frm)
    {

		today          = new Date();
		date           = today.getDate();
		month          = today.getMonth() + 1;
		year           = today.getFullYear();
		
		var checkdate = '';
		var arrival_date = '';
		var departure_date   = '';
		
		if(date < 10)
		{
			  date = '0'+date;
	    }
	    if(month < 10)
		{
			  month = '0'+month;
	    }

		  checkdate = year+"-"+month+"-"+date;
	
			if(!IsEmpty(hotelName,Empty_Hotel_Name))
			{
			    return false;
			}
			if(!(frm.singleTrip.checked || frm.roundTrip.checked))
			{
				alert(Empty_Check_Box);
				return false;
			}
			if(frm.singleTrip.checked)
			{
		
				arrival_date = arrivalDate.value;
				 
				if(!IsEmpty(arrivalDate, Empty_Arrival_Date))
				{
					return false;
				}
				if(frmTour.arrivalDate.value < checkdate)
				{
					 alert(Valid_Arrival_Date);
					 frmTour.arrivalDate.focus();	
					 return false;
				}
				if(!IsEmpty(arrivalAirline,Empty_Airline_Name))
				{
					return false;
				}
				if(!IsEmpty(arrivalFlight,Empty_Flight_No))
				{
					return false;
				}
		   }
		   if(frm.roundTrip.checked)		
		   {
		  
		  		departure_date = departureDate.value;
		  
				if(!IsEmpty(departureDate, Empty_Departure_Date))
				{
					return false;
				}
				if(frmTour.departureDate.value < checkdate)
				{
					 alert(Valid_Departure_Date);
					 frmTour.departureDate.focus();	
					 return false;
				}
				if(!IsEmpty(departureAirline,Empty_Airline_Name))
				{
					return false;
				}
				if(!IsEmpty(departureFlight,Empty_Flight_No))
				{
					return false;
				}

		  }	

		if(frm.singleTrip.checked && frm.roundTrip.checked)
		{
			if(frmTour.departureDate.value < frmTour.arrivalDate.value)
        	{
				alert(Valid_BothDate_Msg);
				frmTour.departureDate.focus();
				return false;
    	    }
		}		
	}

	return true;
}	*/

function Form_Submit(frm)
{
	with(frm)
	{
		today          = new Date();
		date           = today.getDate();
		month          = today.getMonth() + 1;
		year           = today.getFullYear();
	
		if(date < 10)
		{
			  date = '0'+date;
		}
		if(month < 10)
		{
			  month = '0'+month;
		}
	
		var checkdate = '';
		checkdate = year+'-'+month+'-'+date;	
		
		if(!IsEmpty(num_adults, Empty_No_Adult_Msg))
		{
			return false;
		}
	    if(isNaN(num_adults.value))
		{
			alert(Valid_No_Adult_Msg);
			frmTour.num_adults.focus();
			return false;
		}
		if(num_childs.value != '')
		{
			if(isNaN(num_childs.value))
			{
				alert(Valid_No_Child_Msg);
				frmTour.num_childs.focus();
				return false;
			}
		}
		if(!IsEmpty(tourDate, Empty_Tour_Date))
		{
			return false;
		}
		if(frmTour.tourDate.value < checkdate)
		{
			alert(Valid_Tour_Date);
			frmTour.tourDate.focus();	
			return false;
		}
		if(!IsEmpty(tourTiming, Empty_Tour_Timing))
		{
		   return false;
		}
			//Submit.value = "submit";
			//frmTour.submit();
		}
		return true;
	}


function calendarCallback(date, month, year)
{
	if(month <= 9)
	{ month = '0'+month }
	if(date <= 9)
	{ date = '0'+date }
	date =  year +'-' + month + '-' + date ;
	document.frmTour.tourDate .value = date;	// name of the form itself is forms[0]
	document.frmTour.tourDate .focus();
}

function calendarCallback1(date, month, year)
{
	if(month <= 9)
	{ month = '0'+month }
	if(date <= 9)
	{ date = '0'+date }
	date =  year +'-' + month + '-' + date ;
	document.frmTour.arrivalDate.value = date;	// name of the form itself is forms[0]
	document.frmTour.arrivalDate.focus();
}

function calendarCallback2(date, month, year)
{
	if(month <= 9)
	{ month = '0'+month }
	if(date <= 9)
	{ date = '0'+date }
	date =  year +'-' + month + '-' + date ;
	document.frmTour.departureDate.value = date;	// name of the form itself is forms[0]
	document.frmTour.departureDate.focus();
}
