Difference between revisions of "Talk:Foundations Lecture - Introduction to Human Development"

From Embryology
Line 2: Line 2:
  
 
'''Tue 19 April 2011''' Time: '''09:00 AM - 10:00 AM''' Location: '''Central Lecture Block 7''', Kensington Activity: '''Lecture'''
 
'''Tue 19 April 2011''' Time: '''09:00 AM - 10:00 AM''' Location: '''Central Lecture Block 7''', Kensington Activity: '''Lecture'''
 +
 +
 +
<script type="text/javascript" language="JavaScript">
 +
 +
 +
var maxday=new Array(12)
 +
maxday[1]=31
 +
maxday[2]=28
 +
maxday[3]=31
 +
maxday[4]=30
 +
maxday[5]=31
 +
maxday[6]=30
 +
maxday[7]=31
 +
maxday[8]=31
 +
maxday[9]=30
 +
maxday[10]=31
 +
maxday[11]=30
 +
maxday[12]=31
 +
 +
var monthname=new Array(12)
 +
monthname[1]="January"
 +
monthname[2]="February"
 +
monthname[3]="March"
 +
monthname[4]="April"
 +
monthname[5]="May"
 +
monthname[6]="June"
 +
monthname[7]="July"
 +
monthname[8]="August"
 +
monthname[9]="September"
 +
monthname[10]="October"
 +
monthname[11]="November"
 +
monthname[12]="December"
 +
 +
function calc(form){
 +
var newmonth,newday,newyear
 +
day=form.Day.value
 +
year=form.Year.value
 +
month=form.Month.value
 +
newday=eval(day)+7
 +
newmonth=eval(month)-3
 +
newyear=eval(year)
 +
var max=maxday[month]
 +
if(month==2&&(year%4==0)){max=29}if(day>max){datestring="Wrong date, please correct and recalculate"}else{if(newday>max)
 +
{newday=newday-max
 +
newmonth=newmonth+1}
 +
if(newmonth<1){newmonth=newmonth+12}else{if(newmonth>12){newmonth=newmonth-12}newyear=newyear+1}var max=maxday[newmonth]
 +
if(newday>max){newday=newday-max
 +
newmonth=newmonth+1}
 +
var datestring=monthname[newmonth]+" "+newday+", "+newyear
 +
}
 +
form.due.value=datestring
 +
}
 +
 +
function today_click()
 +
{
 +
  var theForm = document.info;
 +
  var nowDate = new Date();
 +
 +
  theForm.Day.options[nowDate.getDate() - 1].selected = true;
 +
 +
  theForm.Month.options[nowDate.getMonth()].selected = true;
 +
 +
  theForm.Year.options[nowDate.getFullYear()- 2010].selected = true;
 +
 +
}
 +
 +
</script>

Revision as of 09:56, 17 April 2012

Fri 1,038

Tue 19 April 2011 Time: 09:00 AM - 10:00 AM Location: Central Lecture Block 7, Kensington Activity: Lecture


<script type="text/javascript" language="JavaScript">


var maxday=new Array(12) maxday[1]=31 maxday[2]=28 maxday[3]=31 maxday[4]=30 maxday[5]=31 maxday[6]=30 maxday[7]=31 maxday[8]=31 maxday[9]=30 maxday[10]=31 maxday[11]=30 maxday[12]=31

var monthname=new Array(12) monthname[1]="January" monthname[2]="February" monthname[3]="March" monthname[4]="April" monthname[5]="May" monthname[6]="June" monthname[7]="July" monthname[8]="August" monthname[9]="September" monthname[10]="October" monthname[11]="November" monthname[12]="December"

function calc(form){ var newmonth,newday,newyear day=form.Day.value year=form.Year.value month=form.Month.value newday=eval(day)+7 newmonth=eval(month)-3 newyear=eval(year) var max=maxday[month] if(month==2&&(year%4==0)){max=29}if(day>max){datestring="Wrong date, please correct and recalculate"}else{if(newday>max) {newday=newday-max newmonth=newmonth+1} if(newmonth<1){newmonth=newmonth+12}else{if(newmonth>12){newmonth=newmonth-12}newyear=newyear+1}var max=maxday[newmonth] if(newday>max){newday=newday-max newmonth=newmonth+1} var datestring=monthname[newmonth]+" "+newday+", "+newyear } form.due.value=datestring }

function today_click() {

  var theForm = document.info;
  var nowDate = new Date();
  theForm.Day.options[nowDate.getDate() - 1].selected = true;
  theForm.Month.options[nowDate.getMonth()].selected = true;
  theForm.Year.options[nowDate.getFullYear()- 2010].selected = true;

}

</script>