function sub(){
 obj_form = document.getElementById("q_form");
 obj_form.submit();
}
function go_assert(s){
 var com_form = document.getElementById("com_form");
 var res = document.getElementById("input-result")
 com_form.action = "";
 if(s == 1)
 {
 res.value = "right" ;
 }
 else if(s ==2 )
 {
 res.value = "wrong";
 }
 else
 {
 res.value = "";
 }
 com_form.submit();
}
function know_sub()
{
 var com_input = document.getElementById("com_input");
 var rev_input = document.getElementById('generalT');
 if(com_input.value != '整两句吧，就两句！' && com_input.value!='')
 {
 rev_input.value = com_input.value;
 return addReview('reviewForm');
 }
 else
 com_input.focus();
}
function do_know(r)
{
 var q_form = document.getElementById("q_form");
 if(r == 1)
 q_form.submit();
 if(r == 2)
 alert('答案错误哦!');
}
function dofocus()
{
 var gen= document.getElementById('com_input');
 if(gen.value=='整两句吧，就两句！')
 gen.value='';
 else
 return false;
}
function jump(t)
{
 var jumpto = document.getElementById('input-jump');
 obj_form = document.getElementById("q_form");
 if(t==1)
 jumpto.value='qs';
 else if(t==2)
 jumpto.value='rs';
 obj_form.submit();

}