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("contactName")) {
		
		//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 = "rnbpho9t0yccd0v4ugpva4x4icafz9o1j521gtdv";
			document.getElementById("contactNameRow").parentNode.removeChild(document.getElementById("contactNameRow"));
		}
	}
}