<html>
<head>
<meta http-equiv=content-language content=zh-cn>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<style>
 td { padding:2px 5px 2px 5px;}
</style>
<link href="../CSS/Base.css" rel=stylesheet>
<link href="../CSS/Common.css" rel="stylesheet" type="text/css"/>
<LINK href="../CSS/Window.css" type=text/css rel=stylesheet>
<script language=javascript src="../JS/CheckQuestion.js.php"></script>
<script language=javascript src="../JS/HighLight.js.php"></script>
<script language=javascript src="../JS/Editor.js.php"></script>
<script type="text/javascript" src="../JS/Common.js.php"></script>
<script type="text/javascript" src="../JS/Window.js.php"></script>
<script language=javascript>
var editTextRange;
function CheckSpecicalChar(objField, strText)
{
	var strErr = "“" + strText + "”不能包含单引号、双引号、反斜线、小于号、大于号、和符号等非法字符！";
	var Re = /[\x22\x27\x5C\x3C\x3E\x26]+/ig;
	if ( Re.test(objField.value))
	{
		alert(strErr);
        objField.focus();
		return false;
	}
	return true;
}
function Check_Form_Validator()
{
	if (!CheckNotNull(Check_Form.surveyTitle, "调查问卷标题")) {return false;}
	if (!CheckSpecicalChar(Check_Form.surveyTitle, "调查问卷标题")) {return false;}
}
</script>
<meta content="mshtml 6.00.3790.0" name=generator></head>
<body oncontextmenu="return false" style="margin-top:0px">
  <table class=datatable style="line-height: 150%;border-collapse:collapse;" cellspacing=0 cellpadding=0 bordercolor=#b5cfd9 border=1 width=100%>
     <form action="" method="post" name="Check_Form" onsubmit="return Check_Form_Validator()" >
     <div class=position>位置：&nbsp; 我的问卷 &raquo; 新增调查问卷</div>
      <tr><td bgcolor="#f5f5f5" colspan=2><b>新增调查问卷</b></td></tr>
      <tr>
        <td align=right colspan=2><SPAN style="PADDING-RIGHT: 16px">注：以下带“<SPAN  class=red>*</SPAN>”的为必填项</SPAN></td></tr>
      <tr> 
           <td height="25" width=20%><SPAN class=red>*</SPAN> 调查问卷标题：</td>
           <td><input class="textInput" name="surveyTitle" type="text" id="surveyTitle" size="84" maxlength="200"></td>
      </tr>
      <tr> 
          <td height="23">&nbsp;&nbsp;&nbsp;调查问卷副标题：</td>
          <td><input class="textInput" name="surveySubTitle" type="text" id="surveySubTitle" size="84"></td>
      </tr>
       <tr>
          <td height="23">&nbsp;&nbsp;&nbsp;有关调查问卷说明：</td>
          <td><div style="background-color:#B7D1F4;border-bottom:1px #95b8e9 solid;">
			    <img SRC="../Images/Editor/head.gif" WIDTH="10" HEIGHT="26">
				<a href="javascript:void(0)" onclick="doExecCommand('Bold')"><img src="../Images/Editor/bold.gif" WIDTH="20" HEIGHT="20" title="Bold"></a>
				<a href="javascript:void(0)" onclick="doExecCommand('Italic')"><img src="../Images/Editor/italic.gif" WIDTH="20" HEIGHT="20" title="Italic"></a>
				<a href="javascript:void(0)" onclick="doExecCommand('Underline')"><img src="../Images/Editor/underline.gif" WIDTH="20" HEIGHT="20" title="Underline"></a>
				<img src="../Images/Editor/separator.gif" WIDTH="5" HEIGHT="20">
				<a href="javascript:void(0)" onclick="doExecCommand('Undo')"><img src="../Images/Editor/undo.gif" width="20" height="20" title="Undo"></a>
				<a href="javascript:void(0)" onclick="doExecCommand('Redo')"><img src="../Images/Editor/redo.gif" width="20" height="20" title="Redo"></a>
				<img src="../Images/Editor/separator.gif" WIDTH="5" HEIGHT="20">
				<a href="javascript:void(0)" onclick="doExecCommand('JustifyLeft')"><img src="../Images/Editor/jleft.gif" WIDTH="20" HEIGHT="20" title="JustifyLeft"></a>
				<a href="javascript:void(0)" onclick="doExecCommand('JustifyCenter')"><img src="../Images/Editor/jcenter.gif" WIDTH="20" HEIGHT="20" title="JustifyCenter"></a>
				<a href="javascript:void(0)" onclick="doExecCommand('JustifyRight')"><img src="../Images/Editor/jright.gif" WIDTH="20" HEIGHT="20" title="JustifyRight"></a>
				<img src="../Images/Editor/separator.gif" WIDTH="5" HEIGHT="20">
				<a href="javascript:void(0)" onclick="doExecCommand('Cut')"><img src="../Images/Editor/cut.gif" WIDTH="20" HEIGHT="20" title="Cut"></a>
				<a href="javascript:void(0)" onclick="doExecCommand('Copy')"><img src="../Images/Editor/copy.gif" WIDTH="20" HEIGHT="20" title="Copy"></a>
				<a href="javascript:void(0)" onclick="doExecCommand('Paste')"><img src="../Images/Editor/paste.gif" WIDTH="20" HEIGHT="20" title="Paste"></a>
				<a href="javascript:void(0)" onclick="doExecCommand('Delete')"><img src="../Images/Editor/delete.gif" WIDTH="16" HEIGHT="16" title="Delete"></a>
				<img src="../Images/Editor/separator.gif" WIDTH="5" HEIGHT="20">
				<a href="javascript:void(0)" onclick="doExecCommand('createLink')"><img src="../Images/Editor/link.gif" WIDTH="16" HEIGHT="16" title="CreateLink"></a>
				<img src="../Images/Editor/separator.gif" WIDTH="5" HEIGHT="20">
				<a href="javascript:void(0)" onclick="javascript:{var textEditor = document.getElementById('theEditor');textEditor.focus();editTextRange = textEditor.document.selection.createRange();showPopWin('ShowEditorImage.php', 590, 200, null, null,'插入图片');}"><img src="../Images/Editor/image.gif" WIDTH="16" HEIGHT="16" title="InsertImage"></a>
			   </div>
		       <div style="background-color:#B7D1F4">
			    <img SRC="../Images/Editor/head.gif" WIDTH="10" HEIGHT="26">
				<select onchange="doSelectClick('FormatBlock',this);this.returnValue=false;" style="width: 80px;margin-bottom:4px;">
                  <option>段落格式</option>
                  <option VALUE="&lt;P&gt;">普通</option>
                  <option VALUE="&lt;PRE&gt;">已编排格式</option>
                  <option VALUE="&lt;H1&gt;">标题一</option>
                  <option VALUE="&lt;H2&gt;">标题二</option>
                  <option VALUE="&lt;H3&gt;">标题三</option>
                  <option VALUE="&lt;H4&gt;">标题四</option>
                  <option VALUE="&lt;H5&gt;">标题五</option>
                  <option VALUE="&lt;H6&gt;">标题六</option>
                  <option VALUE="&lt;H7&gt;">标题七</option>
                </select>
				<select onchange="doSelectClick('FontName',this);" style="width: 125px;margin-bottom:4px;">
				    <option selected>字体</option>
					<option value="宋体">宋体</option>
					<option value="黑体">黑体</option>
					<option value="楷体_GB2312">楷体</option>
					<option value="仿宋_GB2312">仿宋</option>
					<option value="隶书">隶书</option>
					<option value="幼圆">幼圆</option>
					<option value="Arial">Arial</option>
					<option value="Arial Black">Arial Black</option>
					<option value="Arial Narrow">Arial Narrow</option>
					<option value="Brush Script	MT">Brush Script MT</option>
					<option value="Century Gothic">Century Gothic</option>
					<option value="Comic Sans MS">Comic Sans MS</option>
					<option value="Courier">Courier</option>
					<option value="Courier New">Courier New</option>
					<option VALUE="Georgia">Georgia
					<option VALUE="impact">impact
					<option value="MS Sans Serif">MS Sans Serif</option>
					<option value="Script">Script</option>
					<option value="System">System</option>
					<option VALUE="Tahoma">Tahoma
					<option value="Times New Roman">Times New Roman</option>
					<option value="Verdana">Verdana</option>
					<option value="Wide	Latin">Wide Latin</option>
					<option value="Wingdings">Wingdings</option>
                </select>
				<select onchange="doSelectClick('FontSize',this);" style="width: 75px;margin-bottom:4px;">
                     <option>字体大小</option>
                     <option VALUE="1">8</option>
                     <option VALUE="2">10</option>
                     <option VALUE="3">12</option>
                     <option VALUE="4">14</option>
                     <option VALUE="5">18</option>
                     <option VALUE="6">24</option>
                     <option VALUE="7">36</option>
               </select>
              <select  name="ForeColor" onChange="doFormat('ForeColor',this[this.selectedIndex].style.color); this.selectedIndex=0" style="width: 80px;margin-bottom:4px;">
				  <OPTION selected>文字颜色
				  <OPTION style="BACKGROUND: #000000; Color: #000000">Black</option>
				  <OPTION style="BACKGROUND: #FFFFFF; Color: #FFFFFF">White</option>
				  <OPTION style="BACKGROUND: #0000FF; Color: #0000FF">Blue 1</option>
				  <OPTION style="BACKGROUND: #2222FF; Color: #2222FF">Blue 2</option>
				  <OPTION style="BACKGROUND: #4444FF; Color: #4444FF">Blue 3</option>
				  <OPTION style="BACKGROUND: #6666FF; Color: #6666FF">Blue 4</option>
				  <OPTION style="BACKGROUND: #333333; Color: #333333">Gray 1</option>
				  <OPTION style="BACKGROUND: #666666; Color: #666666">Gray 2</option>
				  <OPTION style="BACKGROUND: #999999; Color: #999999">Gray 3</option>
				  <OPTION style="BACKGROUND: #EEEEEE; Color: #EEEEEE">Gray 4</option>
				  <OPTION style="BACKGROUND: #004000; Color: #004000">Green 1</option>
				  <OPTION style="BACKGROUND: #006000; Color: #006000">Green 2</option>
				  <OPTION style="BACKGROUND: #008000; Color: #008000">Green 3</option>
				  <OPTION style="BACKGROUND: #00A000; Color: #00A000">Green 4</option>
				  <OPTION style="BACKGROUND: #FF0000; Color: #FF0000">Red 1</option>
				  <OPTION style="BACKGROUND: #FF2222; Color: #FF2222">Red 2</option>
				  <OPTION style="BACKGROUND: #FF4444; Color: #FF4444">Red 3</option>
				  <OPTION style="BACKGROUND: #FF6666; Color: #FF6666">Red 4</option>
				  <OPTION style="BACKGROUND: #FFFF00; Color: #FFFF00">Yellow 1</option>
				  <OPTION style="BACKGROUND: #FFFF33; Color: #FFFF33">Yellow 2</option>
				  <OPTION style="BACKGROUND: #FFFF66; Color: #FFFF66">Yellow 3</option>
				  <OPTION style="BACKGROUND: #FFFF99; Color: #FFFF99">Yellow 4</option>
				</select>
	            <select name="fontbackground" onChange="doFormat('BackColor',this[this.selectedIndex].style.color); this.selectedIndex=0" style="width: 80px;margin-bottom:4px;">
				  <OPTION selected>文字底色</option>
				  <OPTION style="BACKGROUND: #000000; Color: #000000">Black</option>
				  <OPTION style="BACKGROUND: #FFFFFF; Color: #FFFFFF">White</option>
				  <OPTION style="BACKGROUND: #0000FF; Color: #0000FF">Blue 1</option>
				  <OPTION style="BACKGROUND: #2222FF; Color: #2222FF">Blue 2</option>
				  <OPTION style="BACKGROUND: #4444FF; Color: #4444FF">Blue 3</option>
				  <OPTION style="BACKGROUND: #6666FF; Color: #6666FF">Blue 4</option>
				  <OPTION style="BACKGROUND: #333333; Color: #333333">Gray 1</option>
				  <OPTION style="BACKGROUND: #666666; Color: #666666">Gray 2</option>
				  <OPTION style="BACKGROUND: #999999; Color: #999999">Gray 3</option>
				  <OPTION style="BACKGROUND: #EEEEEE; Color: #EEEEEE">Gray 4</option>
				  <OPTION style="BACKGROUND: #004000; Color: #004000">Green 1</option>
				  <OPTION style="BACKGROUND: #006000; Color: #006000">Green 2</option>
				  <OPTION style="BACKGROUND: #008000; Color: #008000">Green 3</option>
				  <OPTION style="BACKGROUND: #00A000; Color: #00A000">Green 4</option>
				  <OPTION style="BACKGROUND: #FF0000; Color: #FF0000">Red 1</option>
				  <OPTION style="BACKGROUND: #FF2222; Color: #FF2222">Red 2</option>
				  <OPTION style="BACKGROUND: #FF4444; Color: #FF4444">Red 3</option>
				  <OPTION style="BACKGROUND: #FF6666; Color: #FF6666">Red 4</option>
				  <OPTION style="BACKGROUND: #FFFF00; Color: #FFFF00">Yellow 1</option>
				  <OPTION style="BACKGROUND: #FFFF33; Color: #FFFF33">Yellow 2</option>
				  <OPTION style="BACKGROUND: #FFFF66; Color: #FFFF66">Yellow 3</option>
				  <OPTION style="BACKGROUND: #FFFF99; Color: #FFFF99">Yellow 4</option>
				</select>		   
              </div>
		      <div id="theEditor" name="theEditor" contentEditable=true style="font-size:100%; overflow:auto;width:100%; font-family: verdana;border:#B7D1F4 1px solid;*padding:10px;height:120px;"></div>
	  </td></tr>   
   </table>
   <table width=100%>
      <tr><td width=20%></td>
	      <td height="23" align="left"><input type=submit class=inputsubmit value="下一步>>" onclick="javascript:savesurveyinfo();">&nbsp;<input class=inputsubmit type="button" name="close" value="取消" onClick="javascript:parent.hidePopWin();">
 		  <input name="Action" type="hidden" id="Action" value="AddSurveySubmit"> 
 		  <input name="surveyInfo" id="surveyInfo" type="hidden">
		  <input name="surveyName" type="hidden" value="{surveyName}"> 
 		  <input name="isCheckIP" type="hidden" value="{isCheckIP}"> 
   		  <input name="isPublic" type="hidden" value="{isPublic}"> 
          </td>
       </tr>
    </table>       
   </form>       
 <script type="text/javascript">initInputHighlightScript();</script> 
</body></html>