			function passCity(lnkObj, uid) {
				lnkObj.href = "/tools/geocode/1,,";
				lnkObj.href += document.getElementById("loc").value;
				lnkObj.href += ",00.html?";
				lnkObj.href += "res=showtimes";
			}
			
		function toggleMap(){
			if ( document.getElementById("map").style.display == "none"){
				document.getElementById("map").style.display = "block";
			}else{
				document.getElementById("map").style.display = "none";
			}
		}
		function toggleDiv(id){
			if ( document.getElementById(id).style.display == "none"){
				document.getElementById(id).style.display = "block";
			}else{
				document.getElementById(id).style.display = "none";
			}
		}
		
		function displayDiv(id){
			if ( document.getElementById(id).style.display == "none"){
				document.getElementById(id).style.display = "block";
			}else{
				document.getElementById(id).style.display = "block";
			}
		}
		
		function selectDate(theater){
	

				for (j = 0; j < movie.length; j++){
					for (k = 0; k < timestamp.length; k++){
						id = "id" + theater +  movie[j].toString()+  timestamp[k].toString();
						if(document.getElementById(id)){
							document.getElementById(id).style.display = "none";
						}						
					}
				}
				
			showDate(theater);
		}
		function showDate(theater){
			if (document.getElementById("date"+theater).value.toString() != "All"){

					for (j = 0; j < movie.length; j++){			
						id =  "id" + theater + movie[j].toString() +  document.getElementById("date"+theater).value.toString();
						if(document.getElementById(id)){
							document.getElementById(id).style.display = "block";
							document.getElementById(id).style.borderBottomColor = "white";
						}
					}
				
			}else{
					for (j = 0; j < movie.length; j++){
						for (k = 0; k < timestamp.length; k++){
							id = "id" + theater +  movie[j].toString()+  timestamp[k].toString();
							if(document.getElementById(id)){
								document.getElementById(id).style.display = "block";
								document.getElementById(id).style.borderBottomColor = "#b1c3d4";
							}						
						}
					}
				}
			}
		
		
	function getShowtimes(){
		//Create a boolean variable to check for a valid Internet Explorer instance.
		var xmlhttp = false;
		
		//Check if we are using IE.
		try {
			//If the Javascript version is greater than 5.
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			//If not, then use the older active x object.
			try {
				//If we are using MS.
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				//Else we must be using a non-IE browser.
				xmlhttp = false;
			}
		}
		
		//If we are using a non-IE browser, create a javascript instance of the object.
		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			xmlhttp = new XMLHttpRequest();
		}
		
		//Create a boolean variable to check for a valid Internet Explorer instance.
		var xmlhttp2 = false;
		
		//Check if we are using IE.
		try {
			//If the Javascript version is greater than 5.
			xmlhttp2 = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			//If not, then use the older active x object.
			try {
				//If we are using MS.
				xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (E) {
				//Else we must be using a non-IE browser.
				xmlhttp2 = false;
			}
		}
		
		//If we are using a non-IE browser, create a javascript instance of the object.
		if (!xmlhttp2 && typeof XMLHttpRequest != 'undefined') {
			xmlhttp2 = new XMLHttpRequest();
		}
		
		str = document.getElementById('county').value.toString();
		
		if (document.getElementById('radioTheaters').checked){
			xmlhttp.open("GET", "/movies/showtimes/county/theaters/1,," + str + ",00.html");
			
			xmlhttp.onreadystatechange = function() {
				if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
					document.getElementById("showtimeAreaAlpha").innerHTML = xmlhttp.responseText;
					document.getElementById("showtimeAreaAlpha").style.display = 'block';
					document.getElementById("showtimeAreaRating").innerHTML = '';
				}
			}
			xmlhttp.send(null);
			
		}else if (document.getElementById('radioMovies').checked){
			xmlhttp.open("GET", "/movies/showtimes/county/movies/1,," + str + ",00.html");
			
			xmlhttp.onreadystatechange = function() {
				if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
					document.getElementById("showtimeAreaAlpha").innerHTML = xmlhttp.responseText;
				}
			}
			xmlhttp.send(null);
			
			xmlhttp2.open("GET", "/movies/showtimes/county/rating/1,," + str + ",00.html");
			
			xmlhttp2.onreadystatechange = function() {
				if (xmlhttp2.readyState == 4 && xmlhttp2.status == 200) {
					document.getElementById("showtimeAreaRating").innerHTML = xmlhttp2.responseText;
				}
			}
			xmlhttp2.send(null);
		}
		

	}

	
	function getMovieShowtimes(mID){
		str = document.getElementById('countyM').value.toString();
		window.location = "http://deseretnews.com/movies/showtimes/county/1,5270," + str + "!" + mID + ",00.html";
	}