<!--#include file="dbconn.asp" -->
<%Dim DConn
dim readJsCkeck
readJsCkeck=0'用来看是否已读出了JS验证代码,0表示没有读出，1表示已读出

survey_id=request("id")
bo=request("bo")'b=1表示是预览模式
Set ObjSurvey = Server.CreateObject("dc_data100_v1_0.survey") 
ObjSurvey.readsurvey "",WebPath,DataPathFile,survey_id,Survey_title,Survey_title_exp,D_T_Active,turnToPage,is_password,is_pw_same,D_T_S_password,D_T_S_e_pw_str,is_lz,is_cookies,StartDate,OverDate
if StartDate>Date() or Date()>OverDate then
	response.redirect "survey-over.html"
end if
%>
<script>
function addLoadEvent(func){<%'//在打开页面时可以同时载入多个函数的函数%>
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {  
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function checkform(gggg){
	<%if bo<>1 then%>
	addCookie(gggg,1,0.0000000000001);
	<%'alert("运行到了这里" + gggg + "/cookies的值"+ getcookie(gggg));%>
	<%end if%>
}

function IsNum(s){<%'//判断是否为数字%>
    if (s!=null && s!=""){
       return !isNaN(s);}
    return false;
}

function IsNumZ(s){<%'//判断是否是正整数%>
    if(s!=null){
        var r,re;
        re = /\d*/i;<%' //\d表示数字,*表示匹配多个数字%>
        r = s.match(re);
        return (r==s)?true:false;
    }
    return false;
}

function GetRadioValue(RadioName){<%'//获取单选按钮(radio)的值%>
var obj;    
obj=document.dcform(RadioName);
if(obj!=null){
	var i;
	for(i=0;i<obj.length;i++){
		if(obj[i].checked){
			return obj[i].value;            
		}
	}
}
return null;
}
function GetRadioValueCd(RadioName){<%'//获取单选按钮(radio)的值,----设置界面时的菜单调用----%>
var obj;    
obj=document.dcformcd(RadioName);
if(obj!=null){
	var i;
	for(i=0;i<obj.length;i++){
		if(obj[i].checked){
			return obj[i].value;            
		}
	}
}
return null;
}
function checkbox(BoxName)<%'//获取复选框的值%>
{
	var str=document.getElementsByName(BoxName);
	var objarray=str.length;
	var chestr="";
	for (i=0;i<objarray;i++){
		if(str[i].checked == true){
		   chestr+=str[i].value+",";
		 }
	}
	if(chestr == ""){
		return null;
		}
	else{
		return chestr;
		}
}

function getcookie(Name) { <%'//读cookies值%>
	var search = Name + "=" 
	var returnvalue = ""; 
	if (document.cookie.length > 0) { 
	offset = document.cookie.indexOf(search) 
	if (offset != -1) { 
	offset += search.length 
	end = document.cookie.indexOf(";", offset); 
	if (end == -1) 
	end = document.cookie.length; 
	returnvalue=unescape(document.cookie.substring(offset, end)) 
	} 
	} 
	return returnvalue; 
} 
	
function addCookie(name,value,expireHours){<%'//写cookies%>
      var cookieString=name+"="+escape(value);
      if(expireHours>0){
             var date=new Date();
             date.setTime(date.getTime+expireHours*3600*1000);
             cookieString=cookieString+"; expire="+date.toGMTString();
      }
      document.cookie=cookieString;
}
function check(receiveArray,checkItem){ 
　　var index = -1;<%'//　函数返回值用于布尔判断 %>
　　for (var i=0;i<receiveArray.length;i++){ 
　　　　if (receiveArray[i]==checkItem){ 
　　　　　　index=i; 
　　　　　　break; 
　　　　} 
　　}
　　return index; 
}

<%'//判断数组中是否有相同的元素，如果有，则返回值为1%>
function ArrayYN(receiveArray){<%'//receiveArray,需要判断的数组%>
　　var arrResult　=　new　Array();<%'　　//定义一个新的数组.方便与以后是数组元素作比较 %>
　　for (var i=0;i<receiveArray.length;i++){ 
　　　　if (check(arrResult,receiveArray[i])　==　-1){　<%'//在这里做i元素与所有以前保留的元素做比较，如果为-1，则表示不相同，则添加到新的数组中 %>
　　　　　　arrResult.push(receiveArray[i]);<%'　//　添加该元素到新数组。如果if内判断为false（即已添加过），则不添加。%>
			 ins=0;
　　　　} else{
			ins=1;
			break;
		}
　　} 
　　return ins; 
}
</script>
<html>
<head>
<title><%=Survey_title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="盛维在线调查系统v9.0免费版">
<meta name="Author" content="盛维中国">
<meta name="Description" content="盛维在线调查系统由盛维中国（www.servor.cn）提供。">
<meta name="keywords"  content="<%=Survey_title%>,问卷调查,调查系统,问卷系统,在线调查系统">
<link rel="stylesheet" href="inc/survey.css" type="text/css">
</head>
<STYLE type=text/css id="survey_style"> 
BODY {
<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_body", survey_id)
response.write css%>
}
div, form, img, ul, ol, li, dl, dt{margin:0;padding:0;border:0px none;}
dd{margin:0;padding:0;border:0px none;clear:both;text-align:left;margin-top:4pt;margin-bottom:4pt;FONT-SIZE: 12px; color: red; background:#ffffff;}
dd a{color:#333333;}
dd a:visited{color:#999999;}
dd a:hover{color:#FF5800;}
h1, h2, h3, h4, h5, h6 {margin:0;padding:0;}
.survey_set {
<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_survey_set", survey_id)
response.write css%>
}
.survey_question_answer {
<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_survey_question_answer", survey_id)
response.write css%>
}
.question {
<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_question", survey_id)
response.write css%>
}
.question_exp{<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_question_exp", survey_id)
response.write css%>}
.answer{
<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_answer", survey_id)
response.write css%>
}
.info_title{
<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_info_title", survey_id)
response.write css%>
}
.info_exp{<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_info_exp", survey_id)
response.write css%>}
.mouse {
<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_mouse", survey_id)
response.write css%>
}
.input_class {
<%css=ObjSurvey.readcss(WebPath, DataPathFile, "css_input_class", survey_id)
response.write css%>
}
.onMouse {   
	event:expression(   
	onmouseover=function()   
	{   
	this.style.backgroundColor='#FEF6E7'   
	},   
	onmouseout=function()   
	{   
	this.style.backgroundColor='#ffffff'   
	}   
	)
	}
</STYLE>


<style type="text/css">
#floater {
	position: absolute;
	left: 500;
	top: 146;
	width: 484;
	visibility: visible;
	z-index: 10;
}
</style>
<body>
<%
ObjSurvey.main "",WebPath,DataPathFile,survey_id,Survey_title,Survey_title_exp,D_T_Active,turnToPage,is_password,is_pw_same,D_T_S_password,D_T_S_e_pw_str,is_lz,is_cookies,StartDate,OverDate,readJsCkeck,bo
caidan survey_id
%>

<%function caidan(survey_id)%>
<div ID="floater">
<script language="javascript" src="inc/lock.js"></script>
<script>
var xmlHttp;
function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
}
function savedata(cssbiao,cssName,cssN) {
	//showLoading(""," 正在保存数据……");
	createXMLHttpRequest();
    xmlHttp.onreadystatechange = handleStateChange;
    xmlHttp.open("GET", "survey/manage/saveSurveyPageSet.asp?surveyid=<%=survey_id%>&cssbiao=" + cssbiao + "&cssName=" + cssName + "&cssN=" + cssN, true);
    xmlHttp.send(null);
}
function handleStateChange() {
    if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
			hiddenLoading();
			//document.getElementById("saveinfo").innerHTML = xmlHttp.responseText;
        }
    }
}
</script>
<!--<div id="saveinfo"></div>-->
<form action="" method="post" enctype="multipart/form-data" name="dcformcd">
<table border="0" align="right" cellpadding="0" cellspacing="0">
  <tr>
    <td height="23" align="right" bgcolor="#3399FF"><input type="button" value="隐藏菜单" name="caidan_button" style="BORDER-TOP-STYLE: none; BORDER-BOTTOM: #666666 0px solid; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: #3399FF;WIDTH: 70px; HEIGHT: 20px;color:ffffff;font-weight:bold;" onClick="javascript:onoffdisplay();"></td>
  </tr>
  <tr>
    <td >
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#3399FF" id="cd">
  <tr>
    <td colspan="2" valign="top" bgcolor="#E9F1FD" style="PADDING:7px;height:350px;">
<SCRIPT src="images/show_cd.js"></SCRIPT>

	<table width="481" border="0" cellpadding="0" cellspacing="0" style="BORDER-RIGHT: #AACCEF 0px solid; BORDER-TOP: #AACCEF 0px solid; BORDER-LEFT: #AACCEF 0px solid;BORDER-BOTTOM: #AACCEF 0px solid;">
    <tr>
    <td height="31" background="images/c_bg010.gif"><DIV class=snew_on id=MMSTabmenu_10 onclick=Show_MMSTab(1,0); style="FLOAT: left">常用显示模式</DIV><DIV class=snew_of id=MMSTabmenu_11 onclick=Show_MMSTab(1,1); style="FLOAT: left">调整显示样式</DIV><DIV class=snew_of id=MMSTabmenu_12 onclick=Show_MMSTab(1,2); style="FLOAT: left">设置前景外框</DIV><DIV class=snew_of id=MMSTabmenu_13 onclick=Show_MMSTab(1,3); style="FLOAT: left">设置背景图片</DIV></td>
    </tr>
    </table>

    <table width="479" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td height="205" align="center" valign="top">
    <DIV id=MMSTabcontent_10 style="MARGIN: 3px auto; WIDTH: 479px; HEIGHT: 24px;">
<table width="479"  border="0" cellpadding="0" cellspacing="1" bgcolor="#AACCEF">
<tr>
<td height="294" align="center" valign="top" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td width="16%" align="right">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
  <tr>
    <td height="21" align="center"><label></label>
      <label>显示宽度</label></td>
    <td height="21" align="left"><label>
      <input name="radio" type="radio" id="radio" onClick="updateSurveyTotalWidth(802)" value="radio" checked>
802px</label>
      <label>
      <input type="radio" name="radio" id="radio" value="radio" onClick="updateSurveyTotalWidth(700)">
700px</label>
<label>
      <input type="radio" name="radio" id="radio" value="radio" onClick="updateSurveyTotalWidth(600)">
600px</label>
      <label>
      <input type="radio" name="radio" id="radio" value="radio" onClick="updateSurveyTotalWidth(500)">
500px</label>
      <label>
      <input type="radio" name="radio" id="radio" value="radio" onClick="updateSurveyTotalWidth(400)">
400px</label>
      <label>
      <input type="radio" name="radio" id="radio" value="radio" onClick="updateSurveyTotalWidth(300)">
300px</label></td>
    </tr>
<!--script language="javascript" src="inc/ShowProcessBar.js"></script-->
<script>
<!--标题FF0000 标题背景色#ffffff 标题说明#000000 标题说明背景AA3939 问题标题FF0000 说明及选项551C1C-->
//function updateSurveyFAColor(c){
	//showLoading("","正在加载数据……");
	//setTimeout("showLoading('','正在加载数据……')",100); 
	//aaa=document.readyState;
	//alert("aaa="+aaa);
	//CollectGarbage();//释放内存
	//updateSurveyFAColor2(c);
	//hiddenLoading();
	//}
function updateSurveyFAColor(c){
//StartShowWait();
switch (c)
{	case 0:{//默认
	savedata("survey_title_id:survey_title_id:survey_title_exp_id:survey_title_exp_width_id:question:question_exp:answer:question:question_exp:answer:info_title:info_title:info_exp:info_exp:input_class:survey_set:mouse","color:background:color:background:color:color:color:background:background:background:color:background:color:background:background:border:color","$000000:url(images/title-bg3.gif):$000000:$D8E7FE:$000000:$000000:$000000:url(images/title_bj_s.jpg):$ffffff:$ffffff:$000000:url(images/title_bj_s.jpg):$000000:$ffffff:url(images/title_bj_s.jpg):1px solid $999:$FEF6E7");
	document.getElementById("survey_title_id").style.color="#000000";
	document.getElementById("survey_title_id").style.background="url(images/title-bg3.gif)";//背景图片
	
	document.getElementById("survey_title_exp_id").style.color="#000000";
	document.getElementById("survey_title_exp_width_id").style.background="#D8E7FE";//设置背景色
	
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".question","color","#000000");//设置问题标题
	sheet.setRuleStyle(".question_exp","color","#000000");
	sheet.setRuleStyle(".answer","color","#000000");
	
	sheet.setRuleStyle(".question","background","url(images/title_bj_s.jpg)");//背景图片
	sheet.setRuleStyle(".question_exp","background","#ffffff");
	sheet.setRuleStyle(".answer","backgroundr","#ffffff");
	
	sheet.setRuleStyle(".info_title","color","#000000");//设置提示信息标题
	sheet.setRuleStyle(".info_title","background","url(images/title_bj_s.jpg)");
	sheet.setRuleStyle(".info_exp","color","#000000");
	sheet.setRuleStyle(".info_exp","background","#ffffff");

	sheet.setRuleStyle(".input_class","background","url(images/title_bj_s.jpg)");//提交栏设置
	
    sheet.setRuleStyle(".survey_set","border","1px solid #999");//设置问题外框
	sheet.setRuleStyle(".mouse","color","#FEF6E7");//鼠标指向的颜色
	break;}
	case 1:{//红色
	savedata("survey_title_id:survey_title_id:survey_title_exp_id:survey_title_exp_width_id:question:question_exp:answer:question:question_exp:answer:info_title:info_title:info_exp:info_exp:input_class:survey_set:mouse","color:background:color:background:color:color:color:background:background:background:color:background:color:background:background:border:color","$FF0000:$ffffff:$ffffff:$AA3939:$FF0000:$551C1C:$551C1C:$ffffff:$ffffff:$ffffff:$FF0000:$ffffff:$551C1C:$ffffff::1px solid $FF0000:$FFBFBF");
	document.getElementById("survey_title_id").style.color="#FF0000";
	document.getElementById("survey_title_id").style.background="#ffffff";//设置背景色
	
	document.getElementById("survey_title_exp_id").style.color="#ffffff";
	document.getElementById("survey_title_exp_width_id").style.background="#AA3939";//设置背景色

	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".question","color","#FF0000");//设置问题标题
	sheet.setRuleStyle(".question_exp","color","#551C1C");
	sheet.setRuleStyle(".answer","color","#551C1C");

	sheet.setRuleStyle(".question","background","#ffffff");//设置问题标题的背景色
	sheet.setRuleStyle(".question_exp","background","#ffffff");
	sheet.setRuleStyle(".answer","background","#ffffff");

	sheet.setRuleStyle(".info_title","color","#FF0000");//设置提示信息标题
	sheet.setRuleStyle(".info_title","background","#ffffff");
	sheet.setRuleStyle(".info_exp","color","#551C1C");
	sheet.setRuleStyle(".info_exp","background","#ffffff");

	sheet.setRuleStyle(".input_class","background","");//提交栏设置
	
    sheet.setRuleStyle(".survey_set","border","1px solid #FF0000");//设置问题外框
	sheet.setRuleStyle(".mouse","color","#FFBFBF");//鼠标指向的颜色
	break;}
	case 2:{
	savedata("survey_title_id:survey_title_id:survey_title_exp_id:survey_title_exp_width_id:question:question_exp:answer:question:question_exp:answer:info_title:info_title:info_exp:info_exp:input_class:survey_set:mouse","color:background:color:background:color:color:color:background:background:background:color:background:color:background:background:border:color","$FFA500:$ffffff:$553E1C:$FFCC80:$FFA500:$553E1C:$553E1C:$ffffff:$ffffff:$ffffff:$FFA500:$ffffff:$553E1C:$ffffff::1px solid $FFA500:$FFE6BF");
	document.getElementById("survey_title_id").style.color="#FFA500";
	document.getElementById("survey_title_id").style.background="#ffffff";//设置背景色
	
	document.getElementById("survey_title_exp_id").style.color="#553E1C";
	document.getElementById("survey_title_exp_width_id").style.background="#FFCC80";//设置背景色
	
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".question","color","#FFA500");//设置问题标题
	sheet.setRuleStyle(".question_exp","color","#553E1C");
	sheet.setRuleStyle(".answer","color","#553E1C");
	
	sheet.setRuleStyle(".question","background","#ffffff");//设置问题标题的背景色
	sheet.setRuleStyle(".question_exp","background","#ffffff");
	sheet.setRuleStyle(".answer","background","#ffffff");
	
	sheet.setRuleStyle(".info_title","color","#FFA500");//设置提示信息标题
	sheet.setRuleStyle(".info_title","backgroundColor","#ffffff");
	sheet.setRuleStyle(".info_exp","color","#553E1C");
	sheet.setRuleStyle(".info_exp","backgroundColor","#ffffff");
	
	sheet.setRuleStyle(".input_class","background","");//提交栏设置
	
    sheet.setRuleStyle(".survey_set","border","1px solid #FFA500");//设置问题外框
	sheet.setRuleStyle(".mouse","color","#FFE6BF");//鼠标指向的颜色
	break;}
	case 3:{
	savedata("survey_title_id:survey_title_id:survey_title_exp_id:survey_title_exp_width_id:question:question_exp:answer:question:question_exp:answer:info_title:info_title:info_exp:info_exp:input_class:survey_set:mouse","color:background:color:background:color:color:color:background:background:background:color:background:color:background:background:border:color","$55551C:$ffffff:$55551C:$FFFF00:$55551C:$55551C:$55551C:$FFFF80:$ffffff:$ffffff:$55551C:$ffffff:$55551C:$FFFFBF::1px solid $AAAA39:$FFFFBF");
	document.getElementById("survey_title_id").style.color="#55551C";
	document.getElementById("survey_title_id").style.background="#ffffff";//设置背景色
	
	document.getElementById("survey_title_exp_id").style.color="#55551C";
	document.getElementById("survey_title_exp_width_id").style.background="#FFFF00";//设置背景色
	
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".question","color","#55551C");//设置问题标题
	sheet.setRuleStyle(".question_exp","color","#55551C");
	sheet.setRuleStyle(".answer","color","#55551C");
	
	sheet.setRuleStyle(".question","background","#FFFF80");//设置问题标题的背景色
	sheet.setRuleStyle(".question_exp","background","#ffffff");
	sheet.setRuleStyle(".answer","background","#ffffff");
	
	sheet.setRuleStyle(".info_title","color","#55551C");//设置提示信息标题
	sheet.setRuleStyle(".info_title","background","#ffffff");
	sheet.setRuleStyle(".info_exp","color","#55551C");
	sheet.setRuleStyle(".info_exp","background","#FFFFBF");
	
	sheet.setRuleStyle(".input_class","background","");//提交栏设置
	
    sheet.setRuleStyle(".survey_set","border","1px solid #AAAA39");//设置问题外框
	sheet.setRuleStyle(".mouse","color","#FFFFBF");//鼠标指向的颜色
	break;}
	case 4:{//绿色
	savedata("survey_title_id:survey_title_id:survey_title_exp_id:survey_title_exp_width_id:question:question_exp:answer:question:question_exp:answer:info_title:info_title:info_exp:info_exp:input_class:survey_set:mouse","color:background:color:background:color:color:color:background:background:background:color:background:color:background:background:border:color","$2D882D:$ffffff:$2D882D:$B6F2B6:$2D882D:$00CC00:$2D882D:$ffffff:$ffffff:$ffffff:$2D882D:$ffffff:$00CC00:$E6FFBF::1px solid $00CC00:$B6F2B6");
	document.getElementById("survey_title_id").style.color="#2D882D";
	document.getElementById("survey_title_id").style.background="#ffffff";//设置背景色
	
	document.getElementById("survey_title_exp_id").style.color="#2D882D";
	document.getElementById("survey_title_exp_width_id").style.background="#B6F2B6";//设置背景色
	
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".question","color","#2D882D");//问题标题
	sheet.setRuleStyle(".question_exp","color","#00CC00");
	sheet.setRuleStyle(".answer","color","#2D882D");
	
	sheet.setRuleStyle(".question","background","#ffffff");//设置问题标题的背景色
	sheet.setRuleStyle(".question_exp","background","#ffffff");
	sheet.setRuleStyle(".answer","background","#ffffff");
	
	sheet.setRuleStyle(".info_title","color","#2D882D");//提示信息标题
	sheet.setRuleStyle(".info_title","background","#ffffff");
	sheet.setRuleStyle(".info_exp","color","#00CC00");
	sheet.setRuleStyle(".info_exp","background","#E6FFBF");
	
	sheet.setRuleStyle(".input_class","background","");//提交栏设置
	
    sheet.setRuleStyle(".survey_set","border","1px solid #00CC00");//设置问题外框
	sheet.setRuleStyle(".mouse","color","#B6F2B6");//鼠标指向的颜色
	break;}
	case 5:{//蓝色
	savedata("survey_title_id:survey_title_id:survey_title_exp_id:survey_title_exp_width_id:question:question_exp:answer:question:question_exp:answer:info_title:info_title:info_exp:info_exp:input_class:survey_set:mouse","color:background:color:background:color:color:color:background:background:background:color:background:color:background:background:border:color","$2D4488:$ffffff:$2D882D:$0033CC:$0033CC:$0033CC:$0033CC:$ffffff:$ffffff:$ffffff:$0033CC:$ffffff:$0033CC:$ffffff::1px solid $0033CC:$B6C5F2");
	document.getElementById("survey_title_id").style.color="#2D4488";
	document.getElementById("survey_title_id").style.background="#ffffff";//设置背景色
	
	document.getElementById("survey_title_exp_id").style.color="#ffffff";
	document.getElementById("survey_title_exp_width_id").style.backgroundColor="#0033CC";//设置背景色
	
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".question","color","#0033CC");//问题标题
	sheet.setRuleStyle(".question_exp","color","#0033CC");
	sheet.setRuleStyle(".answer","color","#0033CC");
	
	sheet.setRuleStyle(".question","background","#ffffff");//设置问题标题的背景色
	sheet.setRuleStyle(".question_exp","background","#ffffff");
	sheet.setRuleStyle(".answer","background","#ffffff");
	
	sheet.setRuleStyle(".info_title","color","#0033CC");//提示信息标题
	sheet.setRuleStyle(".info_title","background","#ffffff");
	sheet.setRuleStyle(".info_exp","color","#0033CC");
	sheet.setRuleStyle(".info_exp","background","#ffffff");
	
	sheet.setRuleStyle(".input_class","background","");//提交栏设置
	
    sheet.setRuleStyle(".survey_set","border","1px solid #0033CC");//设置问题外框
	sheet.setRuleStyle(".mouse","color","#B6C5F2");//鼠标指向的颜色
	break;}
	case 6:{//锭青色
	savedata("survey_title_id:survey_title_id:survey_title_exp_id:survey_title_exp_width_id:question:question_exp:answer:question:question_exp:answer:info_title:info_title:info_exp:info_exp:input_class:survey_set:mouse","color:background:color:background:color:color:color:background:background:background:color:background:color:background:background:border:color","$1C1133:$ffffff:$ffffff:$330099:$330099:$330099:$330099:$ffffff:$ffffff:$ffffff:$330099:$ffffff:$330099:$ffffff::1px solid $330099:$BFACE6");
	document.getElementById("survey_title_id").style.color="#1C1133";
	document.getElementById("survey_title_id").style.background="#ffffff";//设置背景色
	
	document.getElementById("survey_title_exp_id").style.color="#ffffff";
	document.getElementById("survey_title_exp_width_id").style.background="#330099";//设置背景色
	
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".question","color","#330099");//问题标题
	sheet.setRuleStyle(".question_exp","color","#330099");
	sheet.setRuleStyle(".answer","color","#330099");
	
	sheet.setRuleStyle(".question","background","#ffffff");//设置问题标题的背景色
	sheet.setRuleStyle(".question_exp","background","#ffffff");
	sheet.setRuleStyle(".answer","background","#ffffff");
	
	sheet.setRuleStyle(".info_title","color","#330099");//提示信息标题
	sheet.setRuleStyle(".info_title","background","#ffffff");
	sheet.setRuleStyle(".info_exp","color","#330099");
	sheet.setRuleStyle(".info_exp","background","#ffffff");
	
	sheet.setRuleStyle(".input_class","background","");//提交栏设置
	
    sheet.setRuleStyle(".survey_set","border","1px solid #330099");//设置问题外框
	sheet.setRuleStyle(".mouse","color","#BFACE6");//鼠标指向的颜色
	break;}
	case 7:{//紫色
	savedata("survey_title_id:survey_title_id:survey_title_exp_id:survey_title_exp_width_id:question:question_exp:answer:question:question_exp:answer:info_title:info_title:info_exp:info_exp:input_class:survey_set:mouse","color:background:color:background:color:color:color:background:background:background:color:background:color:background:background:border:color","$882D71:$ffffff:$ffffff:$CC0099:$CC0099:$E673C9:$882D71:$ffffff:$ffffff:$ffffff:$CC0099:$ffffff:$E673C9:$ffffff::1px solid $CC0099:$F2B6E3");
	document.getElementById("survey_title_id").style.color="#882D71";
	document.getElementById("survey_title_id").style.background="#ffffff";//设置背景色
	
	document.getElementById("survey_title_exp_id").style.color="#ffffff";
	document.getElementById("survey_title_exp_width_id").style.background="#CC0099";//设置背景色
	
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".question","color","#CC0099");//问题标题
	sheet.setRuleStyle(".question_exp","color","#E673C9");
	sheet.setRuleStyle(".answer","color","#882D71");
	
	sheet.setRuleStyle(".question","background","#ffffff");//设置问题标题的背景色
	sheet.setRuleStyle(".question_exp","background","#ffffff");
	sheet.setRuleStyle(".answer","background","#ffffff");
	
	sheet.setRuleStyle(".info_title","color","#CC0099");//提示信息标题
	sheet.setRuleStyle(".info_title","background","#ffffff");
	sheet.setRuleStyle(".info_exp","color","#E673C9");
	sheet.setRuleStyle(".info_exp","background","#ffffff");
	
	sheet.setRuleStyle(".input_class","background","");//提交栏设置
	
    sheet.setRuleStyle(".survey_set","border","1px solid #CC0099");//设置问题外框
	sheet.setRuleStyle(".mouse","color","#F2B6E3");//鼠标指向的颜色
	break;}
}

}
function updateSurveyFont(a){
	switch (a){
		case 1:{
			savedata("survey_title_id:survey_title_exp_id:survey_title_exp_id:question:question_exp:question_exp:answer:answer:info_title:info_title:info_exp:info_exp","font_size:font_size:line_height:font_size:font_size:line_height:font_size:line_height:font_size:line_height:font_size:line_height","32px:16px:23px:16px:15px:23px:15px:23px:16px:23px:15px:21px");
			document.getElementById("survey_title_id").style.fontSize="32px";
			document.getElementById("survey_title_exp_id").style.fontSize="16px";
			document.getElementById("survey_title_exp_id").style.lineHeight="23px";
			var sheet = new styleSheet(1);
    		sheet.setRuleStyle(".question","fontSize","16px");//问题标题
			sheet.setRuleStyle(".question_exp","fontSize","15px");//问题标题说明
			sheet.setRuleStyle(".question_exp","lineHeight","23px");//问题标题说明行高
			sheet.setRuleStyle(".answer","fontSize","15px");
			sheet.setRuleStyle(".answer","lineHeight","23px");
			sheet.setRuleStyle(".info_title","fontSize","16px");
			sheet.setRuleStyle(".info_title","lineHeight","23px");
			sheet.setRuleStyle(".info_exp","fontSize","15px");
			sheet.setRuleStyle(".info_exp","lineHeight","21px");
			break;
		}
		case 2:{
			savedata("survey_title_id:survey_title_exp_id:survey_title_exp_id:question:question_exp:question_exp:answer:answer:info_title:info_title:info_exp:info_exp","font_size:font_size:line_height:font_size:font_size:line_height:font_size:line_height:font_size:line_height:font_size:line_height","29px:14px:20px:14px:13px:20px:13px:20px:14px:20px:13px:20px");
			document.getElementById("survey_title_id").style.fontSize="29px";
			document.getElementById("survey_title_exp_id").style.fontSize="14px";
			document.getElementById("survey_title_exp_id").style.lineHeight="20px";
			var sheet = new styleSheet(1);
    		sheet.setRuleStyle(".question","fontSize","14px");//问题标题
			sheet.setRuleStyle(".question_exp","fontSize","13px");//问题标题说明
			sheet.setRuleStyle(".question_exp","lineHeight","20px");//问题标题说明行高
			sheet.setRuleStyle(".answer","fontSize","13px");
			sheet.setRuleStyle(".answer","lineHeight","20px");
			sheet.setRuleStyle(".info_title","fontSize","14px");
			sheet.setRuleStyle(".info_title","lineHeight","20px");
			sheet.setRuleStyle(".info_exp","fontSize","13px");
			sheet.setRuleStyle(".info_exp","lineHeight","20px");
			break;
		}
		case 3:{
			savedata("survey_title_id:survey_title_exp_id:survey_title_exp_id:question:question_exp:question_exp:answer:answer:info_title:info_title:info_exp:info_exp","font_size:font_size:line_height:font_size:font_size:line_height:font_size:line_height:font_size:line_height:font_size:line_height","26px:12px:16px:12px:12px:16px:12px:16px:12px:16px:12px:16px");
			document.getElementById("survey_title_id").style.fontSize="26px";
			document.getElementById("survey_title_exp_id").style.fontSize="12px";
			document.getElementById("survey_title_exp_id").style.lineHeight="16px";
			var sheet = new styleSheet(1);
    		sheet.setRuleStyle(".question","fontSize","12px");//问题标题
			sheet.setRuleStyle(".question_exp","fontSize","12px");//问题标题说明
			sheet.setRuleStyle(".question_exp","lineHeight","16px");//问题标题说明行高
			sheet.setRuleStyle(".answer","fontSize","12px");
			sheet.setRuleStyle(".answer","lineHeight","16px");
			sheet.setRuleStyle(".info_title","fontSize","12px");
			sheet.setRuleStyle(".info_title","lineHeight","16px");
			sheet.setRuleStyle(".info_exp","fontSize","12px");
			sheet.setRuleStyle(".info_exp","lineHeight","16px");
			break;
		}
	}
}
function updateSurveyTotalWidth(a){
	switch (a){
		case 802:{
			savedata("web_set:survey_title_exp_width_id:survey_set:survey_question_answer:question:question_exp:answer:info_title:info_exp:input_class","width:width:width:width:width:width:width:width:width:width","802px:714px:714px:704px:698px:698px:698px:698px:698px:714px");
			document.getElementById("web_set").style.width="802px";
			document.getElementById("survey_title_exp_width_id").style.width="714px";
			var sheet = new styleSheet(1);
    		sheet.setRuleStyle(".survey_set","width","714px");
			sheet.setRuleStyle(".survey_question_answer","width","704px");
			sheet.setRuleStyle(".question","width","698px");
			sheet.setRuleStyle(".question_exp","width","698px");
			sheet.setRuleStyle(".answer","width","698px");
			sheet.setRuleStyle(".info_title","width","698px");
			sheet.setRuleStyle(".info_exp","width","698px");
			sheet.setRuleStyle(".input_class","width","714px");			
			break;
		}
		case 700:{
			savedata("web_set:survey_title_exp_width_id:survey_set:survey_question_answer:question:question_exp:answer:info_title:info_exp:input_class","width:width:width:width:width:width:width:width:width:width","700px:612px:612px:602px:596px:596px:596px:596px:596px:612px");
			document.getElementById("web_set").style.width="700px";
			document.getElementById("survey_title_exp_width_id").style.width="612px";
			var sheet = new styleSheet(1);
    		sheet.setRuleStyle(".survey_set","width","612px");
			sheet.setRuleStyle(".survey_question_answer","width","602px");
			sheet.setRuleStyle(".question","width","596px");
			sheet.setRuleStyle(".question_exp","width","596px");
			sheet.setRuleStyle(".answer","width","596px");
			sheet.setRuleStyle(".info_title","width","596px");
			sheet.setRuleStyle(".info_exp","width","596px");
			sheet.setRuleStyle(".input_class","width","612px");
			break;
		}
		case 600:{
			savedata("web_set:survey_title_exp_width_id:survey_set:survey_question_answer:question:question_exp:answer:info_title:info_exp:input_class","width:width:width:width:width:width:width:width:width:width","600px:552px:552px:542px:542px:542px:542px:542px:542px:552px");
			document.getElementById("web_set").style.width="600px";
			document.getElementById("survey_title_exp_width_id").style.width="552px";
			var sheet = new styleSheet(1);
    		sheet.setRuleStyle(".survey_set","width","552px");
			sheet.setRuleStyle(".survey_question_answer","width","542px");
			sheet.setRuleStyle(".question","width","542px");
			sheet.setRuleStyle(".question_exp","width","542px");
			sheet.setRuleStyle(".answer","width","542px");
			sheet.setRuleStyle(".info_title","width","542px");
			sheet.setRuleStyle(".info_exp","width","542px");
			sheet.setRuleStyle(".input_class","width","552px");
			break;
		}
		case 500:{
			savedata("web_set:survey_title_exp_width_id:survey_set:survey_question_answer:question:question_exp:answer:info_title:info_exp:input_class","width:width:width:width:width:width:width:width:width:width","500px:462px:462px:452px:452px:452px:452px:452px:452px:462px");
			document.getElementById("web_set").style.width="500px";
			document.getElementById("survey_title_exp_width_id").style.width="462px";
			var sheet = new styleSheet(1);
    		sheet.setRuleStyle(".survey_set","width","462px");
			sheet.setRuleStyle(".survey_question_answer","width","452px");
			sheet.setRuleStyle(".question","width","452px");
			sheet.setRuleStyle(".question_exp","width","452px");
			sheet.setRuleStyle(".answer","width","452px");
			sheet.setRuleStyle(".info_title","width","452px");
			sheet.setRuleStyle(".info_exp","width","452px");
			sheet.setRuleStyle(".input_class","width","462px");
			break;
		}
		case 400:{
			savedata("web_set:survey_title_exp_width_id:survey_set:survey_question_answer:question:question_exp:answer:info_title:info_exp:input_class","width:width:width:width:width:width:width:width:width:width","400px:362px:362px:350px:350px:350px:350px:350px:350px:362px");
			document.getElementById("web_set").style.width="400px";
			document.getElementById("survey_title_exp_width_id").style.width="362px";
			var sheet = new styleSheet(1);
    		sheet.setRuleStyle(".survey_set","width","362px");
			sheet.setRuleStyle(".survey_question_answer","width","350px");
			sheet.setRuleStyle(".question","width","350px");
			sheet.setRuleStyle(".question_exp","width","350px");
			sheet.setRuleStyle(".answer","width","350px");
			sheet.setRuleStyle(".info_title","width","350px");
			sheet.setRuleStyle(".info_exp","width","350px");
			sheet.setRuleStyle(".input_class","width","362px");
			break;
		}
		case 300:{
			savedata("web_set:survey_title_exp_width_id:survey_set:survey_question_answer:question:question_exp:answer:info_title:info_exp:input_class","width:width:width:width:width:width:width:width:width:width","300px:272px:272px:262px:260px:260px:260px:260px:260px:272px");
			document.getElementById("web_set").style.width="300px";
			document.getElementById("survey_title_exp_width_id").style.width="272px";
			var sheet = new styleSheet(1);
    		sheet.setRuleStyle(".survey_set","width","272px");
			sheet.setRuleStyle(".survey_question_answer","width","262px");
			sheet.setRuleStyle(".question","width","260px");
			sheet.setRuleStyle(".question_exp","width","260px");
			sheet.setRuleStyle(".answer","width","260px");
			sheet.setRuleStyle(".info_title","width","260px");
			sheet.setRuleStyle(".info_exp","width","260px");
			sheet.setRuleStyle(".input_class","width","272px");
			break;
		}
	}
}
function updateSurveySysCss(c){
	if(confirm("您设置的所有样式将全部被系统样式重置,确认需要使用系统的样式吗?")){
		switch (c){
			case 1:{
					document.frm_list.action="survey_edit_set.asp";
					break;
					}
			}
	}	
}
</script>
  <tr>
    <td height="8" colspan="2" align="right"></td>
  </tr>
  <tr>
    <td height="21" align="center">界面色调</td>
    <td><label><input name="surveyFAColor" type="radio" id="surveyFAColor" value="0" onClick="updateSurveyFAColor(0)" checked>
    系统默认</label>　<label><input name="surveyFAColor" type="radio" id="surveyFAColor" value="1" onClick="updateSurveyFAColor(1)">
    红色</label>　<label><input name="surveyFAColor" type="radio" id="surveyFAColor" value="2" onClick="updateSurveyFAColor(2)" >
    橙色</label>　<label><input name="surveyFAColor" type="radio" id="surveyFAColor" value="3" onClick="updateSurveyFAColor(3)" >
    黄色</label>　<label><input name="surveyFAColor" type="radio" id="surveyFAColor" value="4" onClick="updateSurveyFAColor(4)" >
    绿色</label>　<label><input name="surveyFAColor" type="radio" id="surveyFAColor" value="5" onClick="updateSurveyFAColor(5)" >
    蓝色</label>　<label><input name="surveyFAColor" type="radio" id="surveyFAColor" value="6" onClick="updateSurveyFAColor(6)" >
    锭青色</label>　<label><input name="surveyFAColor" type="radio" id="surveyFAColor" value="7" onClick="updateSurveyFAColor(7)" >
    紫色</label></td>
    </tr>
  <tr>
    <td height="8" colspan="2" align="right"></td>
  </tr>
  <tr>
    <td height="21" align="center">字体大小</td>
    <td><label><input name="SurveyFont" type="radio" id="SurveyFont" value="1" onClick="updateSurveyFont(1)">
    大字体
        <input name="SurveyFont" type="radio" id="SurveyFont" onClick="updateSurveyFont(2)" value="2" checked>
