<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<style>
.main_l .content{ margin:10px auto; width:480px; text-align:left; margin-bottom:50px}
.main_l .content .question{padding:10px 0; display:none;}
.main_l .content .q_title{ margin-bottom:30px;color:#27F;}
.main_l .item,.content .last_item{ font-size:15px; padding:5px 12px;line-height:28px; background:#f8f8f8; border:1px solid #ddd; margin-bottom:15px; cursor:pointer; color:#565656}
.content .item:hover,.content .last_item:hover{background:#eee; border:1px solid #ddd;}
</style>
<p style="color:#F06; line-height:30px; text-align:center; margin:20px;">已完成：<span id="count">0</span>/15，计时：<span id="show_time">0</span> 秒</p>
<div class="content">
<form action="./" method="post" id="form1" name="form1">
<input type="hidden" id="v_time" name="v_time" />
<input type="hidden" id="follow" name="follow" />


<div class="question" style="display:block">
    <p class="q_title">1.你是否会一直感到伤心或悲哀？</p>
    <p class="item"><input type="radio" name="i1" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i1" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i1" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i1" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">2.你是否感到前景渺茫？</p>
    <p class="item"><input type="radio" name="i2" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i2" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i2" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i2" value="3"/>D.一直是这样</p>
</div>	

<div class="question">
    <p class="q_title">3.你是否觉的自己没有价值或自以为是一个失败者？</p>
    <p class="item"><input type="radio" name="i3" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i3" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i3" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i3" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">4.你是否觉的自己没有价值或自以为是一个失败者？</p>
    <p class="item"><input type="radio" name="i4" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i4" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i4" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i4" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">5.你是否觉的自己没有价值或自以为是一个失败者？</p>
    <p class="item"><input type="radio" name="i5" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i5" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i5" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i5" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">6.你是否在做决定时犹豫不决？</p>
    <p class="item"><input type="radio" name="i6" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i6" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i6" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i6" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">7.这段时间你是否一直处于愤怒和不满状态？</p>
    <p class="item"><input type="radio" name="i7" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i7" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i7" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i7" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">8.你对事业，家庭，爱好和朋友是否丧失了兴趣？</p>
    <p class="item"><input type="radio" name="i8" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i8" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i8" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i8" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">9.你是否感到一蹶不振做事毫无动力？</p>
    <p class="item"><input type="radio" name="i9" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i9" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i9" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i9" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">10.你是否认为自己已衰老或失去魅力？</p>
    <p class="item"><input type="radio" name="i10" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i10" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i10" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i10" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">11.你是否感到食欲不振或情不自禁的暴饮暴食？</p>
    <p class="item"><input type="radio" name="i11" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i11" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i11" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i11" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">12.你是否失眠或整天感到体力不支昏昏欲睡？</p>
    <p class="item"><input type="radio" name="i12" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i12" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i12" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i12" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">13.你是否丧失了对性的兴趣？</p>
    <p class="item"><input type="radio" name="i13" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i13" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i13" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i13" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">14.你是否经常担心自己的健康？</p>
    <p class="item"><input type="radio" name="i14" value="0"/>A.没有</p>
    <p class="item"><input type="radio" name="i14" value="1"/>B.偶尔会</p>
    <p class="item"><input type="radio" name="i14" value="2"/>C.经常这样</p>
    <p class="item"><input type="radio" name="i14" value="3"/>D.一直是这样</p>
</div>

<div class="question">
    <p class="q_title">15.你是否认为生活没有价值，或生不如死？</p>
    <p class="last_item"><input type="radio" name="i15" value="0"/>A.没有</p>
    <p class="last_item"><input type="radio" name="i15" value="1"/>B.偶尔会</p>
    <p class="last_item"><input type="radio" name="i15" value="2"/>C.经常这样</p>
    <p class="last_item"><input type="radio" name="i15" value="3"/>D.一直是这样</p>
    <p style="text-align:center; margin-top:30px;">
    <a href="#" onclick="on_submit(); return false;"><img src="http://app.qpic.cn/mblogpic/05f902135224a3463866/2000" /></a>
    </p>
</div>
</form>
</div><!--/content-->

<script>
var v_time=0;
var current_i=0;
var i15_ischecked=0;
$(function()
{
	$('.item').click(function()
	{
		
		$(this).children('input').attr('checked',true);
		current_i++;
		$('#count').html(current_i);
		$(this).parent('.question').hide(300);
		$(this).parent('.question').next().show(300);
	});
	$('.item').hover(function(){$(this).css('background','#eee');},function(){$(this).css('background','#f8f8f8');});
	
	$('.last_item').click(function()
	{
		$(this).children('input').attr('checked',true);
		if(i15_ischecked==0)
		{
			current_i++;
			$('#count').html(current_i);
		}
		i15_ischecked=1;
	});
	$('.last_item').hover(function(){$(this).css('background','#eee');},function(){$(this).css('background','#f8f8f8');});

});
function on_submit()
{
	document.getElementById('v_time').value=v_time;
	if(i15_ischecked==0)
	{
		alert('请选择一项！');
		return;
	}
	var form1=document.getElementById('form1');
	form1.submit();
}

function show_time()
{
	v_time++;
	document.getElementById('show_time').innerHTML=v_time;
	r_show_time();
}
function r_show_time()
{
	setTimeout("show_time()", 1000);
}
setTimeout("show_time()", 1000);
</script>