<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<style type="text/css">
body
{
font-family: Helvetica, Arial;
}
.backdrop
{
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;
background:#999999;
opacity: .0;
filter:alpha(opacity=0);
z-index:50;
display:none;
}
.box
{
position:absolute;
top:20%;
left:30%;
width:300px;
height:150px;
background:#ffffff;
z-index:51;
padding:10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow:0px 0px 5px #444444;
-webkit-box-shadow:0px 0px 5px #444444;
box-shadow:0px 0px 5px #444444;
display:none;
}
.close
{
float:right;
margin-right:6px;
cursor:pointer;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$('.lightbox').click(function(){
$('.backdrop, .box').animate({'opacity':'.50'}, 300, 'linear');
$('.box').animate({'opacity':'1.00'}, 300, 'linear');
$('.backdrop, .box').css('display', 'block');
});
$("#ok").click(function () {
if ($("#myarea").val() == "") {
alert("please put your comment!");
return false; }
var myarea=$("#myarea").val();
alert(myarea);
$("#new").val(myarea);
close_box();
return false;
});
function hide(){
close_box();
}
$("#hide").click(hide);
$('.close').click(function(){
close_box();
});
$('.backdrop').click(function(){
close_box();
});
});
function close_box()
{
$('.backdrop, .box').animate({'opacity':'0'}, 300, 'linear', function(){
$('.backdrop, .box').css('display', 'none');
});
}
</script>
</head>
<body>
<form>
<table>
<tr>
<td width="48%">How would you rate the quality of the service you received?:<span class="required" style="color:#93B928;">*</span></td>
<td width="52%"><input type="radio" id="excellent" name="rate" value="Excellent" /><small>Excellent</small>
<input type="radio" id="good" name="rate" value="Good" /><small>Good</small>
<input type="radio" id="average" name="rate" value="Average" /><small>Average</small>
<input type="radio" id="notgood" name="rate" value="Not Good" /><small>Not Good</small>
<input type="radio" id="poor" class="lightbox" name="rate" value="Poor"/><small>Poor</small>
</td>
</tr>
</table>
<div class="backdrop"></div>
<div class="box"><div class="close">x</div>
<span id="test">Please put your comment here!<br/>
<textarea id="myarea" rows="5" cols="30" name="myarea"></textarea><br/>
<input type="button" id="ok" name="ok" value="ok"/>
<input type="button" id="hide" name="hide" value="cancel"/></span>
</div>
</form>
</body>
</html>