
	function MM_jumpMenu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}
	
	function confirmUpload(IsUpdate){
		var fileup = document.forms[0].fileup.value;
		var fileup_c = document.forms[0].fileup_companion.value;
		var r = true;
		var cmsg = 'Are you sure you want to uplaod the following items and create a new record in the system?';
		var amsg;
		
		if (IsUpdate=true) {
			cmsg = 'Are you sure you want to update the item?\nThis will overwrite the current item within the system.';
		}
			
		if (fileup_c = '') {
			if (false != confirm('Are you sure you want to publish this item with no companion document (Step 3)?')) {
				r = false;
			}
			
		}
		
		if (fileup != '' && false != r){
			
			if (confirm(cmsg+' ') && r != false) {
				r = true;
			}
		}
		else {
			amsg = 'Upload Failed.\nDon\'t forget to browse for a file.';
		}
		
		
		if (true != r) {
			alert(amsg);
		}
		
		return r;
	}
	
	function goBack(){
		if (confirm('Cancel updates and return to the previous page?')){
			history.back();	
		}
	}
	
	function checkIfNeedXF(obj){
		//If DocumentType = NC or DocumentType = CC ....
		if (obj.selectedIndex == 1 || obj.selectedIndex == 2){
			//Display "Subject Prefix" and "Course Number" inputs.
			document.getElementById('tr_sp').style.display='';
			document.getElementById('tr_cn').style.display='';

			//Set WI and CORE to "no" and disable them.
			document.getElementById('radio_core_0').checked = true;
			document.getElementById('radio_core_1').checked = false;
			document.getElementById('radio_wi_0').checked = true;
			document.getElementById('radio_wi_1').checked = false;
			document.getElementById('radio_core_0').disabled = true;
			document.getElementById('radio_core_1').disabled = true;
			document.getElementById('radio_wi_0').disabled = true;
			document.getElementById('radio_wi_1').disabled = true;
		}
		else {
			//Hide "Subject Prefix" and "Course Number" inputs.
			document.getElementById('tr_sp').style.display='none';
			document.getElementById('tr_cn').style.display='none';
			//Re-Enable WI and CORE radio buttons
			document.getElementById('radio_core_0').disabled = false;
			document.getElementById('radio_core_1').disabled = false;
			document.getElementById('radio_wi_0').disabled = false;
			document.getElementById('radio_wi_1').disabled = false;
		}
		
	}
