var arrRed = new Array("Pick Wine Type","Cabernet Sauvignon","Merlot","Cabernet Franc","Malbec","Syrah/Shiraz","Grenache","Mourvedre","Pinot Noir","Zinfandel","Petite Sirah","Tempranillo","Nebbiolo","Dolcetto","Nero d'Avola","Primitivo","Barbera","Italian Red","Sangiovese","Carmenere","Pinotage","Other Red Wine","Bordeaux Blends","Rhône Blends","Chianti","Red Blend")

var arrWhite = new Array("Pick Wine Type","Chardonnay","Pinot Gris/Grigio","Sauvignon Blanc","Semillon","Bordeaux Blends","Pinot Blanc","Viognier","Rhône Blends","Riesling","Gewurztraminer","Italian White","Chenin Blanc","Muscat","Other White Wine")

var arrRose = new Array("Pick Wine Type","Cabernet Sauvignon","Merlot","Cabernet Franc","Malbec","Syrah/Shiraz","Grenache","Mourvedre","Pinot Noir","Zinfandel","Petite Sirah","Tempranillo","Nebbiolo","Dolcetto","Nero d'Avola","Primitivo","Barbera","Italian Red","Sangiovese","Carmenere","Pinotage","Other Red Wine","Bordeaux Blends","Rhône Blends","Chianti","Red Blend")

var arrBubbly = new Array("Pick Wine Type","Champagne","Sparkling","Pourpre")

var arrDessert = new Array("Pick Wine Type","Port","Sherry")

var arrNull = new Array(" ")

var arrWColor = new Array(arrNull,arrRed,arrWhite,arrRose,arrBubbly,arrDessert)

var arrSD = new Array("Dry","Sweet")

var arrCtry = new Array("United States","Australia","New Zealand","France","Italy","Spain","Portugal","Israel","Germany","Greece","Chile","Argentina")

var arrColor = new Array("Select a Wine Color", "Red", "White", "Rosè", "Bubbly", "Dessert")

var month=new Array(12)

month[0]="January"

month[1]="February"

month[2]="March"

month[3]="April"

month[4]="May"

month[5]="June"

month[6]="July"

month[7]="August"

month[8]="September"

month[9]="October"

month[10]="November"

month[11]="December"



function formatDate(date) {

var mymonth = date.getMonth()+1;

var myweekday = date.getDate();

return (month[mymonth-1] + " " + myweekday + ", " + date.getFullYear());

}

function printWeek() {

var now = new Date();

var nowDayOfWeek = now.getDay();

var nowDay = now.getDate();

var nowMonth = now.getMonth();

var nowYear = now.getYear();

nowYear += (nowYear < 2000) ? 1900 : 0;

var weekStartDate = new Date(nowYear, nowMonth, nowDay - nowDayOfWeek);

var weekEndDate = new Date(nowYear, nowMonth, nowDay + (6 - nowDayOfWeek));

document.write(formatDate(weekStartDate) + " - " + formatDate(weekEndDate));

}



function ClrTypLst() {

for (var i = document.getElementById("WType").options.length; i >= 0; i--)

{ document.getElementById("WType").options[i] = null;}

 }

 

function WColor_onchange() {

ClrTypLst()



for (var i=0; i<arrWColor[document.getElementById("WColor").selectedIndex].length; i++){



  document.getElementById("WType").options[document.getElementById("WType").options.length] = new Option(arrWColor[ document.getElementById("WColor").selectedIndex][i], i);

 }

 

}