中字体
<input name="SurveyFont" type="radio" id="SurveyFont" value="3" onClick="updateSurveyFont(3)">
小字体</label></td>
    </tr>
  <tr>
      <td height="8" colspan="2"></td>
  </tr>
  <tr>
      <td height="1" colspan="2" bgcolor="#ECE9D8"></td>
  </tr>
  <tr>
      <td height="8" colspan="2"></td>
  </tr>
  <tr>
    <td height="21" align="center">&nbsp;</td>
    <td><label><input name="SurveySysCss" type="radio" id="SurveySysCss" value="1" onClick="updateSurveySysCss(1)">恢复系统默认设置</label></td>
  </tr>
  <tr>
    <td height="21" align="center">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table></td>
</tr>
</table>
    </DIV>

    <DIV id=MMSTabcontent_11 style="DISPLAY: none; MARGIN: 0px auto; WIDTH: 481px; HEIGHT: 24px">
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><DIV class=Hangye_on id=MMSTabmenu4_10 onclick=Hangye_info(1,0); style="FLOAT: left">问卷标题</DIV>
<DIV class=Hangye_of id=MMSTabmenu4_11 onclick=Hangye_info(1,1); style="FLOAT: left">问卷问题</DIV>
<DIV class=Hangye_of id=MMSTabmenu4_12 onclick=Hangye_info(1,2); style="FLOAT: left">信息提示</DIV>
<DIV class=Hangye_of id=MMSTabmenu4_13 onclick=Hangye_info(1,3); style="FLOAT: left">提交栏</DIV></td>
        </tr>
      </table>
      
      <table width="479"  border="0" cellpadding="0" cellspacing="1" bgcolor="#AACCEF">
          <tr>
            <td height="272" align="center" valign="top" bgcolor="#FFFFFF">
