// Header
// SiteCatalyst variable
var Prop10 = "Top_Job";
// Set defaults
if (!topjobs_tablewidth) {
	var tableWidth = 150;
}
else {
	var tableWidth = topjobs_tablewidth;
}
if (!topjobs_tableborder) {
var tableBorder = 1;
}
else {
	var tableBorder = topjobs_tableborder;
}
if (!topjobs_tablecellpadding) {
	var tableCellPadding = 1;
}
else {
	var tableCellPadding = topjobs_tablecellpadding;
}
if (!topjobs_tablecellspacing) {
	var tableCellSpacing = 0;
}
else {
	var tableCellSpacing = topjobs_tablecellspacing;
}
if (!topjobs_tablebgcolor) {
	var tableBgcolor = "#ffffff";
}
else {
	var tableBgcolor = topjobs_tablebgcolor;
}

var header = "<LINK REL='STYLESHEET' TYPE='text/css' HREF='http://www.news-leader.com/scripts/topjobs.css'><table border="+tableBorder+" cellpadding="+tableCellPadding+" cellspacing="+tableCellSpacing+" bgcolor="+tableBgcolor+" width="+tableWidth+"><tr><td align=center><table><tr><td align=center class=gcitopjobs><a href='http://ozarksnow.gannettonline.com/careerbuilder/index.html' target=_blank><img src='http://www.news-leader.com/images/topjobs.gif' border=0></a><hr size=1 color=000066 noshade></td></tr>";

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

