document.writeln("	<table width='190' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.writeln("		<tr valign='top'>");
document.writeln("	          <td colspan='2' align='center'>");
document.writeln("	<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.writeln("	 <form name='form11' method='post' action='/surveyAction.do?operation=submitSurvey'>");
document.writeln("		 <input type='hidden' name='surveyId' value='ff8080812287b3b70122bb8571ee007f'>");
document.writeln("		 <input type='hidden' name='problemNum' value='1'>");

	 	 	 	 	 
document.writeln("			 <input type='hidden' name='problemId0' value='ff8080812287b3b70122bb8667860081'>");
document.writeln("			 <!--//判断调查是单选题还是多选题-->");
			 			 			 
document.writeln("			<!--//生成问题-->");
document.writeln("			<tr> ");

						
document.writeln("			<td class='linestyle'> 1、&nbsp;您喜欢本站的哪些内容？</td> </tr>");
document.writeln("			<!--//读取所有选项-->");

						
document.writeln("			<!--//选项列表-->");

						
document.writeln("				<tr>");
document.writeln("				<td width='100%' class='linestyle' align='left'>");
document.writeln("				<input name='options0' type='checkbox' value='ff8080812287b3b70122bb8669800082' >&nbsp;&nbsp;");
document.writeln("				热点透视与评论");
document.writeln("				</td> ");
document.writeln("				</tr>");

								
document.writeln("				<tr>");
document.writeln("				<td width='100%' class='linestyle' align='left'>");
document.writeln("				<input name='options0' type='checkbox' value='ff8080812287b3b70122bb866b440083' >&nbsp;&nbsp;");
document.writeln("				宣传教育");
document.writeln("				</td> ");
document.writeln("				</tr>");

								
document.writeln("				<tr>");
document.writeln("				<td width='100%' class='linestyle' align='left'>");
document.writeln("				<input name='options0' type='checkbox' value='ff8080812287b3b70122bb866d240084' >&nbsp;&nbsp;");
document.writeln("				制度建设");
document.writeln("				</td> ");
document.writeln("				</tr>");

								
document.writeln("				<tr>");
document.writeln("				<td width='100%' class='linestyle' align='left'>");
document.writeln("				<input name='options0' type='checkbox' value='ff8080812287b3b70122bb866f120085' >&nbsp;&nbsp;");
document.writeln("				监督惩治");
document.writeln("				</td> ");
document.writeln("				</tr>");

								
document.writeln("				<tr>");
document.writeln("				<td width='100%' class='linestyle' align='left'>");
document.writeln("				<input name='options0' type='checkbox' value='ff8080812287b3b70122bb8671150086' >&nbsp;&nbsp;");
document.writeln("				网上评议");
document.writeln("				</td> ");
document.writeln("				</tr>");

								
document.writeln("				<tr>");
document.writeln("				<td width='100%' class='linestyle' align='left'>");
document.writeln("				<input name='options0' type='checkbox' value='ff8080812287b3b70122bb8673140087' >&nbsp;&nbsp;");
document.writeln("				预防与警示");
document.writeln("				</td> ");
document.writeln("				</tr>");

								
document.writeln("				<tr>");
document.writeln("				<td width='100%' class='linestyle' align='left'>");
document.writeln("				<input name='options0' type='checkbox' value='ff8080812287b3b70122bb8674e80088' >&nbsp;&nbsp;");
document.writeln("				咨询与交流");
document.writeln("				</td> ");
document.writeln("				</tr>");

							
document.writeln("	<tr>");
document.writeln("             <td align='center' height='28' class='linestyle'>");
document.writeln("                     <input name='button' type='button' class='butt_survey'  onClick='javascript:tijiao()' value='提 交'> <input name='reset' type='reset' class='butt_survey' value='重 填'>");
document.writeln("               <input name='button' type='button' class='butt_survey' onClick='javascript:lookResult()' value='查 看'>");
document.writeln("             </td>            </tr>");
document.writeln("     </form>          </table></td>");
document.write("     </tr>    </table>");

function lookResult(){
 	window.location='/surveyAction.do?operation=getSurveyResult&surveyId='+document.form11.surveyId.value; 
}

function isSelectCheckbox(ids)                           //校验多选框的选择
{
if(ids.length=="-1" || typeof(ids.length)=="undefined")        return ids.checked;
 for(i=0;i<ids.length;i++)
  {
    if (ids[i].checked)
    {
	   return true;
    }
  }
  return false;     
}

function tijiao(){	
	var question =new Array();
	var count =document.form11.problemNum.value;
	for(ii=0;ii<count;ii++)	
	{ question=document.getElementsByName("options"+ii);	
		
		if(question.length==1)	
		 {if(!question.checked ){alert("必须回答所有的问题!"); return ;break;}}
		else {
	    if (!(isSelectCheckbox(question)))				
         {alert("必须回答所有的问题!"); return ;break;}		
		}		
	}	
	document.form11.action='/surveyAction.do?operation=submitSurvey';
	document.form11.submit();			 
}
