function determineMailTo(objectName){
	var selectList = document.getElementById(objectName);
	var selIndex = selectList.selectedIndex;
    var selValue = selectList[selIndex].value;
    
	var WestCoast = false;
	var WestCentral = false;
	var Midwest = false;
	var Southeast = false;
	var Northeast = false;
	var LatinAmerica = false;

	
	var correctEmail = '' ; 
	var split = selValue.split('-');
	var st = split[1].toLowerCase();
	
	if (split[0].toLowerCase() == 'usa'){
		if (st == 'ak' || st == 'or' || st == 'wa' || st == 'ca' || st == 'az' || st == 'nv' || st == 'nv' || st == 'gu')
		{
			WestCoast = true;				
		}
		if (st == 'id' || st == 'mt' || st == 'nd' || st == 'sd' || st == 'wy' || st == 'ne' ||
			st == 'ks' || st == 'ia' || st == 'mo' || st == 'ut' || st == 'co' || st == 'nm' ||
			st == 'ok' || st == 'tx' || st == 'ar' || st == 'la')
		{
			WestCentral = true;				
		}
		if (st == 'mn' || st == 'wi' || st == 'il' || st == 'in' || st == 'mi' )
		{
			Midwest = true;				
		}
		if (st == 'oh' || st == 'ky' || st == 'tn' || st == 'nc' || st == 'sc' || st == 'vi' ||
			st == 'ms' || st == 'al' || st == 'ga' || st == 'fl' || st == 'pr')
		{
			Southeast = true;				
		}
		if (st == 'me' || st == 'nh' || st == 'vt' || st == 'ny' || st == 'ma' || st == 'ri' ||
			st == 'ct' || st == 'nj' || st == 'pa' || st == 'md' || st == 'de' || st == 'wv' ||
			st == 'va' || st == 'dc')
		{
			Northeast = true;				
		}
		
	}
	if (split[0].toLowerCase() == 'can'){		
		if (st == 'yt' || st == 'bc')
		{
			WestCoast = true;				
		}
		if (st == 'ab' || st == 'sk' || st == 'mb' || st == 'nu' || st== 'nt')
		{
			WestCentral = true;				
		}
		if (st == 'on' )
		{
			Midwest = true;				
		}		
		if (st == 'qc' || st == 'nl' || st == 'vt' || st == 'pe' || st == 'ns' || st == 'nb')
		{
			Northeast = true;				
		}
	}
	if (split[0].toLowerCase() == 'mex'){
		LatinAmerica = true;		
	}
	
	
	if (WestCoast == true){
		correctEmail = 'astratton@hamiltonengineering.com';
	}
	if (WestCentral == true){
		correctEmail = 'ttowry@hamiltonengineering.com';
	}
	if (Midwest == true){
		correctEmail = 'eallmacher@hamiltonengineering.com';	
	}
	if (Southeast == true){
		correctEmail = 'rwestley@hamiltonengineering.com'; 
	}
	if (Northeast == true){
		correctEmail = 'keni@hamiltonengineering.com';	
	}
	if (LatinAmerica == true){
		correctEmail = 'eespinosa@hamiltonengineering.com';	
	}	
	
	document.getElementById('toEmail').value = correctEmail;
}