function contactFromURL()
{
	//store URL from ? in var
	var link = document.location.search;
	
	//find and remove query in URL
	link = link.replace("?emailName=", "");
	link = unescape(link);
	
	//check to see if an element with the specified ID exists
	if (document.getElementById("contactForm")) {
		
		//display link var in text field
		document.contactForm.contactName.value = link;
		
		//pass link var to hidden field
		document.contactForm.recipient.value = link;
		
		//if no name was passed set recipient to null and hide text field and its container
		if (document.contactForm.contactName.value == "") {
			document.contactForm.recipient.value = "hz8epfqauv84zo38wf3h390edsgwkijlhsnm345h";
			document.getElementById("contactNameRow").parentNode.removeChild(document.getElementById("contactNameRow"));
		}
	}
}