/* Break the browser window out of frames */

if (parent.frames.length > 0)
	{
		parent.location.href = location.href;
	}
	
/* Warning message when clearing form values */
function Reset(){
	return confirmReset = confirm("Are you sure you want to clear the values in this form?")
	}

/* Check contact form for valid input */
function checkFields() {
	missinginfo = "";
		if (document.getElementById('name').value == "") {
			missinginfo += "\n     -  Name";
		}
		
		if ((document.getElementById('email').value == "") || 
			(document.getElementById('email').value.indexOf('@') == -1) || 
			(document.getElementById('email').value.indexOf('.') == -1)) {
			missinginfo += "\n     -  E-mail address";
		}

		if (missinginfo != "") {
			missinginfo ="You failed to correctly fill in your:\n" +
			missinginfo + "\n_____________________________" + "\nPlease re-enter and submit again!";
		alert(missinginfo);
	return false;
	}
	else return true;
	}