function ffdChk(field) {	
	if (field == "name" && document.cform.name.value == "Name") {
		document.cform.name.value = "";
	}
	if (field == "email" && document.cform.email.value == "E-mail") {
		document.cform.email.value = "";
	}
	if (field == "message" && document.cform.message.value == "Please type your message here.") {
		document.cform.message.value = "";
	}
}



function checkMail (formName) {
	strIng = new String(formName.email.value);
	hits =  strIng.indexOf("@");
	if (hits < 1) {
		alert ("Unfortunately, we are not visionaries. \nTherefore, please enter a valid e-mail address if you want us to get back to you!");
		formName.email.value = prompt ("Let us help you out. Please enter your e-mail address below.");
		return false;
	}
}


function flipPop(image, num) {
	
	trgimg = image;
	
	if (image.charAt(image.length-1) == "b") {
		trgimg = image.substr(0, image.length-1);
	}
	
	newimg = "images/pop/pop_" + trgimg + "_" + num + ".gif";
	document[image].src = newimg;
}

function changeView(section) {
	if (document.getElementById(section).style.display == "block") {
		document.getElementById(section).style.display = "none";
	}
	else {
		document.getElementById(section).style.display = "block";
	}
	return;
}






