// 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 checkFields(f){
		var regex = /^\s*$/i;
		for(var i=0; i<f.elements.length; i++){
			if(regex.test(f.elements[i].value)){
				alert("Please fill in all fields (*)");
				f.elements[i].focus();
			return false;
			}
		}
	return true;
	}

// Funtion to open links with rel="external" specified in a new browser window
	function externalLinks() {
		if (!document.getElementsByTagName) return;
		var anchors = document.getElementsByTagName("a");
		for (var i=0; i<anchors.length; i++) {
			var anchor = anchors[i];
			if (anchor.getAttribute("href") &&
			anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
		}
	}

// Function to allow multiple onload functions to be called	
	window.onload = function () {
		externalLinks();
	}