// Header
var header = "<table><tr><td align=center class=gcitopjobs><a href='http://tennessean.gannettonline.com/careerbuilder/index.html' target=_blank><img src='http://www.tennessean.com/topjobs/images/topjobs.jpg' border=0></a><hr size=1 color=000066 noshade></td></tr>";

var allHeader = "<html><head><LINK REL='STYLESHEET' TYPE='text/css' HREF='http://www.tennessean.com/styles/main.css'><title>Top Jobs</title></head><body><table width=250><tr><td align=center><a href='http://tennessean.gannettonline.com/careerbuilder/index.html' target=_blank><img src='http://www.tennessean.com/topjobs/images/topjobs.jpg' border=0></a><hr size=1 color=000066 noshade></td></tr>";

// All the postings
var allPostings = new Array("placeholder"
, Array('RDHNeeded for past faced dental clinic', '', 'RDH Needed for past faced dental clinic....', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X56K62YR88042SKD1&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('BILLING CLERK', '', 'BILLING CLERK 90 bed healthcare facility...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X7VT6J6KMG19Q9ZPY&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Drivers', '', 'Drivers Rogers Truck Brokerage Motorcycl...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X1G76X3QRQXST3XVK&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Sanitation SupervisorAn established', '', 'Sanitation Supervisor An established Nas...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X4HJ6W03KPX1QD0YP&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('PROGRAM', '', 'PROGRAM COORDINATOR For Sumner County ar...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X2J76ZM89RKL65D7S&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Administrative', '', 'Administrative Assistant Excellent oppor...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X1GX6GM6F7TPFVB03&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Med Lab Tech', '', 'Genetic Assays has FT/PT openings for da...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X1F865PL2BWWNQ1K6&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('COLLECTORNeeded for healthcare company in Brentwood', '', 'COLLECTOR Needed for healthcare company ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X65560QTB9ZQHLS8F&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('CLOPAY PLASTIC PRODUCTS', '', 'A GRIFFON COMPANY Clopay Plastic Product...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X1JL5VT533B21WQW7&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('SalesWE WANT YOUExpanding service', '', 'Sales WE WANT YOU Expanding service prov...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X1X1647V9965N6F1T&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('SalesImporter, roaster and distributor', '', 'Sales Importer, roaster and distributor ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X4KD62RVF8LNR8VTP&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Accounting Manager', '', 'Parman Lubricants is currently seeking a...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X6J16R83MXHJ6PLDM&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('The State of Tennessee Department', '', 'The State of Tennessee Department of Env...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X0F261JRH105VS0X1&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('SENIOR GEOTECHNICAL', '', 'SENIOR GEOTECHNICAL ENGINEER Engineering...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W1WS70NYYC78VP76Q&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('HOLLAND EMPLOYMENT', '', 'FOR WHIRLPOOL (LaVergne Facility) <...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X0RN63TXTBQ4JKPK8&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Need A Little Extra Spending Money $$$', '', 'Sears Repair Services has...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W0GZ60Q0MGJ4W9ZQM&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('RNF/T, Single specialty office-based surgery center', '', 'RN F/T, Single specialty office-based su...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W5K0791DV095243BD&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Clinical Research Assistant', '', 'Immediate opening in Baptist/Vanderbilt ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W3CG67T34P4ZK6K0K&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('RN\'S', '', 'Impact, enjoy a challenge, and contribut...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X0V65YGQ38CJN7RH3&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Resort Sales', '', 'Fairfield Resorts, Music City USA. Profe...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X2TB5XLNRTG6JPQZ4&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('MECHANIC/TECHNICALAUTOW Nationalease Truck Rental', '', 'MECHANIC/TECHNICAL AUTOW Nationalease Tr...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X1DL6KY3YH7PJ8HDZ&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('RN/LPN', 'Mt. Juliet Health Care', 'RN/LPN If you want to make a positive im...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X6696CR7MXRHHB5S4&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('ADMISSIONS COORDINATOR', 'Mt. Juliet Healthcare', 'ADMISSIONS COORDINATOR 100 Bed SNF seeks...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W10D5VY2X2C17VTGF&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('TANKWAGON DRIVER', '', 'Parman Lubricants has an immediate need ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X3FC6YMXCLS616C1Z&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('REFERRAL', '', 'COORDINATOR Established Primary Care Pra...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X26Q755T5QS9DVR9N&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('FITNESS SPECIALIST', '', 'Opportunity available in a corporate fit...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X0KX6WL766H2W1YC4&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Collections - Self Pay', '', 'F/T M-Th 11:30-8pm; Fr 9-5 + 1 Sat/month...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X46074HJLJJWTFM51&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Rehab Case Manager', '', 'Position available to handle insurance b...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X4V96JN4QX3RWBCYD&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('MORTGAGE LOAN', '', 'MORTGAGE LOAN OFFICERS Sign on bonus to ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W7BP6SPVCXXD3Z6TZ&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('MANAGEMENT--- We\'re Growing Again at ST Paul Travelers!!!', 'St. Paul Travelers', 'We\'re Growing Again at ST Paul Traveler...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W0SG64FQ0XV2X4DJY&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Customer ServiceParman Lubricants', '', 'Customer Service Parman Lubricants has a...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X5RY66JS6Q5CS0265&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('CUSTOMER', '', 'CUSTOMER SERVICE Excellent professional ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X7D271KH27377RP96&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Director of Career ServicesDynamic', '', 'Director of Career Services Dynamic. Res...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W7ST6JC25KSZ8T0FY&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Real Estate', '', 'Advertising Mgr. Rapidly growing special...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X20W6W5VBYZ9DZ0PM&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('SALESGrowing NY company in Nashville', '', 'SALES Growing NY company in Nashville, T...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X25W6NNQ6324LJPR3&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('SUNSET GRILLHiring Servers Door Staff', '', 'SUNSET GRILL Hiring Servers Door Staff. ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X66P714ZBHD59DS6M&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Adolescent Therapist', '', 'Cumberland Heights, Middle Tennessee\'s ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X8CT6Y97HTY4HX8Q2&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('RN, LPN, CMA Full time or part time', '', 'RN, LPN, CMA Full time or part time. Sma...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W3PM6G2NZNCP44C96&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Nursing Staff Needed', '', '3-11 Nursing Supervisor for a long-term ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W1BB6B7BNS19WPHG3&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Warehouse', '', 'Parman Lubricants has a full time wareho...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W3887505SK2D690S3&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Dental HygienistRDH needed at our', '', 'Dental Hygienist RDH needed at our Hermi...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X8DR691H6WW0BTPW7&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('UTILIQUESTProvides Utility Locating', '', 'UTILIQUEST Provides Utility Locating Ser...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W6JQ5Y7B0DGSNGHJR&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Quality Industries, Inc', '', 'A manufacturer located near Nashville ha...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X49K77HF916F16P6Y&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Clinical', '', 'Coordinator Excellent opportunity availa...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X5ZD6F4KVVP0RNLYM&lr=cbga_tnt&siteid=cbga_tnt060')
, Array('Executive Assistant Minimum of 3 yrs exp', '', 'Executive Assistant Minimum of 3 yrs exp...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X1T16B17NX06FX6YV&lr=cbga_tnt&siteid=cbga_tnt060')
);
// Footer

var footer = "<tr><td class=gcitopjobs><a href=\"http://tennessean.gannettonline.com/topjobs/detail/TNT-detail.html?topjobscount=99999\" target=\"topjobs\" onClick=\"window.open('','topjobs','directories=no,height=500,width=300,scrollbars=1,location=no,resizable=yes,screenx=15,screeny=15,toolbar=no,opener=orig')\">All Top Jobs</a></td></tr></table>";

var allFooter = "</table></body></html>";

///////////////////////////////////////////////////////////////////////////////////

function display_postings() {

	// Handle no postings situation

	if (allPostings.length == 1) {
		document.write(header);
	document.write("<tr><td><center><font class=gcitopjobs>Watch for Top Jobs coming to this space soon.</font></center><hr size=1 color=000066 noshade></td></tr>");
	document.write("</table>");
	return;
}


if (!FORM_DATA['topjobscount']) {
	if (!topjobs_count) {
		var displayCount = 5;
	}
	else {
		var displayCount = topjobs_count;
	}
}
else {
	var displayCount = FORM_DATA['topjobscount'];
}
// Create target array
var displayPostings;
var allPostingsCount = allPostings.length;
var i;
if (displayCount == 99999) {
	document.write(allHeader);
	// Remember array entry 0 is placeholder, so start at index 1
	for (i = 1; i < allPostingsCount; i++) {
		if (!allPostings[i][1]) {
			document.write("<tr><td><font class=gcitopjobs><a href='" + allPostings[i][3] + "'target=_blank><b>" + allPostings[i][0] + "</b><br>" +
				allPostings[i][2] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
		}
		else {
			document.write("<tr><td><font class=gcitopjobs><a href='" + allPostings[i][3] + "'target=_blank><b>" + allPostings[i][0] + "</b><br>" +
				allPostings[i][1] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
		}
	}
	document.write(allFooter);
}
else {
	// Delete array entry 0 ("placeholder")
	for (i = 0; i < allPostings.length - 1; i++)
		allPostings[i] = allPostings[i + 1];
		allPostingsCount--;

		document.write(header);
		displayPostings = new Array();
		while (displayCount > 0 && allPostingsCount > 0) {
			// Move a random entry from allPostings to displayPostings
			var targetIndex = Math.floor(Math.random() * allPostingsCount %
				allPostingsCount);
			displayPostings[displayPostings.length] = allPostings[targetIndex];

			for (i = targetIndex; i < allPostings.length - 1; i++)
				allPostings[i] = allPostings[i + 1];
			allPostingsCount--;
			displayCount--;
		}
		// Display Job Title only
		if (topjobs_option == 1) {
			for (i = 0; i < displayPostings.length; i++) {
				document.write("<tr><td><font class=gcitopjobs><a href='" +
					displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][0] +
					"</b><br></a></font><hr size=1 color=000066 noshade></td></tr>");
			}
		}
		// Display Employer Name only. If Employer name does not exist display Job Title
		else if (topjobs_option == 2) {
			for (i = 0; i < displayPostings.length; i++) {
				if (!displayPostings[i][1]) {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][0] +
						"</b><br></a></font><hr size=1 color=000066 noshade></td></tr>");
				}
				else {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][1] +
						"</b><br></a></font><hr size=1 color=000066 noshade></td></tr>");
				}
			}
		}
		// Display Description only
		else if (topjobs_option == 3) {
			for (i = 0; i < displayPostings.length; i++) {
				document.write("<tr><td><font class=gcitopjobs><a href='" +
					displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][2] +
					"</b><br></a></font><hr size=1 color=000066 noshade></td></tr>");
			}
		}
		// Display Job Title followed by Employer Name. If Employer name does not exist display Job Description
		else if (topjobs_option == 4) {
			for (i = 0; i < displayPostings.length; i++) {
				if (!displayPostings[i][1]) {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][0] + "</b><br>" +
						displayPostings[i][2] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
				else {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][0] + "</b><br>" +
						displayPostings[i][1] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
			}
		}
		// Display Job Title followed by Job Description
		else if (topjobs_option == 5) {
			for (i = 0; i < displayPostings.length; i++) {
				document.write("<tr><td><font class=gcitopjobs><a href='" +
					displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][0] + "</b><br>" +
					displayPostings[i][2] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
			}
		}
		// Display Employer Name followed by Job Title. If Employer name does not exist display Job Description
		else if (topjobs_option == 6) {
			for (i = 0; i < displayPostings.length; i++) {
				if (!displayPostings[i][1]) {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][2] + "</b><br>" +
						displayPostings[i][0] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
				else {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][1] + "</b><br>" +
						displayPostings[i][0] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
			}
		}
		// Display Employer Name followed by Job Description. If Employer name does not exist display Job Title
		else if (topjobs_option == 7) {
			for (i = 0; i < displayPostings.length; i++) {
				if (!displayPostings[i][1]) {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][0] + "</b><br>" +
						displayPostings[i][2] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
				else {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][1] + "</b><br>" +
						displayPostings[i][2] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
			}
		}
		// Display Job Description followed by Job Title
		else if (topjobs_option == 8) {
			for (i = 0; i < displayPostings.length; i++) {
				document.write("<tr><td><font class=gcitopjobs><a href='" +
					displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][2] + "</b><br>" +
					displayPostings[i][0] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
			}
		}
		// Display Job Description followed by Employer Name. If Employer name does not exist display Job Title
		else if (topjobs_option == 9) {
			for (i = 0; i < displayPostings.length; i++) {
				if (!displayPostings[i][1]) {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][2] + "</b><br>" +
						displayPostings[i][0] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
				else {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][2] + "</b><br>" +
						displayPostings[i][1] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
			}
		}
		// Default to Job Title followed by Employer Name. If Employer name does not exist display Job Description
		else {
			for (i = 0; i < displayPostings.length; i++) {
				if (!displayPostings[i][1]) {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][0] + "</b><br>" +
						displayPostings[i][2] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
				else {
					document.write("<tr><td><font class=gcitopjobs><a href='" +
						displayPostings[i][3] + "' target=_blank><b>" + displayPostings[i][0] + "</b><br>" +
						displayPostings[i][1] + "</a></font><hr size=1 color=000066 noshade></td></tr>");
				}
			}
		}
		document.write(footer);
	}
}


function createRequestObject() {
	FORM_DATA = new Object();
	// The Object (Array) where our data will be stored.
	separator = ',';
	// The token used to separate data from multi-select inputs
	query = '' + this.location;
	qu = query
	// Get the current URL so we can parse out the data.
	// Adding a null-string '' forces an implicit type cast
	// from property to string, for NS2 compatibility.
	query = query.substring((query.indexOf('?')) + 1);
	// Keep everything after the question mark '?'.
	if (query.length < 1) { return false; } // Perhaps we got some bad data?
	keypairs = new Object();
	numKP = 1;
	// Local vars used to store and keep track of name/value pairs
	// as we parse them back into a usable form.
	while (query.indexOf('&') > -1) {
		keypairs[numKP] = query.substring(0,query.indexOf('&'));
		query = query.substring((query.indexOf('&')) + 1);
		numKP++;
		// Split the query string at each '&', storing the left-hand side
		// of the split in a new keypairs[] holder, and chopping the query
		// so that it gets the value of the right-hand string.
	}
	keypairs[numKP] = query;
	// Store what's left in the query string as the final keypairs[] data.
	for (i in keypairs) {
		keyName = keypairs[i].substring(0,keypairs[i].indexOf('='));
		// Left of '=' is name.
		keyValue = keypairs[i].substring((keypairs[i].indexOf('=')) + 1);
		// Right of '=' is value.
		while (keyValue.indexOf('+') > -1) {
			keyValue = keyValue.substring(0,keyValue.indexOf('+')) + ' ' + keyValue.substring(keyValue.indexOf('+') + 1);
			// Replace each '+' in data string with a space.
		}
		keyValue = unescape(keyValue);
		// Unescape non-alphanumerics
		if (FORM_DATA[keyName]) {
			FORM_DATA[keyName] = FORM_DATA[keyName] + separator + keyValue;
			//document.write('The value of ' +keyName+ ' is:'+FORM_DATA[keyName]+'<br>');
			// Object already exists, it is probably a multi-select input,
			// and we need to generate a separator-delimited string
			// by appending to what we already have stored.
		}
		else {
			FORM_DATA[keyName] = keyValue;
			//document.write('The value of ' +keyName+ ' is:'+FORM_DATA[keyName]+'<br>');
			// Normal case: name gets value.
		}
	}
	return FORM_DATA;
}


// MAINLINE

FORM_DATA = createRequestObject();
// This is the array/object containing the GET data.
// Retrieve information with 'FORM_DATA [ key ] = value'.

// Display jobs 
display_postings();
