//javascript code for Aquactinics website

//this function is for the jump menu. Once a online retailer is chosen, an new browser window is opened to 
//the chosen location
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//this function establishes an array populated with days of the week
function GetDay(intDay){
var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", 
					 "Thursday", "Friday", "Saturday")
return DayArray[intDay]
}

//this function establishes an array populated with months of the year
function GetMonth(intMonth){
var MonthArray = new Array("January", "February", "March",
						   "April", "May", "June",
						   "July", "August", "September",
						   "October", "November", "December") 
return MonthArray[intMonth] 	  	 
}

//this function uses the above functions and the default javascript date functions to create the date stamp shown 
//on the top right of the website
function getDateStrWithDOW(){
var today = new Date()
var year = today.getYear()
if(year<1000) year+=1900
var todayStr = GetDay(today.getDay()) + " "
todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
todayStr += ", " + year
return todayStr
}
