function sm_date() {	
	var aryLen = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
	var objDate = new Date();
	var intMth = objDate.getMonth();
	var intDay = objDate.getDate();
	var intDif = 1;

	var intOutMth = intMth + 1;
	var intRetMth = intMth + 1;
	var intOutDay = intDay + 6;
	var intRetDay = intOutDay + intDif;

	if (intRetDay > aryLen[intMth]) {
		intRetMth ++;
		if (intRetMth > 11) {
			intRetMth = 0;
		}
	}

	document.frmFlights.outmonth.selectedIndex = intOutMth;
	document.frmFlights.outday.selectedIndex = intOutDay;
	document.frmFlights.retmonth.selectedIndex = intRetMth;
	document.frmFlights.retday.selectedIndex = intRetDay;
}

function check_submit() {
	var strOutput = "";

	if (document.frmFlights.loccurrency.value == "") {
		strOutput = strOutput + "Please select the currency that you wish to be quoted in.\n";
	}

	if (document.frmFlights.fromcity.value == "") {
		strOutput = strOutput + "Please enter your departure city\n";
	}

	if (document.frmFlights.tocity.value == "") {
		strOutput = strOutput + "Please enter your destination city\n";
	}

	if (strOutput.length > 0) {
		alert(strOutput);
		return false;
	}
	ShowLoadingWindow(1,"");
}
