<%-- $Id: instantFeedback.jsp,v 1.1.2.3 2004/01/31 17:49:13 sivakumarv Exp $ --%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Instant Feedback</title>

<%@page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

<SCRIPT language="JavaScript1.2" SRC="/webclient/common/js/validation.js"></SCRIPT>

<%@include file="/webclient/common/jspf/commonIncludes.jspf" %>
<%@include file="/webclient/common/jspf/feedbackValidation.jspf" %>


<body class="popupBg" onload="javascript:focusTitle()">
<form name="feedbackform" method="post" onsubmit='return checkValidation()' action="/sendFeedback.do">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td height="38" class="tabsbg">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
          <tr> 
            <td width="40" height="0" nowrap>&nbsp;<img src="/webclient/common/images/mail.gif"" width="28" height="14" align="absmiddle"></td>
            <td height="0" nowrap class="whiteText">Instant Feedback</td>
          </tr>
        </table> </td>
  </tr>
  <tr> 
    <td align="center" valign="top"> 
      <table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td  align="left" valign="top"><TABLE width="100%" border=0 align=center cellPadding=4 cellspacing="0">
                <TBODY>
                  <TR> 
                    <td height="0" colspan="4" align="right" vAlign=top><span class="mandatory">*</span> 
                      <SPAN class="text">Mandatory fields </SPAN></td>
                  </TR>
                  <TR> 
                    <TD width="74" vAlign=top class=text>&nbsp;</TD>
                    <TD width="140" vAlign=middle nowrap class=text>Your e-mail 
                      address </TD>
                    <TD width="250" align="left" valign="top"> 

<c:if test="${!empty cookie.feedbackFromAddress}">
<c:set var="fromAddress" value="${cookie.feedbackFromAddress.value}" />
</c:if>
                      <INPUT class=formStyle size=31 name="from" style="width:250" value="<c:out value='${fromAddress}'/>"> </TD>
                    <TD width="210" align="left" valign="top" class=mandatory>*</TD>
                  </TR>
                  <TR> 
                    <TD class=text vAlign=top noWrap>&nbsp;</TD>
                    <TD class=text vAlign=middle noWrap>Subject</TD>
                    <TD align="left" valign="top"> <INPUT class=formStyle size=31 name="title"  style="width:250"> 
                    </TD>
                    <TD width="210" align="left" valign="top" class=mandatory>*</TD>
                  </TR>
                  <TR> 
                    <TD class=text vAlign=top noWrap>&nbsp;</TD>
                    <TD class=text vAlign=top noWrap>Comments</TD>
                    <TD align="left" valign="top"> <TEXTAREA class=formStyle name="comment" rows=5 cols=30 style="width:250"></TEXTAREA> 
                    </TD>
                    <TD width="210" align="left" valign="top" class=mandatory>*</TD>
                  </TR>
                  <TR> 
                    <TD align="left" noWrap class=text>&nbsp;</TD>
                    <TD align="left" noWrap class=text>Rate this Page</TD>
                    <TD align="left"> <table width="10%" border="0" cellspacing="1" cellpadding="0">
                        <tr> 
                          <td nowrap> <input type="radio" name="rate" value="Excellent"></td>
                          <td nowrap class="text"> Excellent </td>
                          <td align="left" valign="top" nowrap class="text"><img src="/webclient/common/images/trans.gif" width="10" height="1"></td>
                          <td nowrap> <input type="radio" name="rate" value="Good"></td>
                          <td nowrap class="text"> Good </td>
                          <td align="left" valign="top" nowrap class="text"><img src="/webclient/common/images/trans.gif" width="10" height="1"></td>
                          <td nowrap> <input name="rate" type="radio" value="Fair" checked></td>
                          <td nowrap class="text"> Fair </td>
                          <td align="left" valign="top" nowrap class="text"><img src="/webclient/common/images/trans.gif" width="10" height="1"></td>
                          <td nowrap> <input type="radio" name="rate" value="Poor"></td>
                          <td nowrap class="text"> Poor </td>
                        </tr>
                      </table></TD>
                    <TD width="210" align="left" valign="top" class=mandatory>&nbsp;</TD>
                  </TR>
                  <TR> 
                    <TD height="15" colspan="4" vAlign=top noWrap class=text><img src="/webclient/common/images/trans.gif" width="1" height="5"></TD>
                  </TR>
                  <TR class="propertyLeftBg"> 
                    <TD class=text vAlign=top noWrap>&nbsp;</TD>
                    <TD class=text vAlign=top noWrap>&nbsp;</TD>
                    <TD><table width="100%" border="0" cellpadding="3" cellspacing="0">
                        <tr> 
                          <td width="20%"> <input name="Submit" type="submit" class="button" value=" Send "></td>
                          <td width="1%"><input name="Reset" type="reset" class="button" id="Reset" value=" Reset " onClick="javascript:clearFields()"></td>
                          <td width="57%" align="left" valign="top"><img src="/webclient/common/images/trans.gif" width="15" height="1"></td>
                          <td width="22%" align="right"> <input name="Close" type="button" class="button" id="Close" value="Close" onClick="javascript:window.close()"></td>
                        </tr>
                      </table></TD>
                    <TD>&nbsp;</TD>
                  </TR>
                </TBODY>
              </TABLE></td>
        </tr>
      </table></td>
  </tr>
</table>

<c:forTokens items="${param.pageURI}" delims="?" var="token" varStatus="firstStatus">
  <c:if test="${firstStatus.count == '1'}">
     <c:set var="firstToken" value="${token}"/>
  </c:if>
  <c:forTokens items="${token}" delims="[]" var="subtoken" varStatus="secondStatus">
     <c:if test="${secondStatus.count == '2'}">
        <c:set var="lastToken" value="${subtoken}"/>
     </c:if>
  </c:forTokens>
</c:forTokens>

<input type="hidden" name="pageURI" value="<c:out value='${firstToken}'/>?<c:out value='${lastToken}'/>">

</form>
</body>
</html>