<DIV id=MMSTabcontent4_10 style="MARGIN: 0px auto; WIDTH: 479px; HEIGHT: 24px">
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="3" style="MARGIN: 5px auto;">
    <tr>
      <td height="26" colspan="7" bgcolor="#FFE6BF">　设置的内容：
        <label><input name="surveyTitle" type="radio"  value="1" checked>
        问卷标题</label>
        <label><input type="radio" name="surveyTitle"  value="2">
        问卷标题的补充说明</label></td>
      </tr>
    <tr>
      <td height="6" colspan="7"></td>
      </tr>
    <tr>
      <td width="10%" height="21" align="right">字体</td>
      <td width="20%" align="left"><label>
        <select name="survey_title_fontFamily" id="survey_title_fontFamily" onChange="javascript:updateSurveyTitleFontFamily();">
          <option value="宋体">宋体</option>
          <option value="黑体">黑体</option>
          <option value="隶书">隶书</option>
          <option value="楷体">楷体</option>
         </select></label>
<SCRIPT>
function updateSurveyTitleFontFamily()//字体
{	bbb=GetRadioValueCd("surveyTitle");
	aaa=document.all.survey_title_fontFamily.value;
	if (bbb==1){
		document.getElementById("survey_title_id").style.fontFamily=aaa;
		savedata("survey_title_id","font_family",aaa);
		}
	else{
		document.getElementById("survey_title_exp_id").style.fontFamily=aaa;
		savedata("survey_title_exp_id","font_family",aaa);
	}
	//bbb=document.all.survey_title_id.style;
	//bbb=document.getElementById("survey_title_id").style;
	//alert(bbb);
	//document.getElementById("survey_title_id").style.background="#EE2C21";
	//document.getElementById("survey_title_id").style.fontSize="60px";
	//document.getElementById("survey_title_id").style.color="blue";
}
function updateSurveyTitleFontSize()//大小
{	bbb=GetRadioValueCd("surveyTitle");
	aaa=document.all.survey_title_fontSize.value;
	if (bbb==1){
		document.getElementById("survey_title_id").style.fontSize=aaa;
		savedata("survey_title_id","font_size",aaa);
		}
	else{
		document.getElementById("survey_title_exp_id").style.fontSize=aaa;
		savedata("survey_title_exp_id","font_size",aaa);
	}
}
function updateSurveyTitleFontHG()//行高
{	bbb=GetRadioValueCd("surveyTitle");
	aaa=document.all.survey_title_fontHG.value;
	if (bbb==1){
		document.getElementById("survey_title_id").style.lineHeight=aaa;
		savedata("survey_title_id","line_height",aaa);
		}
	else{
		document.getElementById("survey_title_exp_id").style.lineHeight=aaa;//aaa;
		savedata("survey_title_exp_id","line_height",aaa);
	}
}
function updateSurveyTitleFontJZ()//间距
{	bbb=GetRadioValueCd("surveyTitle");
	aaa=document.all.survey_title_fontJZ.value;
	if (bbb==1){
		document.getElementById("survey_title_id").style.letterSpacing=aaa;
		savedata("survey_title_id","letter_spacing",aaa);
		}
	else{
		document.getElementById("survey_title_exp_id").style.letterSpacing=aaa;
		savedata("survey_title_exp_id","letter_spacing",aaa);
	}
}
function updateSurveyTitleFontWZ(aaa)//位置
{	bbb=GetRadioValueCd("surveyTitle");
	if (bbb==1){
		document.getElementById("survey_title_id").style.textAlign=aaa;
		savedata("survey_title_id","text_align",aaa);
		}
	else{
		document.getElementById("survey_title_exp_id").style.textAlign=aaa;
		savedata("survey_title_exp_id","text_align",aaa);
	}
}
function updateSurveyTitleFontZX()//字形
{	bbb=GetRadioValueCd("surveyTitle");
	aaa=document.all.FontZX.value;
	
	if (bbb==1){
		document.getElementById("survey_title_id").style.fontWeight=aaa;
		savedata("survey_title_id","font_weight",aaa);
		}
	else{
		document.getElementById("survey_title_exp_id").style.fontWeight=aaa;
		savedata("survey_title_exp_id","font_weight",aaa);
		}
	if (aaa=="bold"){
		document.all.FontZX.value="normal";
		}
	else{
		document.all.FontZX.value="bold";
	}
}
function updateSurveyTitleFontZX2()//字形2
{	bbb=GetRadioValueCd("surveyTitle");
	aaa=document.all.FontZX2.value;	
	if (bbb==1){
		document.getElementById("survey_title_id").style.fontStyle=aaa;
		savedata("survey_title_id","font_style",aaa);
		}
	else{
		document.getElementById("survey_title_exp_id").style.fontStyle=aaa;
		savedata("survey_title_exp_id","font_style",aaa);
		}
	if (aaa=="italic"){
		document.all.FontZX2.value="normal";}
	else{
		document.all.FontZX2.value="italic";
	}
}
function updateColor(sss,aaa)//改变颜色
{
	//alert("sss="+sss);
	switch (sss)
	{
		case 1:{updateSurveyTitleColor(aaa);break;}//问卷标题
		case 11:{updateSurveyQTitleColor(aaa);break;}//问卷问题
		case 12:{updateSurveyIColor(aaa);break;}//提示信息
		case 13:{updateSurveyInputColor(aaa);break;}//提交栏
		case 2:{updateSurveyJJColor(aaa);break;}//前景设置
	}
		
}

