function OnOrOff(object) 
{ 
	document.getElementById(object).style.display = (document.getElementById(object).style.display == 'block') ? 'none' : 'block';
	cvalue = (document.getElementById(object).style.display == 'block') ? 1 : 2;
		
	if(document.getElementById(object).style.display == 'block'){
		document.getElementById('g_link').innerHTML = '<img src="images/desc.gif" alt="" border="0">';
	}
	else
	{
		document.getElementById('g_link').innerHTML = '<img src="images/asc.gif" alt="" border="0">';
		document.search_form.college.value = '';
		document.search_form.school.value = '';
		document.search_form.department.value = '';
		document.search_form.class_standing.value = '';
		document.search_form.transfer.checked = false;
		document.search_form.app_dl_date.value = '';
		document.search_form.spec_gpa.value = '';
	}
}


function check_val()
{
	try
	{	if (document.search_form.citizen[0].checked)
		{
			document.search_form.state.disabled = false;
			document.search_form.county.disabled = false;
			document.search_form.city.disabled = false;
			document.search_form.high_school.disabled = false;
			
			document.search_form.state.style.backgroundColor = "#FFFFFF";
			document.search_form.county.style.backgroundColor = "#FFFFFF";
			document.search_form.city.style.backgroundColor = "#FFFFFF";
			document.search_form.high_school.style.backgroundColor = "#FFFFFF";
					
			document.getElementById('state_label').style.color = "#3E3A35";
			document.getElementById('county_label').style.color = "#3E3A35";
			document.getElementById('city_label').style.color = "#3E3A35";
			document.getElementById('school_label').style.color = "#3E3A35";
			
			document.getElementById('state_span').style.color = "red";
			document.getElementById('county_span').style.color = "red";
			document.getElementById('city_span').style.color = "red";
			document.getElementById('hs_span').style.color = "red";
			
			document.getElementById('state').style.backgroundColor = "#FFFFFF";
			document.getElementById('county').style.backgroundColor = "#FFFFFF";
			document.getElementById('city').style.backgroundColor = "#FFFFFF";
			document.getElementById('high_school').style.backgroundColor = "#FFFFFF";
		}
		else if(document.search_form.citizen[1].checked)
		{
			document.search_form.state.disabled = true;
			document.search_form.county.disabled = true;
			document.search_form.city.disabled = true;
			document.search_form.high_school.disabled = true;
			
			document.search_form.state.selectedIndex = 0;
			document.search_form.county.value = "";
			document.search_form.city.value = "";
			document.search_form.high_school.value = "";
			
			document.search_form.state.style.backgroundColor = "#EFEFEF";
			document.search_form.county.style.backgroundColor = "#EFEFEF";
			document.search_form.city.style.backgroundColor = "#EFEFEF";
			document.search_form.high_school.style.backgroundColor = "#EFEFEF";
			
			document.getElementById('state_label').style.color = "#C0C0C0";
			document.getElementById('county_label').style.color = "#C0C0C0";
			document.getElementById('city_label').style.color = "#C0C0C0";
			document.getElementById('school_label').style.color = "#C0C0C0";
			
			document.getElementById('state_span').style.color = "#C0C0C0";
			document.getElementById('county_span').style.color = "#C0C0C0";
			document.getElementById('city_span').style.color = "#C0C0C0";
			document.getElementById('hs_span').style.color = "#C0C0C0";
			
			document.getElementById('state').style.backgroundColor = "#FFFFFF";
			document.getElementById('county').style.backgroundColor = "#FFFFFF";
			document.getElementById('city').style.backgroundColor = "#FFFFFF";
			document.getElementById('high_school').style.backgroundColor = "#FFFFFF";
		}
	}
	catch(err){}
}

function clear_form()
{
	document.search_form.college.value = '';
	document.search_form.school.value = '';
	document.search_form.department.value = '';
	document.search_form.class_standing.value = '';
	document.search_form.transfer.checked = false;
	document.search_form.app_dl_date.value = '';
	document.search_form.search_string.value = '';
	document.search_form.spec_gpa.value = '';
}

function show_hide(object,action)
{
	if(action == 'show'){
		document.getElementById(object).style.display = 'block';
	}
	else if(action == 'hide'){
		document.getElementById(object).style.display = 'none';
	}
}

function close_popout()
{
	document.getElementById('pop_message').style.display = 'none';
	document.getElementById('pop_fade').style.display = 'none';
}