// Micaceous Cookware by Brian Grossnickle
// http://www.micaceouscookware.com/
// Author: Eric Grossnickle <eric@ericgrossnickle.com>

function isEmpty (strng, message) {
	var error = "";
	if (strng == "") {
		error = message;
	}
	return error;
}

function checkForm (theForm) {
    var why = "";
    why += isEmpty(theForm.name.value, "Enter your name.\n");
	why += isEmpty(theForm.email.value, "Enter your e-mail address.\n");
    why += isEmpty(theForm.comments.value, "Enter some comments.\n");
	
	if (why != "") {
       alert(why);
       return false;
    }
	return true;
}

function pop (gid) { 
	window.open("/image/"+gid+"/", "image", "scrollbars=no,resizable=no,toolbar=no,status=no,menubar=no,location=no,directories=no,height=578,width=750");
	return false;
}