function getElement(elementId) {
	var element = null;
	
	if (document.getElementById) {
		// this is the way the standards work
		element = document.getElementById(elementId);
	} else if (document.all) {
		// this is the way old msie versions work
		element = document.all[elementId];
	} else if (document.layers) {
		// this is the way nn4 works
		element = document.layers[elementId];
	}	
	return element;	
}
function hideShow(element){
	var myElem = getElement(element);
	getElement('fitness_cont').style.display='none';
	getElement('club_cont').style.display='none';
	getElement('deck_cont').style.display='none';
	getElement('services_cont').style.display='none';
	myElem.style.display='block';
}
function checkEmail(email) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)){
		return true;
	}else{		
		return false;
	}
}
function isEmpty( value ) {
	return ( value == null || value == '' );
}
function contactUs(level){	
	window.open (level+'contact_us/index.php', 'Halstead_contact', 'left=20,top=20,width=550,height=600,toolbar=0,resizable=0,scrollbars=0'); 	
}





