<%
  //String action="http://www.daac.ornl.gov/cgi-bin/MERCURY/survey1_proc.pl";
  String instance="NBII3(NEW)";
  if(request.getParameter("instance")!=null)
  {
    instance = request.getParameter("instance");
  }
  
  String sLink = "Rate Clearinghouse Survey";
  if(request.getParameter("url")!=null)
  {
    sLink = request.getParameter("url");
  }
  String rIPAndHost = request.getRemoteAddr()+" ("+request.getRemoteHost()+")";
  String rBrowser = request.getHeader("User-Agent");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>NBII Clearinghouse Exit Survey</title>
  <script src="scripts/survey1.js" type="text/javascript" language="javascript"></script>  
  <script type='text/javascript' src='/nbii/dwr/interface/RateUsHandler.js'></script>
  <script type='text/javascript' src='/nbii/dwr/engine.js'></script>
  <script type='text/javascript' src='/nbii/dwr/util.js'></script>
  <script src="scripts/rateusDWR.js" type="text/javascript" language="javascript"></script>
  <script>
   function init() {
    DWRUtil.useLoadingMessage('saving...');
   }
  </script>
</head>
<body bgcolor="#CDFEE6" onload="init();">
<div align="center">
<table width="550">
	<tr>
		<td align="left">
		<br>
		<h2>Clearinghouse Exit Survey</h2>
		<div id = "surveyForm"> 
		<form method="post">
		  <input type="hidden" name="sLink" id="sLink" value="<%=sLink %>"/> 
		  
		  <input type="hidden" name="action" value="B"/> 
		  <input type="hidden" name="instance" id="instance" value="<%=instance%>"> 
		  Responding to the following questions is completely voluntary. We are   
	    striving to make your Clearinghouse experience the best it can be and    
	    thank you for any feedback you may have. This screen will only appear    
	    once during your Clearinghouse search session. Click "Close" if you do   
	    not wish to participate. Thank you!
		  <ol>
			<li>
			  Did you find what you were looking for?<br>
			  <input type="radio" name="one" id="one" value="yes" checked>Yes<br>
			  <input type="radio" name="one" id="one" value="no" onClick="javascript:document.forms[0].comments_one.focus();">
			  No - please let us know your concern.<br>
			  <input type="radio" name="one" id="one" value="mix" onClick="javascript:document.forms[0].comments_one.focus();">
			  Mixed -	please let us know your concern.<br>
			  Comments?<br>
			  <textarea name="comments_one" id="comments_one" rows="3" cols="40"></textarea>
			</li>
			<li>
			  Did you identify a dataset that might be potentially useful to you?<br>
			  <input type="radio" name="two" id="two" value="yes" checked>Yes<br>
			  <input type="radio" name="two" id="two" value="no" onClick="javascript:document.forms[0].comments_two.focus();">
			  No - please let us know your concern.<br>
			  Comments?<br>
			  <textarea name="comments_two" id="comments_two" rows="3" cols="40"></textarea>
			</li>
			<li>
			  How would you like to see the content or operation of the Clearinghouse search improved to better meet your needs?<br>
			  <textarea name="comments_three" id="comments_three" rows="3" cols="40"></textarea>
			</li>
			<li>
			  <strong>Contact Information (optional):</strong><br>
			  If you would like to receive a response from us about your comment or question, please provide your email address:
			  <textarea name="email" id="email" rows="1" cols="40"></textarea>
			</li>
		</ol>		
		
		
		<input type="hidden" name="rIPAndHost" id="rIPAndHost" value="<%=rIPAndHost %>"/> 
		<input type="hidden" name="rBrowser" id="rBrowser"  value="<%=rBrowser %>"/> 
		<div align="center">
		 <input type="button" value="Submit" onclick="setRateUsRecord(); return 'true'">
		 <input type="reset" value="Clear">
		 <input type="button" value="Close"	onClick="javascript:window.close()">
		 </div>
		</form>
		</div>
		<div id = "d1"></div>
		<a href="http://www.nbii.gov/about/disclaimer.html" title="Privacy Statement">Privacy Statement</a>
		<hr>
		<div align="right"><font size="-1"> Revision Date: 04/17/2008<br></font></div>
		</td>
	</tr>
</table>
</div>
</body>
</html>