
function printtoday(chooser){

if (chooser == 0 ){
var d = new Date();
var dd;
var month;
if(d.getMonth()+1==1)
 month="January";
if(d.getMonth()+1==2)
 month="February";
if(d.getMonth()+1==3)
 month="March";
if(d.getMonth()+1==4)
 month="April";
if(d.getMonth()+1==5)
 month="May";
if(d.getMonth()+1==6)
 month="June";
if(d.getMonth()+1==7)
 month="July";
if(d.getMonth()+1==8)
 month="August";
if(d.getMonth()+1==9)
 month="September";
if(d.getMonth()+1==10)
 month="October";
if(d.getMonth()+1==11)
 month="November";
if(d.getMonth()+1==12)
 month="December";
dd=month+" "+d.getDate()+", "+d.getFullYear();
return (dd);
}


if (chooser == 2 ){
var d = new Date();
var dd;
var month;
if(d.getMonth()+1==1)
 month="January";
if(d.getMonth()+1==2)
 month="February";
if(d.getMonth()+1==3)
 month="March";
if(d.getMonth()+1==4)
 month="April";
if(d.getMonth()+1==5)
 month="May";
if(d.getMonth()+1==6)
 month="June";
if(d.getMonth()+1==7)
 month="July";
if(d.getMonth()+1==8)
 month="August";
if(d.getMonth()+1==9)
 month="September";
if(d.getMonth()+1==10)
 month="October";
if(d.getMonth()+1==11)
 month="November";
if(d.getMonth()+1==12)
 month="December";
dd=month+" "+d.getDate()+", "+d.getFullYear();
return ("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+dd);
}

if (chooser == 1){
return(getToday());
}

if (chooser == 3){
var d = new Date();
var dd;
var month;

var week = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");

if(d.getMonth()+1==1)
 month="January";
if(d.getMonth()+1==2)
 month="February";
if(d.getMonth()+1==3)
 month="March";
if(d.getMonth()+1==4)
 month="April";
if(d.getMonth()+1==5)
 month="May";
if(d.getMonth()+1==6)
 month="June";
if(d.getMonth()+1==7)
 month="July";
if(d.getMonth()+1==8)
 month="August";
if(d.getMonth()+1==9)
 month="September";
if(d.getMonth()+1==10)
 month="October";
if(d.getMonth()+1==11)
 month="November";
if(d.getMonth()+1==12)
 month="December";
dd=week[d.getDay()]+", "+month+" "+d.getDate()+", "+d.getFullYear();
return (dd);
}
if (chooser == 4){
var d = new Date();
var dd;

dd=(d.getMonth()+1)+"/"+d.getDate()+"/"+d.getFullYear();
return (dd);
}

if (chooser == 5){
var dd = new Date();
var m;
var y;
m = dd.getMonth();
if(m == 11){
y = dd.getFullYear() + 1;
}
else{
y = dd.getFullYear();
}
return(y);
}


if (chooser == 6){
var d = new Date();
var dd;
var month;
if(d.getMonth()+1==1)
 month="January";
if(d.getMonth()+1==2)
 month="February";
if(d.getMonth()+1==3)
 month="March";
if(d.getMonth()+1==4)
 month="April";
if(d.getMonth()+1==5)
 month="May";
if(d.getMonth()+1==6)
 month="June";
if(d.getMonth()+1==7)
 month="July";
if(d.getMonth()+1==8)
 month="August";
if(d.getMonth()+1==9)
 month="September";
if(d.getMonth()+1==10)
 month="October";
if(d.getMonth()+1==11)
 month="November";
if(d.getMonth()+1==12)
 month="December";
dd=month+" "+d.getFullYear();
return (dd);
}
}
