function dateselect(a)
{
  var userdate = new Date(a);
  var currdate = new Date();
   
 
// asp?schedule=" & day(dtCurViewday) & "-" & monthname(month(dtCurViewday)) & "-" & year(dtCurViewday) & ">" & "<FONT FACE=""verdana"" SIZE=""0"" COLOR=""" & sFontColor & """>" & Day(dtCurViewDay) & "</a>" & formatStr(dictDte(Day(dtCurViewDay)- 1, 1)) & ""
 
 if(userdate.valueOf() < currdate.valueOf()) 
  {
   alert('Schedule date should be later than Current date');}
  else{
  var dt;
  dt = userdate.getDate() + "-" +  getMonthString(userdate.getMonth())  + "-" + userdate.getFullYear() 
  //alert(dt);
  document.location.href = "scheduledtls.asp?schedule=" + dt  
   }
 
}

 
function getMonthString(num)
{
  var month;
  switch(num)
  {
    case 0:
     month = "January";
     break;
    
    case 1:
     month = "February";
     break;
    
    case 2:
      month = "March";
      break;
    
    case 3:
      month = "April";
      break;
    
    case 4:
      month = "May";
      break;
    
    case 5:
      month="June";
      break;
    
    case 6:
      month="July";
      break;
    
    case 7:
      month = "August";
      break;
    
    case 8:
      month = "September";
      break;
    
    case 9:
      month = "October";
      break;
    
    case 10:
      month = "November";
      break;
    
    case 11:
      month = "December";
      break;
  }   
   return month;
}  
      
    
