/**
 * Records the request url in the form
 * @param requestForm The form submitted with a request.
 * @param fieldName The name of the field to populate with the current web site location
 */
function recordRequestUrl(requestForm, fieldName) {
	var existingValue = requestForm.elements[fieldName].value;
	if(existingValue == null || existingValue.length == 0) {
		requestForm.elements[fieldName].value = window.location.pathname + window.location.search;
	}
}