// Gets URL of the page that 'email this page' was clicked on. 		function getfilename(src,name,w,h) {	popUpWindow = window.open(src,name,"width="+w+",height="+h+",left=0,top=0,offset=0,scrollbars=no")	var currentlocation = document.location;	var stringlocation = currentlocation.toString();	document.cookie = 'thepage='+stringlocation+"; path=/"}/* BELOW: email-page.asp calls this function onload(). email-page.asppasses the cookie value of "thepage=" to 'NameOfCookie.' (Which stores the URL of the page that called 'email this page.')*/		function getCookie(NameOfCookie) { if (document.cookie.length > 0) { begin = document.cookie.indexOf(NameOfCookie+"="); if (begin != -1) { 	begin += NameOfCookie.length+1; 	end = document.cookie.indexOf(";", begin);	if (end == -1) end = document.cookie.length;	var success = unescape(document.cookie.substring(begin, end)); 		if (document.all) {			document.all["frmUpload"].thepage.value=success;			}				else {			document.getElementById("frmUpload").thepage.value=success;			}	}	} else {return null}}