function updateSurveyTitleColor(aaa)//问卷标题：字体及背景颜色
{
	ccc=GetRadioValueCd("surveyTitleFont");//１表示字体颜色，２表示背景颜色，３表示背景图片
	//alert("ccc="+ccc);
	if ((ccc==1)||(ccc==2)){//如果是颜色则对颜色值进行处理
		aaa=aaa.substring(0,7);
		if (aaa.length<=3){
			aaa=aaa + "000";
			aaa=aaa.substring(0,4);
		}
		else if ((aaa.length>=5)&(aaa.length<=6)){
			aaa=aaa + "00";
			aaa=aaa.substring(0,7);
		}
	}
	bbb=GetRadioValueCd("surveyTitle");//１表示标题,2表示说明部分
	if (ccc==1){//字体颜色
		document.all.survey_title_Color.value=aaa;
		if (bbb==1){
			document.getElementById("survey_title_id").style.color=aaa;
			savedata("survey_title_id","color",aaa.replace("#","$"));}
		else{
			document.getElementById("survey_title_exp_id").style.color=aaa;
			savedata("survey_title_exp_id","color",aaa.replace("#","$"));
			}}
	else if (ccc==2){//背景色
		document.all.survey_title_ColorBG.value=aaa;
		if (bbb==1){
			document.getElementById("survey_title_id").style.background=aaa;//设置背景色
			savedata("survey_title_id","background",aaa.replace("#","$"));
		}
		else{
			document.getElementById("survey_title_exp_width_id").style.background=aaa;//设置背景色
			savedata("survey_title_exp_width_id","background",aaa.replace("#","$"));
		}
	}
	else if (ccc==3){//背景色是图片
		pic=document.getElementById("survey_title_ColorPIC").value;
		pic="url("+pic+")";
		if (bbb==1){
			document.getElementById("survey_title_id").style.background=pic;
			savedata("survey_title_id","background",pic);
		}
		else{
			document.getElementById("survey_title_exp_width_id").style.background=pic;
			savedata("survey_title_exp_width_id","background",pic);
		}
	}
}

function updateSurveyTitleBJPicClear(ccc){//清除背景颜色及背景图片
	//ccc=GetRadioValueCd("surveyTitleFont");//２表示背景颜色，３表示背景图片
	bbb=GetRadioValueCd("surveyTitle");//１表示标题,2表示说明部分
	//alert("ccc="+ccc);
	document.all.survey_title_ColorBG.value="";
	document.getElementById("survey_title_ColorPIC").value="";
	if (bbb==1){
		document.getElementById("survey_title_id").style.background="";
		savedata("survey_title_id","background","$");
	}
	else{
		document.getElementById("survey_title_exp_width_id").style.background="";
		savedata("survey_title_exp_width_id","background","$");
	}
}

function updateSurveyTitleTop()//顶部间距
{	bbb=GetRadioValueCd("surveyTitle");
	aaa=document.all.surveyTitleTop.value;
	if (bbb==1){
		/*bottom_height=document.getElementById("survey_title_id").style.paddingBottom;
		if (bottom_height==0){
			naaa=55+parseInt(aaa);}//标题的原高度＋新的顶部高度
		else{
			naaa=55+parseInt(aaa)+parseInt(bottom_height);//标题的原高度＋新的顶部高度＋底部高度
		}
		document.getElementById("survey_title_id").style.height=naaa;*///标题的总高度
		document.getElementById("survey_title_id").style.paddingTop=aaa;
		savedata("survey_title_id","padding_top",aaa);
		}
	else{
		document.getElementById("survey_title_exp_id").style.paddingTop=aaa;
		savedata("survey_title_exp_id","padding_top",aaa);
		}
}
function updateSurveyTitleBottom()//底部间距
{	bbb=GetRadioValueCd("surveyTitle");
	aaa=document.all.surveyTitleBottom.value;
	if (bbb==1){
		/*top_height=document.getElementById("survey_title_id").style.paddingTop;
		if (top_height==0){
			naaa=55+parseInt(aaa);}//标题的原高度＋新的底部高度
		else{
			naaa=55+parseInt(aaa)+parseInt(top_height);//标题的原高度＋新的底部高度+顶部高度
		}
		document.getElementById("survey_title_id").style.height=naaa;*///标题的总高度
		document.getElementById("survey_title_id").style.paddingBottom=aaa;
		savedata("survey_title_id","padding_bottom",aaa);
		}
	else{
		document.getElementById("survey_title_exp_id").style.paddingBottom=aaa;
		savedata("survey_title_exp_id","padding_bottom",aaa);
		}
}

function updateSurveyTitleWidth()//显示宽度
{	bbb=GetRadioValueCd("surveyTitle");
	aaa=document.all.SurveyTitleWidth.value;
	aaa2=aaa.replace("%","[")
	if (bbb==1){
		document.getElementById("survey_title_width_id").style.width=aaa;
		savedata("survey_title_width_id","width",aaa2);
		}
	else{
		document.getElementById("survey_title_exp_width_id").style.width=aaa;
		savedata("survey_title_exp_width_id","width",aaa2);
		}
}
</SCRIPT>      </td>
      <td width="7%" align="right">大小</td>
      <td width="14%"><select name="survey_title_fontSize" id="survey_title_fontSize" onChange="javascript:updateSurveyTitleFontSize();">
        <option value="9px">9px</option>
        <option value="10px">10px</option>
        <option value="12px">12px</option>
        <option value="14px">14px</option>
        <option value="16px">16px</option>
        <option value="18px">18px</option>
        <option value="20px">20px</option>
        <option value="24px">24px</option>
        <option value="30px">30px</option>
        <option value="36px">36px</option>
        <option value="small">小</option>
        <option value="medium">中</option>
        <option value="large">大</option>
        <option value="x-large">特大</option>
        <option value="xx-large">极大</option>
      </select></td>
      <td colspan="3" align="left">行高
        <select name="survey_title_fontHG" id="survey_title_fontHG" onChange="javascript:updateSurveyTitleFontHG();">
          <option value="9px">9px</option>
          <option value="10px">10px</option>
          <option value="12px">12px</option>
          <option value="14px">14px</option>
          <option value="16px">16px</option>
          <option value="18px">18px</option>
          <option value="20px">20px</option>
          <option value="22px">22px</option>
          <option value="24px">24px</option>
          <option value="26px">26px</option>
          <option value="28px">28px</option>
          <option value="30px">30px</option>
          <option value="32px">32px</option>
          <option value="36px">36px</option>
          </select>　间距
        <select name="survey_title_fontJZ" id="survey_title_fontJZ" onChange="javascript:updateSurveyTitleFontJZ();">
          <option value="0px">0px</option>
          <option value="1px">1px</option>
          <option value="2px">2px</option>
          <option value="3px">3px</option>
          <option value="4px">4px</option>
          <option value="5px">5px</option>
          <option value="6px">6px</option>
          <option value="7px">7px</option>
          <option value="8px">8px</option>
          <option value="9px">9px</option>
          <option value="10px">10px</option>
          <option value="12px">12px</option>
          <option value="14px">14px</option>
          <option value="16px">16px</option>
          <option value="18px">18px</option>
          <option value="24px">24px</option>
          </select>
          </td>
      </tr>
    <tr>
      <td height="21" align="right">位置</td>
      <td align="left"><a href="javascript:updateSurveyTitleFontWZ('left');" target="_self"><img src="images/left.gif" alt="左对齐" width="23" height="20" border="0"></a>&nbsp;<a href="javascript:updateSurveyTitleFontWZ('center');" target="_self"><img src="images/center.gif" alt="水平居中" width="24" height="20" border="0"></a>&nbsp;<a href="javascript:updateSurveyTitleFontWZ('right');" target="_self"><img src="images/right.gif" alt="右对齐" width="24" height="20" border="0"></a></td>
      <td align="right">字形</td>
      <td align="left"><a href="javascript:updateSurveyTitleFontZX();" target="_self"><img src="images/b.gif" alt="粗体" width="21" height="18" border="0"></a><input name="FontZX" type="hidden" id="FontZX" value="bold">        
        &nbsp;<a href="javascript:updateSurveyTitleFontZX2();" target="_self"><img src="images/i.gif" alt="斜体" width="22" height="18" border="0"></a><input name="FontZX2" type="hidden" id="FontZX2" value="italic"></td>
      <td align="left">&nbsp;</td>
      <td width="13%" align="right">&nbsp;</td>
      <td width="14%">&nbsp;</td>
    </tr>
    
<script>
function f1(chk){
	if (chk==1){
		document.getElementById("survey_title_Color").disabled = false;
		document.getElementById("survey_title_ColorBG").disabled = true;
		document.getElementById("survey_title_ColorPIC").disabled = true;
	}
	else if(chk==2){
		document.getElementById("survey_title_Color").disabled = true;
		document.getElementById("survey_title_ColorBG").disabled = false;
		document.getElementById("survey_title_ColorPIC").disabled = true;
	}
	else if(chk==3){
		document.getElementById("survey_title_Color").disabled = true;
	 	document.getElementById("survey_title_ColorBG").disabled = true;
	 	document.getElementById("survey_title_ColorPIC").disabled = false;
	}
}
</script>
    <tr>
      <td height="1" colspan="7" bgcolor="#ECE9D8"></td>
    </tr>
    <tr>
      <td colspan="3" align="left">　<label><input name="surveyTitleFont" type="radio" id="surveyTitleFont" value="1" onClick="f1(this.value)" checked>字体颜色
        <input name="survey_title_Color" type="text" id="survey_title_Color" onChange="javascript:updateSurveyTitleColor(this.value);" value="#666666" size="6"></label>&nbsp;</td>
      <td colspan="2" align="right"></td>
      <td align="right">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3" align="left">　<label><input type="radio" name="surveyTitleFont" id="surveyTitleFont" value="2" onClick="f1(this.value)">背景颜色
        <input name="survey_title_ColorBG" type="text" id="survey_title_ColorBG" onChange="javascript:updateSurveyTitleColor(this.value);" value="#666666" size="6" disabled></label>&nbsp;<a href="javascript:updateSurveyTitleBJPicClear(2);" target="_self">清除</a></td>
      <td colspan="4" align="left"><label><input type="radio" name="surveyTitleFont" id="surveyTitleFont" value="3" onClick="f1(this.value)">背景图片
        <input name="survey_title_ColorPIC" type="text" disabled id="survey_title_ColorPIC" onChange="javascript:updateSurveyTitleColor(this.value);" value="" size="20"></label>&nbsp;<a href="javascript:updateSurveyTitleBJPicClear(3);" target="_self">清除</a> </td>
      </tr>
    <tr>
      <td height="78" colspan="7" align="center">
<SCRIPT language=JavaScript src="inc/funcs.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>DrawPalette(1);</SCRIPT></td>
      </tr>
     <tr>
      <td height="1" colspan="7" bgcolor="#ECE9D8"></td>
      </tr>
    <tr>
      <td height="21" colspan="7" align="left"><label>　顶部间距</label><select name="surveyTitleTop" id="surveyTitleTop" onChange="javascript:updateSurveyTitleTop();">
          <option value="1">1px</option>
          <option value="2">2px</option>
          <option value="4">4px</option>
          <option value="6">6px</option>
          <option value="7">7px</option>
          <option value="8">8px</option>
          <option value="9">9px</option>
          <option value="10">10px</option>
          <option value="12">12px</option>
          <option value="14">14px</option>
          <option value="16">16px</option>
          <option value="18">18px</option>
          <option value="24">24px</option>
          <option value="36">36px</option>
         </select>　
      底部间距<select name="surveyTitleBottom" id="surveyTitleBottom" onChange="javascript:updateSurveyTitleBottom();">
          <option value="1">1px</option>
          <option value="2">2px</option>
          <option value="4">4px</option>
          <option value="6">6px</option>
          <option value="7">7px</option>
          <option value="8">8px</option>
          <option value="9">9px</option>
          <option value="10">10px</option>
          <option value="12">12px</option>
          <option value="14">14px</option>
          <option value="16">16px</option>
          <option value="18">18px</option>
          <option value="24">24px</option>
          <option value="36">36px</option>
         </select>　
              宽度<label><input name="SurveyTitleWidth" type="text" id="SurveyTitleWidth" size="5" onChange="javascript:updateSurveyTitleWidth(this.value);" value=""></label></td>
      </tr>
  </table>
</DIV>
			
