<!--
// Date Object Renderer

function GetSel ( d , m )
{
  if ( d.getMonth() == m - 1 )
    return ( ' selected' ) ;
  else
    return ( '' ) ;
}

function Build_Date ()
{
  var s , i ;

  s =  '<table border="0" width="100%" cellspacing="0" cellpadding="0">' +
       '<tr class="bluehead">' +
       '<td>&nbsp;' + Text_Question + '</td>' +
          '<td align="right">' ;

  s +=      '<a href="javascript:parent.ShowSuperSolution()">' +
              '<img src="../../attarImages/toolsuper.gif" alt="Global Search" width="21" height="21" border="0" valign="middle" />' +
            '</a>' +
            '<img src="../../attarImages/tiny.gif" border="0" height="1" width="5" />' ;

  s +=      '<a href="javascript:parent.SingleQuestionChat()">' +
              '<img src="../../attarImages/toolchat.gif" alt="Get Question Text" width="21" height="21" border="0" valign="middle" />' +
            '</a>' +
            '<img src="../../attarImages/tiny.gif" border="0" height="1" width="5" />' ;

  if ( question.qaID != 0 )
    s +=    '<a href="javascript:parent.ShowQA(' + question.qaID + ')">' +
              '<img src="../../attarImages/toolemail.gif" alt="Get Multiple Question Text" width="21" height="21" border="0" valign="middle" />' +
            '</a>' +
            '<img src="../../attarImages/tiny.gif" border="0" height="1" width="5" />' ;

  s +=      '<a href="javascript:parent.SelfService()">' +
              '<img src="../../attarImages/toolsserv.gif" alt="Get Self Service URL" width="21" height="21" border="0" valign="middle" />' +
            '</a>' +
            '<img src="../../attarImages/tiny.gif" border="0" height="1" width="5" />' ;

  if ( question.overviewID != 0 )
    s +=    '<a href="javascript:parent.ShowOverview(' + question.overviewID + ')">' +
              '<img src="../../attarImages/toolnav.gif" alt="Show Navigation View" width="21" height="21" border="0" valign="middle" />' +
            '</a>' +
            '<img src="../../attarImages/tiny.gif" border="0" height="1" width="5" />' ;

  s +=      '<a href="javascript:parent.ShowHelp()">' +
              '<img src="../../attarImages/toolhelp.gif" alt="Help" width="21" height="21" border="0" valign="middle" />' +
            '</a>' +
            '<img src="../../attarImages/tiny.gif" border="0" height="1" width="5" />' +
          '</td>' +
        '</tr>' +
      '</table>' ;

  s = WrapTable ( "../../attarImages/bhead" , "../../attarImages/tiny.gif" , 4 , s ) ;
  s += GetPadTable ( 8 ) +

       '<table border="0" width="100%" cellspacing="0" cellpadding="0">' +
         '<tr class="question">' +
           '<td nowrap>' ;
  if ( question.attachment.length > 0 )
    s +=     '<a class="vqa" href="javascript:parent.ShowAttachment(\'' + question.attachment + '\')">' +
               '<img src="' + GetImage('addinfo.gif') + '" border="0" alt="Show Documentation">&nbsp;&nbsp;' ;
  s +=         question.text ;
  if ( question.attachment.length > 0 )
    s +=     '</a>' ;
  s +=     '</td>' +
         '</tr>' +
       '</table>' ;

  var d = new Date() ;

  s += GetPadTable ( 8 ) +
       '<span>' +
       '<table cellspacing="0" cellpadding="0" border="0">' +
       '<tr class="ninp">' +
       '<td width="30">&nbsp;</td>' +
       '<td>Value:&nbsp;</td>' +
       '<td>' +
         '<input type="text" id="day" value="' + d.getDate() + '" size="2" maxlength="2" onkeypress="javascript:DateKeyPress(event)" />&nbsp;' +
       '</td>' +
       '<td>' +
         '<select id="month">' +
           '<option value="1"' + GetSel ( d , 1 ) + '>Jan</option>' +
           '<option value="2"' + GetSel ( d , 2 ) + '>Feb</option>' +
           '<option value="3"' + GetSel ( d , 3 ) + '>Mar</option>' +
           '<option value="4"' + GetSel ( d , 4 ) + '>Apr</option>' +
           '<option value="5"' + GetSel ( d , 5 ) + '>May</option>' +
           '<option value="6"' + GetSel ( d , 6 ) + '>Jun</option>' +
           '<option value="7"' + GetSel ( d , 7 ) + '>Jul</option>' +
           '<option value="8"' + GetSel ( d , 8 ) + '>Aug</option>' +
           '<option value="9"' + GetSel ( d , 9 ) + '>Sep</option>' +
           '<option value="10"' + GetSel ( d , 10 ) + '>Oct</option>' +
           '<option value="11"' + GetSel ( d , 11 ) + '>Nov</option>' +
           '<option value="12"' + GetSel ( d , 12 ) + '>Dec</option>' +
         '</select>' +
       '</td>' +
       '<td>' +
         '<input type="text" id="year" value="' + ( 1900 + d.getYear() ) + '" size="4" maxlength="4" onkeypress="javascript:DateKeyPress(event)" />&nbsp;' +
       '</td>' +
       '<td>' +
         '<a href="javascript:DateOK(\'day\',\'month\',\'year\')">' +
           '<img src="' + GetImage('toolOK.gif') + '" border="0" onclick="">' +
         '</a>' +
       '</td>' +
       '</tr>' +
       '</table>' +
       '</span><br>' +
       GetPadTable ( 8 ) +
       Build_InlineAttachment ( 0 ) ;

  return ( s ) ;
}

function BuildDate_AsText ()
{
  var s = question.text + "\n" ;
  return ( s ) ;
}

-->