function pre_jump()
{
		var state = document.getElementById('state').value;
		var country = document.getElementById('country').value
		
		
		if(country == 'United States'){
			var jump_var = state;
		}else{
			var jump_var = country;
			}
	jump(jump_var);
}


function jump(value){
	if(location.href.indexOf("#") < 0)
		window.location = location.href +"#"+value;
	else{
		var len = location.href.length;
		//var value_len = value.length;
		//var c = location.href.substring(len-value_len, len);

//check to see if current redirect is the top of the page, since it may be a different length.
		var start_loc = location.href.indexOf("#");
		
		var c = location.href.substring(start_loc+1, len);
		
		if(location.href.substring(len-3, len) == 'top') {
			location.href = location.href.replace('top', value);
		} else {
			location.href = location.href.replace(c, value);
		}
		window.location = location.href

	}

}

function country_change()
{
	
	if(document.getElementById('country').value != 'United States'){
		document.getElementById('state').style.visibility = 'hidden';
	}else{
		document.getElementById('state').style.visibility = 'visible';
	}
		
}


