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);
	if(myElem.style.display=='none'){
		myElem.style.display='block';
	}else{
		myElem.style.display='none';
	}
}
function sendToCol(where, which){	
	window.open (where +'floorplans/popups/'+which+'.php', 'GEORGIAN_FloorPlans', 'left=20,top=20,width=700,height=650,toolbar=0,resizable=0'); 	
}
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 == '' );
}

