		self.name="";
		function MakeArray(n) 
		{
		    this.length = n;
		    return this;
		}
		var monthNames = new MakeArray(12);
		monthNames[1] = "January";
		monthNames[2] = "February";
		monthNames[3] = "March";
		monthNames[4] = "April";
		monthNames[5] = "May";
		monthNames[6] = "June";
		monthNames[7] = "July";
		monthNames[8] = "August";
		monthNames[9] = "September";
		monthNames[10] = "October";
		monthNames[11] = "November";
		monthNames[12] = "December";
		
		function customDateString() 
		{
		    var currentDate = new Date();
		    var theMonth = monthNames[currentDate.getMonth() + 1];
		    var msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4));
			if (msie4) 
			{
		    	var theYear = currentDate.getYear();
			}
			else 
			{
			    var theYear = currentDate.getYear() +1900;
			}
			return theMonth + " | " + currentDate.getDate() + " | " + theYear;
		}
		
		function deactivate() 
		{
			document.vasForm.time_frame.disabled = 0;
			document.vasForm.from_date_month.disabled = 1;
			document.vasForm.from_date_day.disabled = 1;
			document.vasForm.from_date_year.disabled = 1;
			document.vasForm.to_date_month.disabled = 1;
			document.vasForm.to_date_day.disabled = 1;
			document.vasForm.to_date_year.disabled = 1;
		}
		
		function deactivate2() 
		{
			document.vasForm.time_frame.disabled = 1;
			document.vasForm.from_date_month.disabled = 0;
			document.vasForm.from_date_day.disabled = 0;
			document.vasForm.from_date_year.disabled = 0;
			document.vasForm.to_date_month.disabled = 0;
			document.vasForm.to_date_day.disabled = 0;
			document.vasForm.to_date_year.disabled = 0;
		}
		
		function searchForm(driver,situation,time_frame,from_month,from_day,from_year,to_month,to_day,to_year,time_of_day,track)
		{
			query1 = "";
			query2 = "";
			query3 = "";
			query4 = "";
			query5 = "";
			query6 = "";
			query7 = "";
			driver_sel = "";
			situation_sel = "";
			timestatus_sel = "";
			race_sel = "";
			track_sel = "";
			var fromday = from_day.length;
			var today = to_day.length;
			if (fromday == 1)
			{
				from_day = "0"+from_day;
			}
			if (today == 1)
			{
				to_day = "0"+to_day;
			}
			var pattern = /\s/g;	
			
			var now = new Date();
			var year = now.getFullYear();
			query1 = driver;
			query1 = query1.replace(pattern, "%20");
			if (query1 == "*")
			{
				driver_sel = "All%20Drivers";
			}
			query2 = situation;
			query2 = query2.replace(pattern, "%20");
			if ((query2 == "Green%20Flag/Restart") || (query2 == "Yellow%20Flag") || (query2 == "Last%20Lap/White%20Flag") || (query2 == "Red%20Flag"))
			{
				query1="*";
				driver_sel = "All%20Drivers";
			}
			if (query2 == "*")
			{
				situation_sel = "Any%20Situation";
			}
			if (document.vasForm.check[0].checked == true)
			{
				query3 = time_frame;
				query3 = query3.replace(pattern, "%20");
				if (query3 == "Current%20Season")
				{
					query3 = "";
					query4 = year+"-01-01";
					query5 = year+"-12-31";
					timestatus_sel = "Current%20Season";			
				}
				if (query3 == "Last%20Season")
				{
					query3 = "";
					query4 = year-1+"-01-01";
					query5 = year-1+"-12-31";
					timestatus_sel = "Last%20Season";
				}
				if (query3 == "Current")
				{
					timestatus_sel = "Last%20Race";
				}
				if (query3 == "(Current%20LastFive)")
				{
					timestatus_sel = "Last%205%20Races";
				}
				if (query3 == "(Current%20LastFive%20LastTen)")
				{
					timestatus_sel = "Last%2010%20Races";
				}
				//ADDED BY VICTOR: 2/6/03
		    if (query3 > 2000)
		    {
		     query4 = query3+"-01-01";
		     query5 = query3+"-12-31";
		     timestatus_sel = query3+"%20Season";
		     query3 = "";
				}
		    //////////////////////////
			}
			else
			{
				query4 = from_year+"-"+from_month+"-"+from_day;
				query5 = to_year+"-"+to_month+"-"+to_day;
				if(query4 > query5) {alert("Invalid date search."); return;}
			}
			query6 = time_of_day;
			query6 = query6.replace(pattern, "%20");
			if (query6 == "*")
			{
				race_sel = "Night%20Or%20Day%20Race";
			}
			query7 = track;
			// ADDED BY VICTOR: 1/29/03
			if (query7 == "(Infineon Raceway+OR+Sears Point Raceway)")
			{
				track_sel = "Infineon%20Raceway";
			}	
			if (query7 == "Dover Downs Intl. Speedway")
			{
				track_sel = "Dover%20Intl.%20Speedway";
			}
			if (query7 == "Phoenix Intl. Speedway")
			{
				track_sel = "Phoenix%20Intl.%20Raceway";
			}
			if (query7 == "Richmond Intl. Speedway")
			{
				track_sel = "Richmond%20Intl.%20Raceway";
			}
			if (query7 == "Talladega Speedway")
			{
				track_sel = "Talladega%20Superspeedway";
			}
			// END OF ADDITIONS	
			query7 = query7.replace(pattern, "%20");
			if (query7 == "*")
			{
				track_sel = "All%20Tracks";
			}
			url="http://nascar.virage.com/vss-bin/vss_SR/nascar/search?template=results.tmpl&query1="+query1+"&query2="+query2+"&query3="+query3+"&query4="+query4+"&query5="+query5+"&query6="+query6+"&query7="+query7+"&driver="+driver_sel+"&situation="+situation_sel+"&timestatus="+timestatus_sel+"&race="+race_sel+"&track="+track_sel;

			document.location.href=url;
		}
		
		function whichradio()
		{
			if	(document.vasForm.check[1].checked==true)
			{
				deactivate2();
			}
			else 
			{
				deactivate();
			}
		}

		