//div expander-----------------
var supported = (document.getElementById || document.all);
if (supported)
	{
	document.write("<style type='text/css'>");
	document.write(".linkbody {display:none}");
	document.write("</style>");

	var linkmax = 10;
	var linkshown = new Array();
	for (c=1;c<=linkmax;c++) {linkshown[c+1] = false;}
	}

function expand(c)
	{
	if (!supported) { alert('This link does not work in your browser.');return; }

	linkshown[c] = (linkshown[c]) ? false : true;
	current = (linkshown[c]) ? 'block' : 'none';
	if (document.getElementById)	{
		document.getElementById(c).style.display = current;
		}
	else if (document.all)
		{
		document.all[c].style.display = current;
		}
	}
	
function launch_popup(location,image) {
locationstring = "image.php?location=" + location + "&image=" + image;
window.open(locationstring,'mywindow','width=625,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no'); 
}

//form validation--------
function validateContactForm() {
var formID = document.getElementById('contactForm');
// check name
with(formID) {
 if (name.value == "") {
	alert ("Please enter a name!");
	name.focus();
	return false;
 }
 // check email address
 if ((email.value==null)||(email.value=="")){
	alert("Please Enter your Email Address.")
	email.focus();
	return false;
 }
 if (echeck(email.value)==false){
	email.value="";
	email.focus();
	return false;
 }
// if (subject.value == "") {
//	alert ("Please enter a subject for the contact form.");
//	subject.focus();
//	return false;
// }
 if (message.value == "") {
	alert ("Please enter a message for the contact form.");
	message.focus();
	return false;
 }
}
return true;
}