function textFill() {
	// Create a global array that will hold the value of each variable,
	// keyed by the name of the variable.
	var GETDATA = new Array();
	
	// Get the string that follows the "?" in the window's location.
	var sGet = unescape(window.location.search);	// decode URL-encoded string
	if (sGet) // if has a value...
	{
	// Drop the leading "?"
	sGet = sGet.substr(1);
	
	// Generate a string array of the name value pairs.
	// Each array element will have the form "foo=bar"
	var sNVPairs = sGet.split("&");
	
	// Now, for each name-value pair, we need to extract
	// the name and value.
	for (var i = 0; i < sNVPairs.length; i++)
	{
	// So, sNVPairs[i] contains the current element...
	// Split it at the equals sign.
	var sNV = sNVPairs[i].split("=");
	
	// Assign the pair to the GETDATA array.
	var sName = sNV[0];
	var sValue = sNV[1];
	GETDATA[sName] = sValue;
	}
	}
	
	// Pass variables to fields.
	if (GETDATA["subject"] != undefined)
	// Just in case we forgot to pass something to subject...
	document.forms[0].subject.value = GETDATA["subject"]; // or document.forms.FORMNAME.subject
	if (GETDATA["message"] != undefined)
	// Just in case we forgot to pass something to message...
	document.forms[0].message.value = GETDATA["message"];
}
