titles = new Array();
terms = new Array();

function getAcctValues() {

	function findTitles() {
		titles[0]='You are Creating a Former Student Account.';
		titles[1]='You are Creating an Employer Account.';
	}
	function findTerms() {
		terms[0]="Terms and Conditions (Former Student) Please read the following information carefully. It contains the Terms and Conditions governing your access to and use of the AggieCareers Web Site. If you do not accept these Terms and Conditions or you do not meet or comply with their provisions, you  may not use the Site. If you are an employer using the Site, you may have entered into a Service Agreement with AggieCareers, in which case these Terms and Conditions, including the Exhibits attached hereto, are part of and incorporated into that Service Agreement. These Terms and Conditions are effective as of December 1, 2007. By agreeing to these Terms and Conditions you are also agreeing to abide by the Aggie Code of Honor.";
		terms[1]="Terms and Conditions (Employer) Please read the following information carefully. It contains the Terms and Conditions governing your access to and use of the AggieCareers Web Site. If you do not accept these Terms and Conditions or you do not meet or comply with their provisions, you  may not use the Site. If you are an employer using the Site, you may have entered into a Service Agreement with AggieCareers, in which case these Terms and Conditions, including the Exhibits attached hereto, are part of and incorporated into that Service Agreement. These Terms and Conditions are effective as of December 1, 2007.";
		
	}
	findTitles();
	findTerms();
}

function changeSelect() {
	var acctSwitcher = document.getElementById("f_type");
	// Get ID of Title DIV
	var titleHolder = document.getElementById("typeTitle");
	// Assign it a value based on selection
	titleHolder.innerHTML=titles[acctSwitcher.selectedIndex];
	// Get ID of Terms DIV
	var termsHolder = document.getElementById("typeTC");
	// Assign it a value based on selection
	termsHolder.innerHTML=terms[acctSwitcher.selectedIndex];
	// when the user clicks one of the select values
	acctSwitcher.onchange = function() {
		switchValues();
	}
}
function switchValues() {
	var acctSwitcher=document.getElementById("f_type");
	// Get ID of Title DIV
	var titleHolder = document.getElementById("typeTitle");
	// Assign it a value based on selection
	titleHolder.firstChild.nodeValue=titles[acctSwitcher.selectedIndex];
	// Get ID of Terms DIV
	var termsHolder = document.getElementById("typeTC");
	// Assign it a value based on selection
	termsHolder.firstChild.nodeValue=terms[acctSwitcher.selectedIndex];
}
$(document).ready(function(){
	getAcctValues();
  	changeSelect();
});