<DIV id=MMSTabcontent4_11 style="DISPLAY: none; MARGIN: 0px auto; WIDTH: 479px; HEIGHT: 24px">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="3" style="MARGIN: 5px auto;">
    <tr>
      <td height="26" colspan="7" bgcolor="#FFE6BF">　设置的内容：
        <label><input name="surveyQ" type="radio"  value="question" checked onClick="document.all.MouseOn.style.display='none'">
        问题标题</label>
        <label><input type="radio" name="surveyQ"  value="question_exp" onClick="document.all.MouseOn.style.display='none'">
        问题说明</label>
        <label><input name="surveyQ" type="radio"  value="answer" onClick="document.all.MouseOn.style.display=''">
        答案选项</label></td>
      </tr>
    <tr>
      <td height="6" colspan="7"></td>
    </tr>
    <tr>
      <td width="10%" height="21" align="right">字体</td>
      <td width="20%" align="left"><label>
        <select name="survey_Q_fontFamily" id="survey_Q_fontFamily" onChange="javascript:updateSurveyQFontFamily();">
          <option value="宋体">宋体</option>
          <option value="黑体">黑体</option>
          <option value="隶书">隶书</option>
         </select></label>
<SCRIPT language=JavaScript src="inc/rule.js" type=text/javascript></SCRIPT>
<SCRIPT>
function updateSurveyQFontFamily()//字体
{	bbb=GetRadioValueCd("surveyQ");
	ccc="."+bbb;
	aaa=document.all.survey_Q_fontFamily.value;
    var sheet = new styleSheet(1);
    sheet.setRuleStyle(ccc,"fontFamily",aaa);
	savedata(bbb,"font_family",aaa);
}
function updateSurveyQTitleFontSize()//大小
{	bbb=GetRadioValueCd("surveyQ");
	ccc="."+bbb;
	aaa=document.all.survey_Qtitle_fontSize.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ccc,"fontSize",aaa);
	savedata(bbb,"font_size",aaa);
}
function updateSurveyQTitleFontHG()//行高
{	bbb=GetRadioValueCd("surveyQ");
	ccc="."+bbb;
	aaa=document.all.survey_Qtitle_fontHG.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ccc,"lineHeight",aaa);
	savedata(bbb,"line_height",aaa);
}
function updateSurveyQTitleFontJZ()//间距
{	bbb=GetRadioValueCd("surveyQ");
	ccc="."+bbb;
	aaa=document.all.survey_Qtitle_fontJZ.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ccc,"letterSpacing",aaa);
	savedata(bbb,"letter_spacing",aaa);
}
function updateSurveyQTitleFontWZ(aaa)//位置
{	bbb=GetRadioValueCd("surveyQ");
	ccc="."+bbb;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ccc,"textAlign",aaa);
	savedata(bbb,"text_align",aaa);
}
function updateSurveyQTitleFontZX()//字形
{	bbb=GetRadioValueCd("surveyQ");
	ccc="."+bbb;
	aaa=document.all.QFontZX.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ccc,"fontWeight",aaa);
	savedata(bbb,"font_weight",aaa);
	if (aaa=="bold"){
		document.all.QFontZX.value="normal";}
	else{
		document.all.QFontZX.value="bold";
	}
}
function updateSurveyQTitleFontZX2()//字形2
{	bbb=GetRadioValueCd("surveyQ");
	ccc="."+bbb;
	aaa=document.all.QFontZX2.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ccc,"fontStyle",aaa);
	savedata(bbb,"font_style",aaa);
	if (aaa=="italic"){
		document.all.QFontZX2.value="normal";}
	else{
		document.all.QFontZX2.value="italic";
	}
}

function updateSurveyQTitleColor(aaa)//问题标题：字体及背景颜色
{
	//alert("aaa="+aaa);
	ccc=GetRadioValueCd("surveyQTitleFont");//１表示字体颜色，２表示背景颜色，３表示背景图片,4表示鼠标指向的颜色
	//alert("ccc="+ccc);
	if ((ccc==1)||(ccc==2)){//如果是颜色则对颜色值进行处理
		aaa=aaa.substring(0,7);
		if (aaa.length<=3){
			aaa=aaa + "000";
			aaa=aaa.substring(0,4);
		}
		else if ((aaa.length>=5)&(aaa.length<=6)){
			aaa=aaa + "00";
			aaa=aaa.substring(0,7);
		}
	}
	bbb=GetRadioValueCd("surveyQ");//１表示标题,2表示说明部分
	ddd="."+bbb;
	if (ccc==1){//字体颜色
		document.all.survey_Qtitle_Color.value=aaa;
		var sheet = new styleSheet(1);
    	sheet.setRuleStyle(ddd,"color",aaa);
		savedata(bbb,"color",aaa.replace("#","$"));}
	else if (ccc==2){//背景色
		document.all.survey_Qtitle_ColorBG.value=aaa;
		var sheet = new styleSheet(1);
		//sheet.setRuleStyle(bbb,"background","");//先清除背景图片
    	sheet.setRuleStyle(ddd,"background",aaa);
		savedata(bbb,"background",aaa.replace("#","$"));
	}
	else if (ccc==3){//背景色是图片
		document.getElementById("survey_Qtitle_ColorPIC").value=aaa;
		pic="url(" + aaa + ")";
		var sheet = new styleSheet(1);
    	sheet.setRuleStyle(ddd,"background",pic);
		savedata(bbb,"background",pic);
	}
	else if (ccc==4){//鼠标指向的颜色
		//alert("aaa="+aaa);
		document.getElementById("survey_QMouse_Color").value=aaa;
		var sheet = new styleSheet(1);
    	sheet.setRuleStyle(".mouse","color",aaa);
		savedata("mouse","color",aaa.replace("#","$"));
	}
}
function updateSurveyQBJColorClear(){//清除背景颜色
	bbb=GetRadioValueCd("surveyQ");
	ddd="."+bbb;
	document.getElementById("survey_Qtitle_ColorBG").value="";
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"background","");
	savedata(bbb,"background","$");
}
function updateSurveyQMColorClear(){//清除鼠标指向颜色
	//fff=document.styleSheets('survey_style').rules[24].style.color;//.onMouse 
	//alert("fff="+fff);
	document.getElementById("survey_QMouse_Color").value="";
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".mouse","color","");
	savedata("mouse","color","$");
}
function updateSurveyQBJPicClear(){//清除图片背景
	bbb=GetRadioValueCd("surveyQ");
	ddd="."+bbb;
	document.getElementById("survey_Qtitle_ColorPIC").value="";
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"background","");
	savedata(bbb,"background","$");
}

function updateSurveyQTitleTop()//顶部间距
{	bbb=GetRadioValueCd("surveyQ");
	ddd="."+bbb;
	aaa=document.all.surveyQTitleTop.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"paddingTop",aaa);
	savedata(bbb,"padding_top",aaa);
}
function updateSurveyQTitleBottom()//底部间距
{	bbb=GetRadioValueCd("surveyQ");
	ddd="."+bbb;
	aaa=document.all.surveyQTitleBottom.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"paddingBottom",aaa);
	savedata(bbb,"padding_bottom",aaa);
}
function updateSurveyQTitleWidth()//显示宽度
{	bbb=GetRadioValueCd("surveyQ");
	ddd="."+bbb;
	aaa=document.all.SurveyQTitleWidth.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"width",aaa);
	aaa2=aaa.replace("%","[")
	savedata(bbb,"width",aaa2);
}
</SCRIPT></td>
      <td width="7%" align="right">大小</td>
      <td width="14%"><select name="survey_Qtitle_fontSize" id="survey_Qtitle_fontSize" onChange="javascript:updateSurveyQTitleFontSize();">
        <option value="9px">9px</option>
        <option value="10px">10px</option>
        <option value="12px">12px</option>
        <option value="14px">14px</option>
        <option value="16px">16px</option>
        <option value="18px">18px</option>
        <option value="20px">20px</option>
        <option value="24px">24px</option>
        <option value="30px">30px</option>
        <option value="36px">36px</option>
        <option value="small">小</option>
        <option value="medium">中</option>
        <option value="large">大</option>
        <option value="x-large">特大</option>
        <option value="xx-large">极大</option>
      </select></td>
      <td colspan="3" align="left">行高
        <select name="survey_Qtitle_fontHG" id="survey_Qtitle_fontHG" onChange="javascript:updateSurveyQTitleFontHG();">
          <option value="9px">9px</option>
          <option value="10px">10px</option>
          <option value="12px">12px</option>
          <option value="14px">14px</option>
          <option value="16px">16px</option>
          <option value="18px">18px</option>
          <option value="20px">20px</option>
          <option value="22px">22px</option>
          <option value="24px">24px</option>
          <option value="26px">26px</option>
          <option value="28px">28px</option>
          <option value="30px">30px</option>
          <option value="32px">32px</option>
          <option value="36px">36px</option>
          </select>　间距
        <select name="survey_Qtitle_fontJZ" id="survey_Qtitle_fontJZ" onChange="javascript:updateSurveyQTitleFontJZ();">
          <option value="0px">0px</option>
          <option value="1px">1px</option>

          <option value="2px">2px</option>
          <option value="3px">3px</option>
          <option value="4px">4px</option>
          <option value="5px">5px</option>
          <option value="6px">6px</option>
          <option value="7px">7px</option>
          <option value="8px">8px</option>
          <option value="9px">9px</option>
          <option value="10px">10px</option>
          <option value="12px">12px</option>
          <option value="14px">14px</option>
          <option value="16px">16px</option>
          <option value="18px">18px</option>
          <option value="24px">24px</option>
          </select>          </td>
      </tr>
    <tr>
      <td height="21" align="right">位置</td>
      <td align="left"><a href="javascript:updateSurveyQTitleFontWZ('left');" target="_self"><img src="images/left.gif" alt="左对齐" width="23" height="20" border="0"></a>&nbsp;<a href="javascript:updateSurveyQTitleFontWZ('center');" target="_self"><img src="images/center.gif" alt="水平居中" width="24" height="20" border="0"></a>&nbsp;<a href="javascript:updateSurveyQTitleFontWZ('right');" target="_self"><img src="images/right.gif" alt="右对齐" width="24" height="20" border="0"></a></td>
      <td align="right">字形</td>
      <td align="left"><a href="javascript:updateSurveyQTitleFontZX();" target="_self"><img src="images/b.gif" alt="粗体" width="21" height="18" border="0"></a><input name="QFontZX" type="hidden" id="QFontZX" value="bold">        
        &nbsp;<a href="javascript:updateSurveyQTitleFontZX2();" target="_self"><img src="images/i.gif" alt="斜体" width="22" height="18" border="0"></a><input name="QFontZX2" type="hidden" id="QFontZX2" value="italic"></td>
      <td align="left">&nbsp;</td>
      <td width="13%" align="right">&nbsp;</td>
      <td width="14%">&nbsp;</td>
    </tr>
    
<script>
function f1_1(chk){
	if (chk==1){
		document.getElementById("survey_Qtitle_Color").disabled = false;
		document.getElementById("survey_Qtitle_ColorBG").disabled = true;
		document.getElementById("survey_Qtitle_ColorPIC").disabled = true;
		document.getElementById("survey_QMouse_Color").disabled = true;
	}
	else if(chk==2){
		document.getElementById("survey_Qtitle_Color").disabled = true;
		document.getElementById("survey_Qtitle_ColorBG").disabled = false;
		document.getElementById("survey_Qtitle_ColorPIC").disabled = true;
		document.getElementById("survey_QMouse_Color").disabled = true;
	}
	else if(chk==3){
		document.getElementById("survey_Qtitle_Color").disabled = true;
	 	document.getElementById("survey_Qtitle_ColorBG").disabled = true;
	 	document.getElementById("survey_Qtitle_ColorPIC").disabled = false;
		document.getElementById("survey_QMouse_Color").disabled = true;
	}
	else if(chk==4){
		document.getElementById("survey_Qtitle_Color").disabled = true;
	 	document.getElementById("survey_Qtitle_ColorBG").disabled = true;
	 	document.getElementById("survey_Qtitle_ColorPIC").disabled = true;
		document.getElementById("survey_QMouse_Color").disabled = false;
	}
}
</script>
    <tr>
      <td height="1" colspan="7" bgcolor="#ECE9D8"></td>
    </tr>
    <tr>
      <td colspan="3" align="left">　<label><input name="surveyQTitleFont" type="radio" id="surveyQTitleFont" value="1" onClick="f1_1(this.value)" checked>字体颜色
        <input name="survey_Qtitle_Color" type="text" id="survey_Qtitle_Color" onChange="javascript:updateSurveyQTitleColor(this.value);" value="#666666" size="6"></label></td>
      <td colspan="4" align="left"><div id="MouseOn" style="display:none;"><label><input name="surveyQTitleFont" type="radio" id="surveyQTitleFont" value="4" onClick="f1_1(this.value)">鼠标指向显示颜色
            <input name="survey_QMouse_Color" type="text" id="survey_QMouse_Color" onChange="javascript:updateSurveyQTitleColor(this.value);" value="#FEF6E7" size="6"></label>&nbsp;<a href="javascript:updateSurveyQMColorClear();" target="_self">清除</a></div></td>
      </tr>
    <tr>
      <td colspan="3" align="left">　<label><input type="radio" name="surveyQTitleFont" id="surveyQTitleFont" value="2" onClick="f1_1(this.value)">背景颜色
        <input name="survey_Qtitle_ColorBG" type="text" id="survey_Qtitle_ColorBG" onChange="javascript:updateSurveyQTitleColor(this.value);" value="#666666" size="6" disabled></label>&nbsp;<a href="javascript:updateSurveyQBJColorClear();" target="_self">清除</a></td>
      <td colspan="4" align="left"><label><input type="radio" name="surveyQTitleFont" id="surveyQTitleFont" value="3" onClick="f1_1(this.value)">背景图片
        <input name="survey_Qtitle_ColorPIC" type="text" disabled id="survey_Qtitle_ColorPIC" onChange="javascript:updateSurveyQTitleColor(this.value);" value="" size="20"></label>&nbsp;<a href="javascript:updateSurveyQBJPicClear();" target="_self">清除</a> </td>
      </tr>
    <tr>
      <td height="78" colspan="7" align="center">
