/* Break the browser window out of frames */
	if (parent.frames.length > 0)
		{
			parent.location.href = location.href;
		}

/* Prompt user for confirmation if pressing the reset button */
	function Reset() {
		return confirmReset = confirm("Are you sure you want to clear the values in this form?")
		}


// JavaScript form validating function. Code should pass for use in valid XHTML Transitional/Strict or better applications
	function isValid() {
		var x = document.forms[0].email.value;
			var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
				if (filter.test(x))
					{
						// correct e-mail address
						// alert('YES! Correct email address');
						return true;
					}
				else {
					// incorrect e-mail address
					alert('Please enter a valid e-mail address');
					return false;
					}		
		}
