/*
* change the url of the Go button in the "Submit Ad Materials" box based on
* the selected value in the drop-down list
*/

function setSubmitAdLink()
{
	var selOpt = 0;
	var selOptName;
	
	// get the currently selected list item
	selOpt = document.getElementById('submitAdList').selectedIndex;
	
	// get the dom id of the selected list item
	selOptName = "opt" + selOpt;
	
	// set the url of the Go button
	document.getElementById('submitAdLink').href = document.getElementById(selOptName).value;
}