function checkform(){
	searchBoxUS = document.getElementById("searchBoxUS");
	searchBoxINT = document.getElementById("searchBoxINT");	

	if (searchBoxUS.value == ""){
		alert("Please type in departing airport.\nYou can use full city name or 3 letter airport code.");
		return false;
	}
	if (searchBoxINT.value == ""){
		alert("Please type in destination airport.\nYou can use full city name or 3 letter airport code.");
		return false;
	}
	
	if (document.mainform.from.value == ""){
		document.mainform.from.value = searchBoxUS.value;
	}

	if (document.mainform.to.value == "")	{
		document.mainform.to.value = searchBoxINT.value;
	}

	var diffDate= (Date.parse(document.mainform.d2.value) - Date.parse(document.mainform.d1.value)) / 86400000;
//	alert(diffDate);
	if( diffDate < 1 || isNaN(diffDate) ){
        alert("Please check depart and return dates!");
		return false;
	}

	return true;
}

function showitnow(){
	var divHide = document.getElementById('progressDIV');
	var divShow = document.getElementById('hiddenBody');

	while (divHide.hasChildNodes())	{
		divHide.removeChild(divHide.firstChild);
	}
	divHide.parentNode.removeChild(divHide);
	divShow.style.display = "block";
}