$(document).ready ( function () {
	if(url_el = $("input[name=custom_field_1]")) {
		url_el.val(HTTP_REFERER);
	}
});
