
	/**
	Sets the display style to "block" for the div that is passed
	**/
	function showDiv(divName) { 
		if (document.getElementById(divName) && 
			document.getElementById(divName).className == 'hideBlock') { 
				
			document.getElementById(divName).className = 'showBlock'; 
		} 
	}

	// Sets the display style to none for the div that is passed
	function hideDiv(divName) { 
		if (document.getElementById(divName) && 
			document.getElementById(divName).className == 'showBlock') { 
			document.getElementById(divName).className = 'hideBlock'; 
		} 	
	} 
	
	/*
	Handles the answer for the currently employed question. 
	*/
	function handleSeekingNow(selObj) { 
		if (selObj[selObj.selectedIndex].value == 'No') {
			showDiv('exlpainNotSeeking'); 
			document.getElementById('whyNotSeeking').focus();
		} 
		else
			hideDiv('exlpainNotSeeking'); 
	} 

	function checkForm() { 
		var ce = document.getElementById('isEmployed'); 
		if (ce && ce[ce.selectedIndex].value == 'No') { 
			var sn = document.getElementById('seekingNow'); 
			if (sn && sn[sn.selectedIndex].value == 'No')
				showDiv('exlpainNotSeeking'); 
		} 
			
	} 
	
	function chosenEmploy (selObj) {
		if (selObj[selObj.selectedIndex].value == 'No') 
			document.location = 'CareerSurvey.php?employed=No'; 
		else if (selObj[selObj.selectedIndex].value == 'Yes, Full-Time')
			document.location = 'CareerSurvey.php?employed=Yes, Full-Time'; 
		else if (selObj[selObj.selectedIndex].value == 'Yes, Part-Time')
			document.location = 'CareerSurvey.php?employed=Yes, Part-Time'; 
		else 
			document.location = 'CareerSurvey.php'; 
		
	} 