function submitReservationsForm(){
	var oForm = document.getElementById('reservationsForm');

	if(oForm.spar_arrive.value == '' || oForm.spar_arrive.value == 'GROUP CODE'){
		alert("Please enter the date");
		oForm.spar_arrive.focus();
		return;
	}
	
	
	
	if(Date.isValid(oForm.spar_arrive.value,'') == false){
		alert("Please enter a valid date MM/DD/YYYY");
		oForm.spar_arrive.focus();
		return;
	}
	
	if(oForm.Group.value == 'GROUP CODE'){
		oForm.Group.value = '';
	}
	
	
	
	oForm.action = 'https://reservations.synxis.com/gc/rez.aspx';
	oForm.submit();
}


function redirecting(url){
	//alert(url);
	location.href = url;
	
}

function reservationGroupFocus(){
	var Group = xGetElementById("Group");
	if(Group.value == 'GROUP CODE'){
		Group.value = '';
	}
}

function reservationGroupBlur(){
	var Group = xGetElementById("Group");
	if(Group.value == ''){
		Group.value = 'GROUP CODE';
	}
}

function reservationDateFocus(){
	var spar_arrive = xGetElementById("spar_arrive");
	if(spar_arrive.value == 'MM/DD/YYYY'){
		spar_arrive.value = '';
	}
}

function reservationDateBlur(){
	var spar_arrive = xGetElementById("spar_arrive");
	if(spar_arrive.value == ''){
		spar_arrive.value = 'MM/DD/YYYY';
	}
}
function xGetElementById(e){
	if(typeof(e)!='string') return e;
	if(document.getElementById) e=document.getElementById(e);
	else if(document.all) e=document.all[e];
	else e=null;
	return e;
}


