<html>
<head>
<meta http-equiv=content-language content=zh-cn>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<style>
 td { padding:2px 5px 2px 5px;}
</style>
<script>
function move(fbox, tbox) {
	var arrFbox = new Array();
	var arrTbox = new Array();
	var arrLookup = new Array();
	var i;
	for (i = 0; i < tbox.options.length; i++) {
		arrLookup[tbox.options[i].text] = tbox.options[i].value;
		arrTbox[i] = tbox.options[i].text;
	}
	var fLength = 0;
	var tLength = arrTbox.length;
	for(i = 0; i < fbox.options.length; i++) {
		arrLookup[fbox.options[i].text] = fbox.options[i].value;
		if (fbox.options[i].selected && fbox.options[i].value != "") {
			arrTbox[tLength] = fbox.options[i].text;
			tLength++;
		}
		else {
			arrFbox[fLength] = fbox.options[i].text;
			fLength++;
		}
	}
	//arrFbox.sort();
	//arrTbox.sort();
	fbox.length = 0;
	tbox.length = 0;
	var c;
	for(c = 0; c < arrFbox.length; c++) {
		var no = new Option();
		no.value = arrLookup[arrFbox[c]];
		no.text = arrFbox[c];
		fbox[c] = no;
	}
	for(c = 0; c < arrTbox.length; c++) {
		var no = new Option();
		no.value = arrLookup[arrTbox[c]];
		no.text = arrTbox[c];
		tbox[c] = no;
	}
}
function Check_Form_Validator()
{
    var theObj = document.getElementById("cateSurveyList");
    for(c = 0; c < theObj.options.length; c++) {
	    theObj.options[c].selected = true;
    }
}
</script>
<link href="../CSS/Base.css" rel=stylesheet>
<meta content="mshtml 6.00.3790.0" name=generator></head>
<body oncontextmenu="return false">
  <form action="" method="post" name="Check_Form" onsubmit="return Check_Form_Validator()" >
  <table class=datatable style="line-height: 150%;border-collapse:collapse;" cellspacing=0 cellpadding=0 bordercolor=#b5cfd9 border=1 width=100%>
     <div class=position>位置：&nbsp; 我的问卷 &raquo; 选择问卷发布到安卓公共客户端</div>
     <tr><td bgcolor="#f5f5f5" colspan=2><b>选择问卷发布到安卓公共客户端</b></td></tr>
	 <tr><td colspan="2" height="25"><span style="float:left"><b>可选择的调查问卷列表</b></span><span style="float:right"><b>已发布的调查问卷</b></td></tr>
	   <tr><td align=left colspan=2 style="margin:0px;padding:0px">
		  <table cellspacing=0 cellpadding=0><tr><td style="margin:0px;padding:0px">
			 <select multiple name="surveyNameList[]" id="surveyNameList" size=22 style="width:400px;*width:410px">
				   {surveyNameList}
			 </select></td>
			 <td style="margin:0px 2px 0px 2px;padding:0px 2px 0px 2px"><input type="button" class=inputsubmit onClick="move(this.form.surveyNameList,this.form.cateSurveyList)" value=">"><br/>
			 <input type="button" class=inputsubmit onClick="move(this.form.cateSurveyList,this.form.surveyNameList)" value="<"></td>
			 <td style="margin:0px;padding:0px">
			 <select name="cateSurveyList[]" id="cateSurveyList" multiple size="22" style="width:402px;*width:412px">
				  {cateSurveyList}
			 </select></td></tr></table>
	 </td></tr></table>
	 <table width=100%>
     <tr align="center"> 
           <td height="15"> 
			 <input name="Action" type="hidden" value="PubSurveySubmit">
			 <input name="nowValue" id="nowValue" type="hidden" value="{nowValue}">
	         <input type=submit class=inputsubmit value="确定">&nbsp;<input type=reset class=inputsubmit value="重置">&nbsp;<input class=inputsubmit type="button" name="close" value="关闭" onClick="javascript:parent.hidePopWin();">
          </td>
        </tr>
    </form>
  </table>
</center>
</body></html>
