

// start script for launching external child window

function winLaunch (url) {
	window.open(url,'acknowledge','width=545,height=380,resizable')
}


function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=515,height=375,screenX=150,screenY=150,top=150,left=150')
}


// get the current date
  var today = new Date()
  var month = today.getMonth()+1
  var year = today.getYear()
  var day = today.getDate()
  if(day<10) day = "0" + day
  if(month<10) month= "0" + month 
  if(year<1000) year+=1900
  
// get the current time
  var curDateTime = new Date()
  var curHour = curDateTime.getHours()
  var curMin = curDateTime.getMinutes()
 
  var curAMPM = "am"
  var curTime = ""
  if (curHour >= 12){
    curHour -= 12
    curAMPM = "pm"
    }
  if (curHour == 0) curHour = 12
  curTime = curHour + ":" 
    + ((curMin < 10) ? "0" : "") + curMin
    + curAMPM