// JavaScript Document

// webbot bot="ElScripto" startspan preview="[Current Date]" 
				
							//  
							function MakeArray(arrayLength) 
							{ 
							this.length = arrayLength; 
							for (var i = 1; i <= arrayLength; i++) this[i] = i-1; 
							return this 
							} 
							function writeDate(m,sep) 
							{ 
							dateNow = new Date(); 
							theDay = new MakeArray(7); 
							theDay[0] = "Sunday"; theDay[1] = "Monday"; theDay[2] = "Tuesday"; theDay[3] = "Wednesday"; 
							theDay[4] = "Thursday"; theDay[5] = "Friday"; theDay[6] = "Saturday"; 
							theMonth = new MakeArray(12); 
							theMonth[0] = "January"; theMonth[1] = "February"; theMonth[2] = "March"; 
							theMonth[3] = "April"; theMonth[4] = "May"; theMonth[5] = "June"; 
							theMonth[6] = "July"; theMonth[7] = "August"; theMonth[8] = "September"; 
							theMonth[9] = "October"; theMonth[10] = "November"; theMonth[11] = "December"; 
							whichDay = theDay[dateNow.getDay()]; 
							whichMonth = theMonth[dateNow.getMonth()]; 
							whichDate = dateNow.getDate(); 
							whichYear = dateNow.getYear(); 
							if (whichYear < 2000) {whichYear = whichYear + 1900;} 
							whichYear = "" + whichYear; 
							if (m==0) document.writeln(whichDay + ", " + whichMonth + " " + whichDate + ", " + whichYear); 
							if (m==1) document.writeln((dateNow.getMonth()+1) + sep + whichDate + sep + whichYear.substring(2,4)); 
							if (m==2) document.writeln(whichDate + sep + (dateNow.getMonth()+1) + sep + whichYear.substring(2,4)); 
							if (m==3) document.writeln((dateNow.getMonth()+1) + sep + whichDate + sep + whichYear); 
							if (m==4) document.writeln(whichDate + sep + (dateNow.getMonth()+1) + sep + whichYear); 
							if (m==5) document.writeln(whichDate + sep + whichMonth + sep + whichYear); 
							if (m==6) document.writeln(whichDay); 
							if (m==7) document.writeln(whichMonth); 
							if (m==8) document.writeln(dateNow.getMonth()+1); 
							if (m==9) document.writeln(whichDate); 
							if (m==10) document.writeln(whichYear); 
							} 
							writeDate(0,"/"); 
// 
						
						