<SCRIPT language=JavaScript src="inc/funcs.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>DrawPalette(11);</SCRIPT></td>
      </tr>
     <tr>
      <td height="1" colspan="7" bgcolor="#ECE9D8"></td>
    </tr>
    <tr>
      <td height="21" colspan="7" align="left"><label>　顶部间距</label><select name="surveyQTitleTop" id="surveyQTitleTop" onChange="javascript:updateSurveyQTitleTop();">
          <option value="1">1px</option>
          <option value="2">2px</option>
          <option value="4">4px</option>
          <option value="6">6px</option>
          <option value="7">7px</option>
          <option value="8">8px</option>
          <option value="9">9px</option>
          <option value="10">10px</option>
          <option value="12">12px</option>
          <option value="14">14px</option>
          <option value="16">16px</option>
          <option value="18">18px</option>
          <option value="24">24px</option>
          <option value="36">36px</option>
         </select>　
      底部间距<select name="surveyQTitleBottom" id="surveyQTitleBottom" onChange="javascript:updateSurveyQTitleBottom();">
          <option value="1">1px</option>
          <option value="2">2px</option>
          <option value="4">4px</option>
          <option value="6">6px</option>
          <option value="7">7px</option>
          <option value="8">8px</option>
          <option value="9">9px</option>
          <option value="10">10px</option>
          <option value="12">12px</option>
          <option value="14">14px</option>
          <option value="16">16px</option>
          <option value="18">18px</option>
          <option value="24">24px</option>
          <option value="36">36px</option>
         </select>　
              宽度<label><input name="SurveyQTitleWidth" type="text" id="SurveyQTitleWidth" size="5" onChange="javascript:updateSurveyQTitleWidth(this.value);" value=""></label></td>
      </tr>
  </table>
</DIV>

<DIV id=MMSTabcontent4_12 style="DISPLAY: none; MARGIN: 0px auto; WIDTH: 479px; HEIGHT: 24px">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="3" style="MARGIN: 5px auto;">
    <tr>
      <td height="26" colspan="7" bgcolor="#FFE6BF">　设置的内容：
        <label><input name="surveyI" type="radio"  value="info_title" checked>
        提示标题</label>
        <label><input type="radio" name="surveyI"  value="info_exp">
        补充说明</label></td>
      </tr>
    <tr>
      <td height="6" colspan="7"></td>
      </tr>
    <tr>
      <td width="10%" height="21" align="right">字体</td>
      <td width="20%" align="left"><label>
        <select name="survey_IfontFamily" id="survey_IfontFamily" onChange="javascript:updateSurveyIFontFamily();">
          <option value="宋体">宋体</option>
          <option value="黑体">黑体</option>
          <option value="隶书">隶书</option>
         </select></label>
<SCRIPT>
function updateSurveyIFontFamily()//字体

{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	aaa=document.all.survey_IfontFamily.value;
    var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"fontFamily",aaa);
	savedata(bbb,"font_family",aaa);
}
function updateSurveyIFontSize()//大小
{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	aaa=document.all.survey_IfontSize.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"fontSize",aaa);
	savedata(bbb,"font_size",aaa);
}
function updateSurveyIFontHG()//行高
{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	aaa=document.all.survey_IfontHG.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"lineHeight",aaa);
	savedata(bbb,"line_height",aaa);
}
function updateSurveyIFontJZ()//间距
{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	aaa=document.all.survey_IfontJZ.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"letterSpacing",aaa);
	savedata(bbb,"letter_spacing",aaa);
}
function updateSurveyIFontWZ(aaa)//位置
{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"textAlign",aaa);
	savedata(bbb,"text_align",aaa);
}
function updateSurveyIFontZX()//字形
{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	aaa=document.all.IFontZX.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"fontWeight",aaa);
	savedata(bbb,"font_weight",aaa);
	if (aaa=="bold"){
		document.all.IFontZX.value="normal";}
	else{
		document.all.IFontZX.value="bold";
	}
}
function updateSurveyIFontZX2()//字形2
{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	aaa=document.all.IFontZX2.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"fontStyle",aaa);
	savedata(bbb,"font_style",aaa);
	if (aaa=="italic"){
		document.all.IFontZX2.value="normal";}
	else{
		document.all.IFontZX2.value="italic";
	}
}

function updateSurveyIColor(aaa)//问题标题：字体及背景颜色
{
	//alert("aaa="+aaa);
	ccc=GetRadioValueCd("surveyIFont");//１表示字体颜色，２表示背景颜色，３表示背景图片,4表示鼠标指向的颜色
	//alert("ccc="+ccc);
	if ((ccc==1)||(ccc==2)){//如果是颜色则对颜色值进行处理
		aaa=aaa.substring(0,7);
		if (aaa.length<=3){
			aaa=aaa + "000";
			aaa=aaa.substring(0,4);
		}
		else if ((aaa.length>=5)&(aaa.length<=6)){
			aaa=aaa + "00";
			aaa=aaa.substring(0,7);
		}
	}
	bbb=GetRadioValueCd("surveyI");//１表示标题,2表示说明部分
	ddd="."+bbb;
	if (ccc==1){//字体颜色
		document.all.survey_IColor.value=aaa;
		var sheet = new styleSheet(1);
    	sheet.setRuleStyle(ddd,"color",aaa);
		savedata(bbb,"color",aaa);}
	else if (ccc==2){//背景色
		document.all.survey_IColorBG.value=aaa;
		var sheet = new styleSheet(1);
    	//sheet.setRuleStyle(ddd,"background","");//先清除背景图片，再设置背景颜色
		sheet.setRuleStyle(ddd,"background",aaa)
		savedata(bbb,"background",aaa.replace("#","$"));;
	}
	else if (ccc==3){//背景色是图片
		document.getElementById("survey_IColorPIC").value=aaa;
		pic="url(" + aaa + ")";
		var sheet = new styleSheet(1);
    	sheet.setRuleStyle(ddd,"background",pic);
		savedata(bbb,"background",pic);
	}
}
function updateSurveyIBJColorClear(){//清除背景颜色及图片背景
	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	document.getElementById("survey_IColorBG").value="";
	document.getElementById("survey_IColorPIC").value="";
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"background","");
	savedata(bbb,"background","$");
}
function updateSurveyITop()//顶部间距
{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	aaa=document.all.surveyITop.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"paddingTop",aaa);
	savedata(bbb,"padding_top",aaa);
}
function updateSurveyIBottom()//底部间距
{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	aaa=document.all.surveyIBottom.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"paddingBottom",aaa);
	savedata(bbb,"padding_bottom",aaa);
}
function updateSurveyIWidth()//显示宽度
{	bbb=GetRadioValueCd("surveyI");
	ddd="."+bbb;
	aaa=document.all.SurveyIWidth.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(ddd,"width",aaa);
	aaa2=aaa.replace("%","[")
	savedata(bbb,"width",aaa2);
}
</SCRIPT>      </td>
      <td width="7%" align="right">大小</td>
      <td width="14%"><select name="survey_IfontSize" id="survey_IfontSize" onChange="javascript:updateSurveyIFontSize();">
        <option value="9px">9px</option>
        <option value="10px">10px</option>
        <option value="12px">12px</option>
        <option value="14px">14px</option>
        <option value="16px">16px</option>
        <option value="18px">18px</option>
        <option value="20px">20px</option>
        <option value="24px">24px</option>
        <option value="30px">30px</option>
        <option value="36px">36px</option>
        <option value="small">小</option>
        <option value="medium">中</option>
        <option value="large">大</option>
        <option value="x-large">特大</option>
        <option value="xx-large">极大</option>
      </select></td>
      <td colspan="3" align="left">行高
        <select name="survey_IfontHG" id="survey_IfontHG" onChange="javascript:updateSurveyIFontHG();">
          <option value="9px">9px</option>
          <option value="10px">10px</option>
          <option value="12px">12px</option>
          <option value="14px">14px</option>
          <option value="16px">16px</option>
          <option value="18px">18px</option>
          <option value="20px">20px</option>
          <option value="22px">22px</option>
          <option value="24px">24px</option>
          <option value="26px">26px</option>
          <option value="28px">28px</option>
          <option value="30px">30px</option>
          <option value="32px">32px</option>
          <option value="36px">36px</option>
          </select>　间距
        <select name="survey_IfontJZ" id="survey_IfontJZ" onChange="javascript:updateSurveyIFontJZ();">
          <option value="0px">0px</option>
          <option value="1px">1px</option>

          <option value="2px">2px</option>
          <option value="3px">3px</option>
          <option value="4px">4px</option>
          <option value="5px">5px</option>
          <option value="6px">6px</option>
          <option value="7px">7px</option>
          <option value="8px">8px</option>
          <option value="9px">9px</option>
          <option value="10px">10px</option>
          <option value="12px">12px</option>
          <option value="14px">14px</option>
          <option value="16px">16px</option>
          <option value="18px">18px</option>
          <option value="24px">24px</option>
          </select>
          </td>
      </tr>
    <tr>
      <td height="21" align="right">位置</td>
      <td align="left"><a href="javascript:updateSurveyIFontWZ('left');" target="_self"><img src="images/left.gif" alt="左对齐" width="23" height="20" border="0"></a>&nbsp;<a href="javascript:updateSurveyIFontWZ('center');" target="_self"><img src="images/center.gif" alt="水平居中" width="24" height="20" border="0"></a>&nbsp;<a href="javascript:updateSurveyIFontWZ('right');" target="_self"><img src="images/right.gif" alt="右对齐" width="24" height="20" border="0"></a></td>
      <td align="right">字形</td>
      <td align="left"><a href="javascript:updateSurveyIFontZX();" target="_self"><img src="images/b.gif" alt="粗体" width="21" height="18" border="0"></a><input name="IFontZX" type="hidden" id="IFontZX" value="bold">        
        &nbsp;<a href="javascript:updateSurveyIFontZX2();" target="_self"><img src="images/i.gif" alt="斜体" width="22" height="18" border="0"></a><input name="IFontZX2" type="hidden" id="IFontZX2" value="italic"></td>
      <td align="left">&nbsp;</td>
      <td width="13%" align="right">&nbsp;</td>
      <td width="14%">&nbsp;</td>
    </tr>
    
<script>
function f1_2(chk){
	if (chk==1){
		document.getElementById("survey_IColor").disabled = false;
		document.getElementById("survey_IColorBG").disabled = true;
		document.getElementById("survey_IColorPIC").disabled = true;
	}
	else if(chk==2){
		document.getElementById("survey_IColor").disabled = true;
		document.getElementById("survey_IColorBG").disabled = false;
		document.getElementById("survey_IColorPIC").disabled = true;
	}
	else if(chk==3){
		document.getElementById("survey_IColor").disabled = true;
	 	document.getElementById("survey_IColorBG").disabled = true;
	 	document.getElementById("survey_IColorPIC").disabled = false;
	}
}
</script>
    <tr>
      <td height="1" colspan="7" bgcolor="#ECE9D8"></td>
    </tr>
    <tr>
      <td colspan="3" align="left">　<label><input name="surveyIFont" type="radio" id="surveyIFont" value="1" onClick="f1_2(this.value)" checked>字体颜色
        <input name="survey_IColor" type="text" id="survey_IColor" onChange="javascript:updateSurveyIColor(this.value);" value="#666666" size="6"></label></td>
      <td colspan="2" align="right"></td>
      <td align="right">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3" align="left">　<label><input type="radio" name="surveyIFont" id="surveyIFont" value="2" onClick="f1_2(this.value)">背景颜色
        <input name="survey_IColorBG" type="text" id="survey_IColorBG" onChange="javascript:updateSurveyIColor(this.value);" value="#666666" size="6" disabled></label>&nbsp;<a href="javascript:updateSurveyIBJColorClear();" target="_self">清除</a></td>
      <td colspan="4" align="left"><label><input type="radio" name="surveyIFont" id="surveyIFont" value="3" onClick="f1_2(this.value)">背景图片
        <input name="survey_IColorPIC" type="text" disabled id="survey_IColorPIC" onChange="javascript:updateSurveyIColor(this.value);" value="" size="20"></label>&nbsp;<a href="javascript:updateSurveyIBJColorClear();" target="_self">清除</a> </td>
      </tr>
    <tr>
      <td height="78" colspan="7" align="center">
<SCRIPT language=JavaScript src="inc/funcs.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>DrawPalette(12);</SCRIPT></td>
      </tr>
     <tr>
      <td height="1" colspan="7" bgcolor="#ECE9D8"></td>
    </tr>
    <tr>
      <td height="21" colspan="7" align="left"><label>　顶部间距</label><select name="surveyITop" id="surveyITop" onChange="javascript:updateSurveyITop();">
          <option value="1">1px</option>
          <option value="2">2px</option>
          <option value="4">4px</option>
          <option value="6">6px</option>
          <option value="7">7px</option>
          <option value="8">8px</option>
          <option value="9">9px</option>
          <option value="10">10px</option>
          <option value="12">12px</option>
          <option value="14">14px</option>
          <option value="16">16px</option>
          <option value="18">18px</option>
          <option value="24">24px</option>
          <option value="36">36px</option>
         </select>　
      底部间距<select name="surveyIBottom" id="surveyIBottom" onChange="javascript:updateSurveyIBottom();">
          <option value="1">1px</option>
          <option value="2">2px</option>
          <option value="4">4px</option>
          <option value="6">6px</option>
          <option value="7">7px</option>
          <option value="8">8px</option>
          <option value="9">9px</option>
          <option value="10">10px</option>
          <option value="12">12px</option>
          <option value="14">14px</option>
          <option value="16">16px</option>
          <option value="18">18px</option>
          <option value="24">24px</option>
          <option value="36">36px</option>
         </select>　
              宽度<label><input name="SurveyIWidth" type="text" id="SurveyIWidth" size="5" onChange="javascript:updateSurveyIWidth(this.value);" value=""></label></td>
      </tr>
  </table>
</DIV>

<DIV id=MMSTabcontent4_13 style="DISPLAY: none; MARGIN: 0px auto; WIDTH: 479px; HEIGHT: 24px">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="3" style="MARGIN: 5px auto;"><!--提交栏-->
    <tr>
      <td height="6" colspan="6"></td>
      </tr>
    <tr>
      <td width="19%" height="21" align="right">显示位置</td>
      <td width="21%" align="left"><a href="javascript:updateSurveyInputFontWZ('left');" target="_self"><img src="images/left.gif" alt="左对齐" width="23" height="20" border="0"></a>&nbsp;<a href="javascript:updateSurveyInputFontWZ('center');" target="_self"><img src="images/center.gif" alt="水平居中" width="24" height="20" border="0"></a>&nbsp;<a href="javascript:updateSurveyInputFontWZ('right');" target="_self"><img src="images/right.gif" alt="右对齐" width="24" height="20" border="0"></a></td>
      <td width="13%" align="left">&nbsp;</td>
      <td width="17%" align="left">&nbsp;</td>
      <td width="13%" align="right">&nbsp;</td>
      <td width="17%">&nbsp;</td>
    </tr>  
<script>

function updateSurveyInputFontWZ(aaa)//位置
{	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".input_class","textAlign",aaa);
	savedata("input_class","text_align",aaa);
}