// All the postings
var allPostings = new Array("placeholder"
, Array('Christian Health Care Hospic', '', 'Christian Health Care Hospice is now acc...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F26878PFQQWF791V3&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Christian Health Care', '', 'Christian Health Care of Nixa 417-725-17...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F7W56YF6MMJQ1K72X&lr=cbga_snl&siteid=cbcg_snl060')
, Array('LAKE OF THE OZARKS CV/ICU RN', '', 'LAKE OF THE OZARKS CV/ICU RN $6,000 Sign...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I4FC6QBBHH7K4YX1Q&lr=cbga_snl&siteid=cbcg_snl060')
, Array('GRANTS CLERK: Excel & Word processing proficiency required', '', 'GRANTS CLERK: Excel & Word processing pr...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X2PX65THWJ43H0GGJ&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Reimbursement Specialist for multi-specialty office, FT', '', 'Reimbursement Specialist for multi-speci...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3G32C6M3Z0CWG18F7B&lr=cbga_snl&siteid=cbcg_snl060')
, Array('$9.50 + Bonus For eve/Sundays', '', '$9.50 + Bonus For eve/Sundays. All shift...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3H4BV63RRZBHBM5WWP&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Hospice Care of Springfiel', '', 'Hospice Care of Springfield is currently...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I2W76GQ5YZ10HKSHF&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Vault Setter', '', 'Vault Setter. Detail oriented person nee...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F7TC5ZLP3166Z0WQ4&lr=cbga_snl&siteid=cbcg_snl060')
, Array('ACCOUNTING ASSISTANT', '', 'ACCOUNTING ASSISTANT Strong in Excel/ de...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F5CC5XH2C7X5HQYV7&lr=cbga_snl&siteid=cbcg_snl060')
, Array('PT Office Assistant: 8:30a-5:00p MWF and 1/2 day TTh', '', 'PT Office Assistant: 8:30a-5:00p MWF and...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F4NB6SM57QCK482D0&lr=cbga_snl&siteid=cbcg_snl060')
, Array('PAYROLL TECH', '', 'PAYROLL TECH Full time position availabl...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F3MD6DT0HL78P9KJV&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Paralegal/Legal Assistant Instructor', '', 'Paralegal/Legal Assistant Instructor Imm...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3G27F6TRDRSZ4Q65XW&lr=cbga_snl&siteid=cbcg_snl060')
, Array('NEW CLINIC', '', 'NEW CLINIC ---------------------------- ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I4P36Y1JFG4HBB7RJ&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Information Services Manager Miracle', '', 'Information Services Manager Miracle Rec...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I43Y6G9MZ0CBJQX4W&lr=cbga_snl&siteid=cbcg_snl060')
, Array('COMMODITY BUYER', '', 'COMMODITY BUYER Loren Cook Company, an i...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I1BX64JYPVX9N13DM&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Donor Development/Family Liaison', '', 'Donor Development/ Family Liaison Be par...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I1PH713RHG8GG86XX&lr=cbga_snl&siteid=cbcg_snl060')
, Array('WE\'RE GROWING! Seeking self-motivated', '', 'WE\'RE GROWING! Seeking self-motivated i...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3G7XG6XJDXFBLHP87C&lr=cbga_snl&siteid=cbcg_snl060')
, Array('NEED COMMERCIAL LINES INSURANCE EXPERIENCED AND MULTILINE', '', 'NEED COMMERCIAL LINES INSURANCE EXPERIEN...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I53962RYQBZB2FBSC&lr=cbga_snl&siteid=cbcg_snl060')
, Array('MasterCuts offers a full range of services to walk-in clients', '', 'MasterCuts offers a full range of servic...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3G2GD75QWHHQ1D679P&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Positronic Industries, Inc', '', 'Positronic Industries, Inc., a leading m...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F8885WXFTYJ5H809F&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Join our outstanding Physical Therapy', '', 'Join our outstanding Physical Therapy te...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3W3X162MK7RZJGW58B&lr=cbga_snl&siteid=cbcg_snl060')
, Array('New starting wages! Benefit package', '', 'New starting wages! Benefit package avai...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I6RL71JW6K9K5YX8F&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Journeyman lineman not electrician', '', 'Journeyman lineman not electrician, with...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3H3M378HZ1VFYBM4NC&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Customer Service/Software Support', '', 'Customer Service/Software Support: Apply...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I26Z6W9QDQ909V3BX&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Cashier Trainee Fast & Friendly', '', 'Cashier Trainee Fast & Friendly needs re...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3G8D96K83MV80VTPPC&lr=cbga_snl&siteid=cbcg_snl060')
, Array('More Money More Benefits Great', '', 'More Money More Benefits Great Jobs Grea...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F35878WTL2TNY8KYK&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Mediacom Is accepting applications', '', 'Mediacom Is accepting applications for: ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I0XZ6WLDSC8BQV61Y&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Ferrell-Duncan Clinic A large', '', 'Ferrell-Duncan Clinic A large, rapidly e...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I5KJ70CW7T39K0V8W&lr=cbga_snl&siteid=cbcg_snl060')
, Array('You Can Expand Your Horizons Begin', '', 'You Can Expand Your Horizons Begin a rew...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3H58W633HY8XSPKL2G&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Do You Stand Out', '', 'Do You Stand Out? If you\'re a tenacious...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I1V67257CF3FXB7M1&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Cox Monett - PHYSICAL THERAPIST', '', 'Cox Monett - PHYSICAL THERAPIST $7,500 s...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F54C5Y7NKMZL09Q6T&lr=cbga_snl&siteid=cbcg_snl060')
, Array('CoxHealth Center Cassville - Radiology', '', 'CoxHealth Center Cassville - Radiology T...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F61S6J7PYJ353LZP1&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Kansas City Power & Light Company has two J', '', 'Kansas City Power & Light Company has tw...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3H8316TYCX9H7ZKKLD&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Food Service Manager Must be certified as Dietary Manager', '', 'Food Service Manager Must be certified a...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I291677W98MM8LGRY&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Sales Professionals Slumberland', '', 'Sales Professionals Slumberland Furnitur...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F2S46V6M160BDSYBL&lr=cbga_snl&siteid=cbcg_snl060')
, Array('We have several openings for office', '', 'We have several openings for office pers...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I3206YF6QRBK452NS&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Accounts Receivable Opportunity', '', 'Accounts Receivable Opportunity in team ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F30V5YBX9P1RYSF0P&lr=cbga_snl&siteid=cbcg_snl060')
, Array('TELLERS', '', 'TELLERS Experience Required Available to...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F82K75T5X4SR5Q2TV&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Pharmacist Why Osco Drug', '', 'Pharmacist Why Osco Drug? Because you be...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3G8B974XJY3WG43MMC&lr=cbga_snl&siteid=cbcg_snl060')
, Array('KARMAK, Inc', '', 'KARMAK, Inc. SENIOR DEVELOPER Minimum of...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I5JN6BJXKZLH125K5&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Putman Orthopaedic Center: Busy', '', 'Putman Orthopaedic Center: Busy orthopae...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3G8CG60Q2KWZ40BVLF&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Boone Hospital Center JOB FAIR Tuesday, Sept', '', 'Boone Hospital Center JOB FAIR Tuesday, ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F0SF71JL0W0KGNMBV&lr=cbga_snl&siteid=cbcg_snl060')
, Array('LEGAL SECRETARY', '', 'LEGAL SECRETARY Candidate should have de...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3I75D63593HZNF08LB&lr=cbga_snl&siteid=cbcg_snl060')
, Array('PART TIME WAREHOUSE employee', '', 'PART TIME WAREHOUSE employee. Heavy lift...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F8BV6Y2GDT8FX2ZRS&lr=cbga_snl&siteid=cbcg_snl060')
, Array('CASE MANAGER', '', 'CASE MANAGER for workers\' compensation ...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3F0QM68YRQD6TJ5T9R&lr=cbga_snl&siteid=cbcg_snl060')
, Array('Legal Secretary Immediate position', '', 'Legal Secretary Immediate position avail...', 'http://www.careerbuilder.com/jobseeker/jobs/JobDetails.aspx?Job_DID=J3X1C56502BX2M2ZYKN&lr=cbga_snl&siteid=cbcg_snl060')
);
// Footer

var footer = "<tr><td class=gcitopjobs><a href=\"http://ozarksnow.gannettonline.com/topjobs/detail/SNL-detail-v1.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><tr><td><center><a href=\"http://ozarksnow.gannettonline.com/ozarksnow/content/AboutTopJobs.html\" target=_blank><font class=gcitopjobs><b>About Top Jobs</b></font></a></center></td></tr></table></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></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();
