
function popAllAirDates(string){
		//var SeriesID = "<valueof param="element.SeriesID"></valueof>";
		//var SeriesName = "<valueof param="element.SeriesName"></valueof>";
		var popup = window.open(string,"AllAirDates","width=592,height=566,buttons=yes,scrollbars=yes,location=no,menubar=no,resizable=yes,status=no,directories=no,toolbar=no");
		popup.focus();
			return false;
			}
 
      
function changeDate(selectDate){
		document.selectDate.submit();
			
	}
	
	function sortMe(sort) {
		var location = document.location;
		//var newURL = "";
		//alert(location)
		var v_location = document.URL;
		if(v_location.indexOf("sort=") == -1) {
			if(v_location.indexOf("?") == -1) this.location.href = location + "?sort=" + sort;
			else this.location.href = location + "&sort=" + sort;
		}
		else{
			sortLoc = v_location.indexOf("sort=");
			preSort = v_location.substr(0, sortLoc);
			postSort = "";
			if(v_location.length > preSort.length + 9) postSort = v_location.substr(sortLoc + 9);
			this.location.href = preSort + "sort=" + sort + postSort;
		}
	}			