function updateSurveyInputColor(aaa)//问题标题：字体及背景颜色
{
	//alert("aaa="+aaa);
	ccc=GetRadioValueCd("surveyInputFont");//２表示背景颜色，３表示背景图片
	//alert("ccc="+ccc);
	if (ccc==2){//如果是颜色则对颜色值进行处理
		aaa=aaa.substring(0,7);
		if (aaa.length<=3){
			aaa=aaa + "000";
			aaa=aaa.substring(0,4);
		}
		else if ((aaa.length>=5)&(aaa.length<=6)){
			aaa=aaa + "00";
			aaa=aaa.substring(0,7);
		}
	}
	//bbb=GetRadioValueCd("surveyInput");//2表示背景色,３表示背景色是图片
	if (ccc==2){//背景色
		document.all.survey_Input_ColorBG.value=aaa;
		var sheet = new styleSheet(1);
		sheet.setRuleStyle(".input_class","background",aaa);
		savedata("input_class","background",aaa.replace("#","$"));
	}
	else if (ccc==3){//背景色是图片
		document.getElementById("survey_Input_ColorPIC").value=aaa;
		pic="url(" + aaa + ")";
		var sheet = new styleSheet(1);
    	sheet.setRuleStyle(".input_class","background",pic);
		savedata("input_class","background",pic);
	}
}
function updateSurveyInputBJColorClear(){//清除背景颜色
	document.getElementById("survey_Input_ColorBG").value="";
	document.getElementById("survey_Input_ColorPIC").value="";
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".input_class","background","");
	savedata("input_class","background","$");
}
function updateSurveyInputTop()//顶部间距
{	aaa=document.all.surveyInputTop.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".input_class","paddingTop",aaa);
	savedata("input_class","padding_top",aaa);
}
function updateSurveyInputBottom()//底部间距
{	aaa=document.all.surveyInputBottom.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".input_class","paddingBottom",aaa);
	savedata("input_class","padding_bottom",aaa);
}
function updateSurveyInputWidth()//显示宽度
{	aaa=document.all.SurveyInputWidth.value;
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".input_class","width",aaa);
	aaa2=aaa.replace("%","[")
	savedata("input_class","width",aaa2);
}
function f1_3(chk){
	if(chk==2){
		document.getElementById("survey_Input_ColorBG").disabled = false;
		document.getElementById("survey_Input_ColorPIC").disabled = true;
	}
	else if(chk==3){
	 	document.getElementById("survey_Input_ColorBG").disabled = true;
	 	document.getElementById("survey_Input_ColorPIC").disabled = false;
	}
}
</script>
    <tr>
      <td height="1" colspan="6" bgcolor="#ECE9D8"></td>
    </tr>
    <tr>
      <td colspan="2" align="right"><label><input type="radio" name="surveyInputFont" id="surveyInputFont" value="2" onClick="f1_3(this.value)">背景颜色
        <input name="survey_Input_ColorBG" type="text" id="survey_Input_ColorBG" onChange="javascript:updateSurveyInputColor(this.value);" value="#666666" size="6" disabled></label>&nbsp;<a href="javascript:updateSurveyInputBJColorClear();" target="_self">清除</a></td>
      <td colspan="4" align="left">　
        <label><input type="radio" name="surveyInputFont" id="surveyInputFont" value="3" onClick="f1_3(this.value)">背景图片
        <input name="survey_Input_ColorPIC" type="text" disabled id="survey_Input_ColorPIC" onChange="javascript:updateSurveyInputColor(this.value);" value="" size="20"></label>&nbsp;<a href="javascript:updateSurveyInputBJColorClear();" target="_self">清除</a> </td>
      </tr>
    <tr>
      <td height="78" colspan="6" align="center">
<SCRIPT language=JavaScript src="inc/funcs.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>DrawPalette(13);</SCRIPT></td>
      </tr>
     <tr>
      <td height="1" colspan="6" bgcolor="#ECE9D8"></td>
    </tr>
    <tr>
      <td height="21" colspan="6" align="left"><label>　顶部间距</label><select name="surveyInputTop" id="surveyInputTop" onChange="javascript:updateSurveyInputTop();">
          <option value="1">1px</option>
          <option value="2">2px</option>
          <option value="4">4px</option>
          <option value="6">6px</option>
          <option value="7">7px</option>
          <option value="8">8px</option>
          <option value="9">9px</option>
          <option value="10">10px</option>
          <option value="12">12px</option>
          <option value="14">14px</option>
          <option value="16">16px</option>
          <option value="18">18px</option>
          <option value="24">24px</option>
          <option value="36">36px</option>
         </select>　
      底部间距<select name="surveyInputBottom" id="surveyInputBottom" onChange="javascript:updateSurveyInputBottom();">
          <option value="1">1px</option>
          <option value="2">2px</option>
          <option value="4">4px</option>
          <option value="6">6px</option>
          <option value="7">7px</option>
          <option value="8">8px</option>
          <option value="9">9px</option>
          <option value="10">10px</option>
          <option value="12">12px</option>
          <option value="14">14px</option>
          <option value="16">16px</option>
          <option value="18">18px</option>
          <option value="24">24px</option>
          <option value="36">36px</option>
         </select>　
              宽度<label><input name="SurveyInputWidth" type="text" id="SurveyInputWidth" size="5" onChange="javascript:updateSurveyInputWidth(this.value);" value=""></label></td>
      </tr>
  </table>
</DIV>
</td>
          </tr>
        </table>
      
    </DIV>

    <DIV id=MMSTabcontent_12 style="DISPLAY: none; MARGIN: 3px auto; WIDTH: 479px; HEIGHT: 24px">
<table width="479"  border="0" cellpadding="0" cellspacing="1" bgcolor="#AACCEF">
<tr>
<td height="294" align="center" valign="top" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="3" cellpadding="0">
  <tr>
    <td width="26%" align="right">&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    </tr>
  <tr>
    <td height="21" align="right">问卷显示宽度</td>
    <td colspan="2"><select name="survey_width" id="survey_width" onChange="javascript:updateSurveyWidth();">
      <option value="900px">900px</option>
      <option value="800px">800px</option>
      <option value="700px">700px</option>
      <option value="600px">600px</option>
      <option value="500px">500px</option>
      <option value="400px">400px</option>
      <option value="300px">300px</option>
      <option value="100%">100%</option>
      <option value="90%">90%</option>
      <option value="80%">80%</option>
      <option value="70%">70%</option>
      <option value="60%">60%</option>
      <option value="50%">50%</option>
    </select>
      <label>
      <input name="survey_width2" type="text" id="survey_width2" size="6" value="" onChange="javascript:updateSurveyWidth2(this.value);">
      </label></td>
    </tr>
  <tr>
    <td height="4" colspan="3"></td>
  </tr>
<script>
function f2(chk){
	if (chk==1){
		document.getElementById("webWKColor").disabled = false;
		document.getElementById("surveyJJColor").disabled = true;
		document.getElementById("surveyJJPic").disabled = true;
		document.getElementById("surveyWKColor").disabled = true;
	}
	else if(chk==2){
		document.getElementById("webWKColor").disabled = true;
		document.getElementById("surveyJJColor").disabled = false;
		document.getElementById("surveyJJPic").disabled = true;
		document.getElementById("surveyWKColor").disabled = true;
	}
	else if(chk==3){
		document.getElementById("webWKColor").disabled = true;
	 	document.getElementById("surveyJJColor").disabled = true;
	 	document.getElementById("surveyJJPic").disabled = false;
		pic=document.getElementById("surveyJJPic").value;
		if (pic.length>0){updateSurveyJJPic(pic);}
		document.getElementById("surveyWKColor").disabled = true;
	}
	else if(chk==4){
		document.getElementById("webWKColor").disabled = true;
		document.getElementById("surveyJJColor").disabled = true;
		document.getElementById("surveyJJPic").disabled = true;
		document.getElementById("surveyWKColor").disabled = false;
	}
}
function updateSurveyWidth(){
	aaa=document.getElementById("survey_width").value;
	document.getElementById("web_set").style.width=aaa;
	savedata("web_set","width",aaa);
	document.getElementById("survey_width2").value=aaa;
}
function updateSurveyWidth2(aaa){
	document.getElementById("web_set").style.width=aaa;
	savedata("web_set","width",aaa);
}
function updateWebWKColor(bbb){
	//alert("运行到了这2");
	ccc=document.getElementById('webWKwidth').value;
	ccc2=ccc + "px solid " + bbb
	ccc3=ccc + "px solid " + bbb.replace("#","$")
	document.getElementById("web_set").style.border=ccc2;
	savedata("web_set","border",ccc3);
}
function updateSurveyWKColor(bbb){
	ccc=document.getElementById('surveyWKwidth').value;
	ccc2=ccc + "px solid " + bbb
	ccc3=ccc + "px solid " + bbb.replace("#","$")
	var sheet = new styleSheet(1);
    sheet.setRuleStyle(".survey_set","border",ccc2);
	savedata("survey_set","border",ccc3);
}
function updateSurveyJJColor(ccc){
	bbb=GetRadioValueCd('surveyColor');
	//alert("运行到了这");
	if (bbb==1){
		//alert("运行到了这1");
		document.getElementById('webWKColor').value=ccc;
		updateWebWKColor(ccc);}
	else if (bbb==2){
		//ccc=document.getElementById('surveyJJColor').value;
		document.getElementById('surveyJJColor').value=ccc;
		document.getElementById("web_set").style.background=ccc;
		savedata("web_set","background",ccc.replace("#","$"));
	}
	else if (bbb==4){
		document.getElementById('surveyWKColor').value=ccc;
		updateSurveyWKColor(ccc);
	}
	//alert("ccc="+ccc);
	//alert("bbb="+bbb);
}
function updateSurveyJJPic(pic){
	document.getElementById("web_set").style.background="url("+pic+")";
	savedata("web_set","background","url("+pic+")");
}
function updateSurveyJJClear(){
	document.getElementById('surveyJJColor').value="";
	document.getElementById('surveyJJPic').value="";
	document.getElementById("web_set").style.background="";
	savedata("web_set","background","$");
}
function updateSurveyTM(aaa){
	document.getElementById("surveyTM2").value=aaa;
	bbb=aaa/100;
	
	//aaa=document.getElementById("web_set").style.filter;
	//bbb=document.getElementById("web_set").style.opacity;
	//ccc=document.getElementById("web_set").style.MozOpacity;
	//alert(aaa);
	//alert(bbb);
	aaa="shadow(color=gray, direction=80) alpha(opacity="+aaa+")";
	document.getElementById("web_set").style.filter=aaa;
	document.getElementById("web_set").style.opacity=bbb;
	document.getElementById("web_set").style.MozOpacity=bbb;
	savedata("web_set:web_set:web_set","filter:opacity:_moz_opacity",aaa +":" + bbb +":" + bbb);
}

//filter:alpha(opacity=90);opacity: 0.88; -moz-opacity: 0.88;
//background
</script>
  <tr>
    <td height="1" colspan="3" bgcolor="#ECE9D8"></td>
  </tr>
  <tr>
    <td height="4" colspan="3"></td>
  </tr>
  <tr>
    <td height="21" align="right">网页外框颜色</td>
    <td width="19%"><label><input name="surveyColor" type="radio" id="surveyColor" value="1" onClick="f2(this.value)" checked>
    <input name="webWKColor" type="text" id="webWKColor" onChange="javascript:updateWebWKColor(this.value);" value="#666666" size="6"></label></td>
    <td>外框厚度<select name="webWKwidth" id="webWKwidth" onChange="javascript:updateWebWKColor(document.getElementById('webWKColor').value);">
        <option value="0">0px</option>
        <option value="1">1px</option>
        <option value="2">2px</option>
        <option value="4">4px</option>
        <option value="6">6px</option>
        <option value="7">7px</option>
        <option value="8">8px</option>
        <option value="9">9px</option>
        <option value="10">10px</option>
        <option value="12">12px</option>
        <option value="14">14px</option>
        <option value="16">16px</option>
        <option value="18">18px</option>
        <option value="24">24px</option>
        <option value="36">36px</option>
        </select></td>
    </tr>
  <tr>
    <td height="21" align="right">问卷外框颜色</td>
    <td><label><input name="surveyColor" type="radio" id="surveyColor" value="4" onClick="f2(this.value)">
    <input name="surveyWKColor" type="text" id="surveyWKColor" onChange="javascript:updateSurveyWKColor(this.value);" value="#666666" size="6" disabled></label></td>
    <td>外框厚度<select name="surveyWKwidth" id="surveyWKwidth" onChange="javascript:updateSurveyWKColor(document.getElementById('surveyWKColor').value);">
        <option value="0">0px</option>
        <option value="1">1px</option>
        <option value="2">2px</option>
        <option value="4">4px</option>
        <option value="6">6px</option>
        <option value="7">7px</option>
        <option value="8">8px</option>
        <option value="9">9px</option>
        <option value="10">10px</option>
        <option value="12">12px</option>
        <option value="14">14px</option>
        <option value="16">16px</option>
        <option value="18">18px</option>
        <option value="24">24px</option>
        <option value="36">36px</option>
        </select></td>
    </tr>
  <tr>
    <td height="8" colspan="3" align="right"></td>
    </tr>
  <tr>
    <td height="21" align="right">前景颜色</td>
    <td colspan="2"><label><input name="surveyColor" type="radio" id="surveyColor" value="2" onClick="f2(this.value)">
    <input name="surveyJJColor" type="text" id="surveyJJColor" onChange="javascript:updateSurveyJJColor(this.value);" value="#666666" size="6" disabled></label>&nbsp;<a href="javascript:updateSurveyJJClear();" target="_self">清除</a></td>
    </tr>
  <tr>
    <td height="21" align="right">前景图片</td>
    <td colspan="2"><label><input name="surveyColor" type="radio" id="surveyColor" value="3" onClick="f2(this.value)">
    <input name="surveyJJPic" type="text" id="surveyJJPic" onChange="javascript:updateSurveyJJPic(this.value);" value="" size="30" disabled></label>
      &nbsp;<a href="javascript:updateSurveyJJClear();" target="_self">清除</a></td>
    </tr>
  <tr>
    <td align="right">前景显示透明度</td>
    <td colspan="2"><select name="surveyTM" id="surveyTM" onChange="javascript:updateSurveyTM(this.value);">
      <option value="100">100</option>
      <option value="90">90</option>
      <option value="80">80</option>
      <option value="70">70</option>
      <option value="60">60</option>
      <option value="50">50</option>
      <option value="40">40</option>
    </select>
      <input name="surveyTM2" type="text" id="surveyTM2" size="6" onChange="javascript:updateSurveyTM(this.value);">
      注：100表示不透明，0表示全透明</td>
    </tr>
  <tr>
    <td height="4" colspan="3"></td>
    </tr>
  <tr>
    <td height="78" colspan="3" align="center"><SCRIPT language=JavaScript>DrawPalette(2);</SCRIPT></td>
    </tr>
