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 checkEmail(email) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)){
		return true;
	}else{		
		return false;
	}
}

function emailFriend(where){	
	window.open (where +'forward.php', 'AreYouRomanticEmailPopup', 'left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1'); 	
}