
	function isDatesOk() {
		var f = document.form1;
		if( !f.Agree.checked ) {
			alert("Have you purchased your conference delegate places?");
			f.Agree.focus();
		} else if( f.ArriveOn.value.length<1 ) {
			alert("please a arrival date!");
			f.ArriveOn.focus();
		} else if( f.DepartOn.value.length<1 ) {
			alert("please a departure date!");
			f.DepartOn.focus();
		} else if( f.DepartOn.value <= f.ArriveOn.value ) {
			alert("please select reasonable dates!");
			f.DepartOn.focus();
		} else if( f.Rooms.value.length<1 ) {
			alert("please the number of rooms required!");
			f.Rooms.focus();
		} else {
			return true;
		}
		return false;
	}

	function ok2go2(cURL) { if( confirm("are you sure?") ) go2(cURL); }
	function go2(cURL) { document.location = cURL; }

	function isCheckoutOk() {
		var f = document.form1;
		if( !f.Agree.checked ) {
			alert("Please indicate your agreement to our terms and conditions!");
			f.Agree.focus();
			return false;
		} else if( !f.Agree2.checked ) {
			alert("Please indicate you have checked the order details!");
			f.Agree2.focus();
			return false;
		}
		return true;
	}

	function winOpen(cID) {
		var h = window.open('popup.asp?id='+cID,'fompop','left=20,top=30,width=500,height=550,toolbar=0,resizable=1,scrollbars=yes');
		h.focus();
	}

	function pdfOpen(cID,cHK) {
		var h = window.open('pdf.asp?rid='+cID+'&rhk='+cHK,'fompdf','left=20,top=30,width=400,height=550,toolbar=0,resizable=1,scrollbars=yes');
		h.focus();
	}