function myLoader(opt){
	
	switch (opt.selectedIndex){
		case 0:
			alert('please choose a category');
			break;
		case 1:
			$("#register").load("includes/register_prelaw.php");
			document.getElementById('mentor').innerHTML="";//Gets rid of irrelevant div content
			document.getElementById('register2').innerHTML="";
			break;
		case 2:
			$("#register").load("includes/register_normal.php");
			document.getElementById('mentor').innerHTML="";
			$("#register2").load("includes/register_normal2.php");
			break;
		case 3:
			$("#register").load("includes/register_normal.php");
			$("#mentor").load("includes/register_mentor.php");
			$("#register2").load("includes/register_normal2.php");
			break;
		
		}//end switch	
	
	};//end myLoader
	
	
function states(opt){
	var path = "states/university_dropdown.php?university_state=";
	var sweet = $(opt.options[opt.selectedIndex]).attr('state');
	path += sweet;
	$("#school").load(path);

}//end states

function countries(country){
	var path = "";
	
	if (country == 0){
		alert('Please select a country');
	} else if (country == 1){
		path = "../includes/resident_us.php";	
		$("#residence").load(path);
	} else {
		path = "../includes/resident_non_us.php";	
		$("#residence").load(path);
	}
	
}//end countries function