/**
 *  This function should be written a bit better... 
 *  it only works for the newsletter signup, but should be made general enough
 *  to be of use for all forms with required information
*/
function checkRequiredField(formobject){
	var nlname = formobject.textfield.value;
	var nlemail = formobject.textfield2.value;
	var nlzip = formobject.zip.value;
	// just making sure nothing is null... CF will handle validation on the backend
	if(nlname == ""){
		alert("Please enter your name");
		return false;
	} else if(nlemail == ""){
		alert("Please enter an email address");
		return false;
	} else if(nlzip == ""){
		alert("Please enter your zip code");
		return false;
	} else {
		return true;
	}
}

function showMap(l,wn,w,h){
	var href_location = l;
	var window_name = wn;
	var window_width = w;
	var window_height = h;
	window.open(href_location,window_name,'width='+window_width+',height='+window_height);
}
