﻿function IndexDivShowFooter2(p,id)
{
	var cssCount = 4;
	
	try
	{
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["changeD"+p+"_"+i].className = "linkConten2";
			
		}
		
		document.all['changeD'+p+"_"+id].className = "linkConten1";
		
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["changeContentD"+p+"_"+i].style.display = "none";
			
		}
		
		document.all['changeContentD'+p+"_"+id].style.display = "";
	}
	catch(e)
	{
		alert ('抓取对象失败:'+e.description);
	}
}
function IndexTopShow(id)
{
	var cssCount = 6;
	
	try
	{
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["changeTop"+i].className = "menu_hong2";
			
		}
		
		document.all['changeTop'+id].className = "menu_hong1";
		
		for (i=1;i<=cssCount;i++)
		{
			
				document.all["changeTopContent"+i].style.display = "none";
			
		}
		
		document.all['changeTopContent'+id].style.display = "";
	}
	catch(e)
	{
		alert ('抓取对象失败:'+e.description);
	}
}

function WritePolls(){

	try{

		var str = new String ();
		str = "<form ";

		if (CmsPollAction.length>1){
			str += " action='"+CmsPollAction+"'";
		}

		if (CmsPollMethod.length>1){
			str += " method='"+CmsPollMethod+"'";
		}

		if (CmsPollTarget.length>1){
			str += " target='"+CmsPollTarget+"'";
		}

		str +=" onsubmit='fnProcessPoll()' >";

		str +='<input type="hidden" name="PollID" value="'+CmsPollID+'"/>';
		str +='<input type="hidden" name="PollOptionValue" id="PollOptionValue"/>';

		str +="<span class='diaoc' style='text-indent: 1px'>"+CmsPollTitle+"</span>"+"<br><br>";

		var v;
		var inputtype = "radio";
		for (i=0;i<CmsPollValues.length;i++){
			v = CmsPollValues[i];

			if (CmsPollIsMutil){
				inputtype = "checkbox";
			}

			str +="<input type='"+inputtype+"' name='PollOption' style='height:22px' value='"+v.PollValue+"' id='PollValue_"+v.PollValue+"' hidefocus><label for='PollValue_"+v.PollValue+"'>"+v.PollName+"</label><br/>";
		}
str += "<br>";
		//str += '<input name="imageField" type="image" src="/images/dctj.gif" width="49" height="22" border="0" style="height:22px">';
str += "    ";
		//str += '<a href="'+CmsPollView+'" target="_blank"><img src="/images/dcjg.gif" width="49" height="22" border="0"></a>';
		//str += '</form>';

		//alert (str);
		document.write(str);

	}catch(ex){
		document.write("<b>输出投票失败:</b><br/>"+ex.description+"");
	}
}