</table></td>
</tr>
</table>
            
    </DIV>
    <DIV id=MMSTabcontent_13 style="DISPLAY: none; MARGIN: 3px auto; WIDTH: 479px; HEIGHT: 24px">
<table width="479"  border="0" cellpadding="0" cellspacing="1" bgcolor="#AACCEF">
<tr>
<td height="294" align="center" valign="top" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="3" cellpadding="0">
  
  <tr>
    <td height="21" align="center" bgcolor="#FFE6BF" style="padding:5px"><label>
    <input name="surveyColor" type="radio" id="surveyColor2" value="1" onClick="document.all.bg01.style.display='';document.all.bg02.style.display='none';document.all.bg03.style.display='none';document.all.bg04.style.display='none';document.all.bg05.style.display='none';document.all.bg06.style.display='none';document.all.bg07.style.display='none';document.all.bg08.style.display='none';document.all.bg09.style.display='none';document.all.bg10.style.display='none';" checked>
    纹理背景</label><label>
    <input name="surveyColor" type="radio" id="surveyColor3" value="1" onClick="document.all.bg01.style.display='none';document.all.bg02.style.display='';document.all.bg03.style.display='none';document.all.bg04.style.display='none';document.all.bg05.style.display='none';document.all.bg06.style.display='none';document.all.bg07.style.display='none';document.all.bg08.style.display='none';document.all.bg09.style.display='none';document.all.bg10.style.display='none';">
    超眩动态</label><label>
    <input name="surveyColor" type="radio" id="surveyColor4" value="1" onClick="document.all.bg01.style.display='none';document.all.bg02.style.display='none';document.all.bg03.style.display='';document.all.bg04.style.display='none';document.all.bg05.style.display='none';document.all.bg06.style.display='none';document.all.bg07.style.display='none';document.all.bg08.style.display='none';document.all.bg09.style.display='none';document.all.bg10.style.display='none';">
    淡雅幻影</label><label>
    <input name="surveyColor" type="radio" id="surveyColor5" value="1" onClick="document.all.bg01.style.display='none';document.all.bg02.style.display='none';document.all.bg03.style.display='none';document.all.bg04.style.display='';document.all.bg05.style.display='none';document.all.bg06.style.display='none';document.all.bg07.style.display='none';document.all.bg08.style.display='none';document.all.bg09.style.display='none';document.all.bg10.style.display='none';">
    地球图片</label><label>
    <input name="surveyColor" type="radio" id="surveyColor6" value="1" onClick="document.all.bg01.style.display='none';document.all.bg02.style.display='none';document.all.bg03.style.display='none';document.all.bg04.style.display='none';document.all.bg05.style.display='';document.all.bg06.style.display='none';document.all.bg07.style.display='none';document.all.bg08.style.display='none';document.all.bg09.style.display='none';document.all.bg10.style.display='none';">
    冬季雪景</label><br><label>
    <input name="surveyColor" type="radio" id="surveyColor7" value="1" onClick="document.all.bg01.style.display='none';document.all.bg02.style.display='none';document.all.bg03.style.display='none';document.all.bg04.style.display='none';document.all.bg05.style.display='none';document.all.bg06.style.display='';document.all.bg07.style.display='none';document.all.bg08.style.display='none';document.all.bg09.style.display='none';document.all.bg10.style.display='none';">
    光影特效</label><label>
    <input name="surveyColor" type="radio" id="surveyColor8" value="1" onClick="document.all.bg01.style.display='none';document.all.bg02.style.display='none';document.all.bg03.style.display='none';document.all.bg04.style.display='none';document.all.bg05.style.display='none';document.all.bg06.style.display='none';document.all.bg07.style.display='';document.all.bg08.style.display='none';document.all.bg09.style.display='none';document.all.bg10.style.display='none';">
    鸟语花香</label><label>
    <input name="surveyColor" type="radio" id="surveyColor9" value="1" onClick="document.all.bg01.style.display='none';document.all.bg02.style.display='none';document.all.bg03.style.display='none';document.all.bg04.style.display='none';document.all.bg05.style.display='none';document.all.bg06.style.display='none';document.all.bg07.style.display='none';document.all.bg08.style.display='';document.all.bg09.style.display='none';document.all.bg10.style.display='none';">
    欢乐圣诞</label><label>
    <input name="surveyColor" type="radio" id="surveyColor9" value="1" onClick="document.all.bg01.style.display='none';document.all.bg02.style.display='none';document.all.bg03.style.display='none';document.all.bg04.style.display='none';document.all.bg05.style.display='none';document.all.bg06.style.display='none';document.all.bg07.style.display='none';document.all.bg08.style.display='none';document.all.bg09.style.display='';document.all.bg10.style.display='none';">
    梦幻仙境</label><label>
    <input name="surveyColor" type="radio" id="surveyColor9" value="1" onClick="document.all.bg01.style.display='none';document.all.bg02.style.display='none';document.all.bg03.style.display='none';document.all.bg04.style.display='none';document.all.bg05.style.display='none';document.all.bg06.style.display='none';document.all.bg07.style.display='none';document.all.bg08.style.display='none';document.all.bg09.style.display='none';document.all.bg10.style.display='';">
    红色爱心</label></td>
    </tr>
  <tr>
    <td height="21" align="left">　自定义背景图片      
      <input name="surveyBGPic" type="text" id="surveyBGPic" onChange="javascript:updateSurveyBG(this.value);" value="" size="45">
      <a href="javascript:updateSurveyBG('');" target="_self">清除</a></td>
  </tr>
<script>
function updateSurveyBG(c){
	var sheet = new styleSheet(1);
	//alert(c.length);
	if (c.length==0){
		document.getElementById("surveyBGPic").value="";
	}
    c="url("+c+")";
	sheet.setRuleStyle("BODY","background",c);
	sheet.setRuleStyle("BODY","backgroundAttachment","fixed");
	savedata("body","background",c);
}
</script>
  <tr>
    <td align="center">
      <table id="bg01" width="100%" border="0" cellspacing="10" cellpadding="0">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/01/001.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/001.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/01/002.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/002.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/01/003.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/003.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/01/004.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/004.gif')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/01/005.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/005.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/01/006.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/006.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/01/007.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/007.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/01/008.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/008.gif')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/01/009.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/009.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/01/010.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/010.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/01/011.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/011.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/01/012.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/01/012.gif')"></td>
        </tr>
      </table>
      <table id="bg02" width="100%" border="0" cellspacing="10" cellpadding="0" style="display:none;">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/02/01.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/01.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/02/02.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/02.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/02/03.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/03.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/02/04.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/04.gif')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/02/05.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/05.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/02/06.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/06.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/02/07.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/07.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/02/08.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/08.gif')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/02/09.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/09.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/02/10.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/10.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/02/11.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/11.gif')"></td>
          <td width="25%" align="center"><img src="survey-bg/02/12.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/02/12.gif')"></td>
        </tr>
      </table>
      <table id="bg03" width="100%" border="0" cellspacing="10" cellpadding="0" style="display:none;">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/03/01.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/01.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/03/02.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/02.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/03/03.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/03.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/03/04.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/04.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/03/05.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/05.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/03/06.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/06.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/03/07.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/07.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/03/08.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/08.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/03/09.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/09.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/03/10.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/10.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/03/11.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/11.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/03/12.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/03/12.jpg')"></td>
        </tr>
      </table>
      <table id="bg04" width="100%" border="0" cellspacing="10" cellpadding="0" style="display:none;">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/04/01.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/01.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/04/02.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/02.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/04/03.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/03.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/04/04.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/04.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/04/05.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/05.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/04/06.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/06.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/04/07.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/07.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/04/08.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/08.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/04/09.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/09.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/04/10.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/10.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/04/11.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/11.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/04/12.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/04/12.jpg')"></td>
        </tr>
      </table>
      <table id="bg05" width="100%" border="0" cellspacing="10" cellpadding="0" style="display:none;">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/05/01.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/01.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/05/02.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/02.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/05/03.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/03.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/05/04.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/04.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/05/05.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/05.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/05/06.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/06.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/05/07.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/07.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/05/08.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/08.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/05/09.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/09.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/05/10.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/10.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/05/11.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/11.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/05/12.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/05/12.jpg')"></td>
        </tr>
      </table>
      <table id="bg06" width="100%" border="0" cellspacing="10" cellpadding="0" style="display:none;">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/06/01.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/01.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/06/02.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/02.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/06/03.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/03.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/06/04.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/04.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/06/05.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/05.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/06/06.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/06.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/06/07.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/07.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/06/08.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/08.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/06/09.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/09.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/06/10.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/10.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/06/11.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/11.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/06/12.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/06/12.jpg')"></td>
        </tr>
      </table>
      <table id="bg07" width="100%" border="0" cellspacing="10" cellpadding="0" style="display:none;">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/07/01.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/01.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/07/02.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/02.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/07/03.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/03.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/07/04.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/04.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/07/05.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/05.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/07/06.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/06.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/07/07.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/07.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/07/08.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/08.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/07/09.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/09.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/07/10.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/10.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/07/11.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/11.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/07/12.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/07/12.jpg')"></td>
        </tr>
      </table>
      <table id="bg08" width="100%" border="0" cellspacing="10" cellpadding="0" style="display:none;">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/08/01.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/01.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/08/02.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/02.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/08/03.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/03.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/08/04.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/04.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/08/05.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/05.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/08/06.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/06.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/08/07.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/07.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/08/08.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/08.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/08/09.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/09.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/08/10.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/10.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/08/11.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/11.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/08/12.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/08/12.jpg')"></td>
        </tr>
      </table>
      <table id="bg09" width="100%" border="0" cellspacing="10" cellpadding="0" style="display:none;">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/09/01.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/01.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/09/02.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/02.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/09/03.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/03.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/09/04.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/04.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/09/05.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/05.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/09/06.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/06.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/09/07.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/07.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/09/08.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/08.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/09/09.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/09.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/09/10.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/10.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/09/11.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/11.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/09/12.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/09/12.jpg')"></td>
        </tr>
      </table>
      <table id="bg10" width="100%" border="0" cellspacing="10" cellpadding="0" style="display:none;">
        <tr>
          <td width="25%" align="center"><img src="survey-bg/10/01.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/01.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/10/02.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/02.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/10/03.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/03.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/10/04.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/04.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/10/05.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/05.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/10/06.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/06.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/10/07.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/07.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/10/08.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/08.jpg')"></td>
        </tr>
         <tr>
          <td width="25%" align="center"><img src="survey-bg/10/09.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/09.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/10/10.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/10.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/10/11.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/11.jpg')"></td>
          <td width="25%" align="center"><img src="survey-bg/10/12.gif" width="101" height="62" onClick="updateSurveyBG('survey-bg/10/12.jpg')"></td>
        </tr>
      </table>
      </td>
    </tr>
</table></td>
</tr>
</table>
    </DIV></td>
    </tr>
    </table>

    </td>
    </tr>
</table>    </td>
    </tr>
</table></form>
</div>
<%end function%>
</body>
</html>

<script language="JavaScript1.2">
var w=document.body.clientWidth-505
var h=5
//w+=document.body.scrollLeft
//h+=document.body.scrollTop
var leftpos=w
var toppos=h
floater.style.left=w
floater.style.top=h

function onoffdisplay(){
if (cd.style.display==''){
	cd.style.display='none';
	document.dcformcd.caidan_button.value="打开菜单";}
else{
	cd.style.display='';
	document.dcformcd.caidan_button.value="隐藏菜单";
}}
</script>
<script LANGUAGE="JavaScript">
self.onError=null;
currentX = currentY = 0;  
whichIt = null;           
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
function heartBeat() {
	if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
	if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY) {
				percent = .1 * (diffY - lastScrollY);
				if(percent > 0) percent = Math.ceil(percent);
				else percent = Math.floor(percent);
				if(IE) document.all.floater.style.pixelTop += percent;
				if(NS) document.floater.top += percent; 
				lastScrollY = lastScrollY + percent;
	}
	if(diffX != lastScrollX) {
		percent = .1 * (diffX - lastScrollX);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) document.all.floater.style.pixelLeft += percent;
		if(NS) document.floater.left += percent;
		lastScrollX = lastScrollX + percent;
	}	
}
<!-- /STALKER CODE -->
<!-- DRAG DROP CODE -->
function checkFocus(x,y) { 
		stalkerx = document.floater.pageX;
		stalkery = document.floater.pageY;
		stalkerwidth = document.floater.clip.width;
		stalkerheight = document.floater.clip.height;
		if( (x > stalkerx && x < (stalkerx+stalkerwidth)) && (y > stalkery && y < (stalkery+stalkerheight))) return true;
		else return false;
}
function grabIt(e) {
	if(IE) {
		whichIt = event.srcElement;
		while (whichIt.id.indexOf("floater") == -1) {
			whichIt = whichIt.parentElement;
			if (whichIt == null) { return true; }
		}
		whichIt.style.pixelLeft = whichIt.offsetLeft;
		whichIt.style.pixelTop = whichIt.offsetTop;
		currentX = (event.clientX + document.body.scrollLeft);
		currentY = (event.clientY + document.body.scrollTop); 	
	} else { 
		window.captureEvents(Event.MOUSEMOVE);
		if(checkFocus (e.pageX,e.pageY)) { 
				whichIt = document.floater;
				StalkerTouchedX = e.pageX-document.floater.pageX;
				StalkerTouchedY = e.pageY-document.floater.pageY;
		} 
	}
	return true;
}
function moveIt(e) {
	if (whichIt == null) { return false; }
	if(IE) {
		newX = (event.clientX + document.body.scrollLeft);
		newY = (event.clientY + document.body.scrollTop);
		distanceX = (newX - currentX);    distanceY = (newY - currentY);
		currentX = newX;    currentY = newY;
		whichIt.style.pixelLeft += distanceX;
		whichIt.style.pixelTop += distanceY;
		if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;
		if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;
		if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;
		if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;
		event.returnValue = false;
	} else { 
		whichIt.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY);
		if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;
		if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;
		if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;
		if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;
		return false;
	}
	return false;
}
function dropIt() {
	whichIt = null;
	if(NS) window.releaseEvents (Event.MOUSEMOVE);
	return true;
}
<!-- DRAG DROP CODE -->
if(NS) {
	window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);
	window.onmousedown = grabIt;
	window.onmousemove = moveIt;
	window.onmouseup = dropIt;
}
if(IE) {
	document.onmousedown = grabIt;
	document.onmousemove = moveIt;
	document.onmouseup = dropIt;
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
</script>