<!--
// 滚动脚本
var rollspeed=60
var myInter;
function MarqueeV(){
	if(oRollV2.offsetTop-oRollV.scrollTop<=0) {
		oRollV.scrollTop-=oRollV1.offsetHeight;
	}else{
		oRollV.scrollTop++;
	}
}
function StartRollV() {
	if (typeof(oRollV) == "undefined") {
		return;
	}
	if (parseInt(oRollV.style.height)>=oRollV2.offsetTop) {
		oRollV.style.height = oRollV2.offsetTop;
		return;
	}
	oRollV2.innerHTML=oRollV1.innerHTML;
	myInter=setInterval(MarqueeV,rollspeed);
	oRollV.onmouseover=function() {clearInterval(myInter)};
	oRollV.onmouseout=function() {myInter=setInterval(MarqueeV,rollspeed)};
}
function MarqueeH(){
	if(oRollH2.offsetLeft-oRollH.scrollLeft<=0) {
		oRollH.scrollLeft-=oRollH1.offsetWidth;
	}else{
		oRollH.scrollLeft++;
	}
}
function StartRollH() {
	if (typeof(oRollH) == "undefined") {
		return;
	}
	if (parseInt(oRollH.style.width)>=oRollH2.offsetLeft) {
		oRollH.style.width = oRollH2.offsetLeft;
		return;
	}
	oRollH2.innerHTML=oRollH1.innerHTML;
	myInter=setInterval(MarqueeH,rollspeed);
	oRollH.onmouseover=function() {clearInterval(myInter)};
	oRollH.onmouseout=function() {myInter=setInterval(MarqueeH,rollspeed)};
}


<!--
// 滚动脚本
var rollspeeda=1500
var myInter;
function MarqueeVa(){
	if(oRollV2a.offsetTop-oRollVa.scrollTop<=0) {
		oRollVa.scrollTop-=oRollV1a.offsetHeight;
	}else{
		oRollVa.scrollTop++;
	}
}
function StartRollVa() {
	if (typeof(oRollVa) == "undefined") {
		return;
	}
	if (parseInt(oRollVa.style.height)>=oRollV2a.offsetTop) {
		oRollVa.style.height = oRollV2a.offsetTop;
		return;
	}
	oRollV2a.innerHTML=oRollV1a.innerHTML;
	myInter=setInterval(MarqueeVa,rollspeeda);
	oRollVa.onmouseover=function() {clearInterval(myInter)};
	oRollVa.onmouseout=function() {myInter=setInterval(MarqueeVa,rollspeeda)};
}
function MarqueeHa(){
	if(oRollH2a.offsetLeft-oRollHa.scrollLeft<=0) {
		oRollHa.scrollLeft-=oRollH1a.offsetWidth;
	}else{
		oRollHa.scrollLeft++;
	}
}
function StartRollHa() {
	if (typeof(oRollHa) == "undefined") {
		return;
	}
	if (parseInt(oRollHa.style.width)>=oRollH2a.offsetLeft) {
		oRollHa.style.width = oRollH2a.offsetLeft;
		return;
	}
	oRollH2a.innerHTML=oRollH1a.innerHTML;
	myInter=setInterval(MarqueeHa,rollspeeda);
	oRollHa.onmouseover=function() {clearInterval(myInter)};
	oRollHa.onmouseout=function() {myInter=setInterval(MarqueeHa,rollspeeda)};
}


// 查看调查--------------------------
function ViewPoll(id) {
	window.open("pollView.aspx?act=result&id="+id, "DvnPoll","width=500,height=400,left=0,top=0,scrollbars=1,status=1,resizable=1");
}
// 今日更新图标
//<img src="/images/istoday.gif" border="0"><font color="red" style="font-size:12px;FONT-FAMILY:宋体;">[新]</font>
function isToday(stime)
{
	var m=stime.match(new RegExp(/\d+/g));
	if (m==null)
		return;
	var aa = m.toString().split(',');
	if (aa.length>=3)
	{
		var daysIsNew = 2;//为new的天数
		var today = new Date();
		var dt1 = new Date(parseInt(aa[0],10),parseInt(aa[1],10),parseInt(aa[2],10));
		var dt2 = new Date(parseInt(today.getYear()),parseInt(today.getMonth())+1,parseInt(today.getDate()));
		if ( DateDiff1("d",dt1,dt2)<=daysIsNew )
		{
			document.write('<img src="/images/istoday.gif" border="0">');
		}
/*		if ( (parseInt(today.getYear())==parseInt(aa[0]))&&
			( (parseInt(today.getMonth())+1) == parseInt(aa[1]) ) &&
			(parseInt(today.getDate())==parseInt(aa[2])) )
			document.write('<img src="/images/istoday.gif" border="0">');
*/
	}
}

function DateAdd(strInterval, count, dtDate)
{
	var dtTmp = new Date(dtDate);
	if (isNaN(dtTmp)) dtTmp = new Date();
	switch (strInterval)
	{
		case "s":return new Date(Date.parse(dtTmp) + (1000 * count));
		case "n":return new Date(Date.parse(dtTmp) + (60000 * count));
		case "h":return new Date(Date.parse(dtTmp) + (3600000 * count));
		case "d":return new Date(Date.parse(dtTmp) + (86400000 * count));
		case "w":return new Date(Date.parse(dtTmp) + ((86400000 * 7) * count));
		case "m":return new Date(dtTmp.getFullYear(), (dtTmp.getMonth()) + count, dtTmp.getDate(), dtTmp.getHours(), dtTmp.getMinutes(), dtTmp.getSeconds());
		case "y":return new Date((dtTmp.getFullYear() + count), dtTmp.getMonth(), dtTmp.getDate(), dtTmp.getHours(), dtTmp.getMinutes(), dtTmp.getSeconds());
	}
}
// DateDiff("m","2002/12/1 00:00:00","2004/12/1 00:00:00")
function DateDiff(strInterval, dtStart, dtEnd)
{
	var dtStart = new Date(dtStart);
	if (isNaN(dtStart)) dtStart = new Date();
	var dtEnd = new Date(dtEnd);
	if (isNaN(dtEnd)) dtEnd = new Date();
	switch (strInterval)
	{
		case "s":return parseInt((dtEnd - dtStart) / 1000,10);
		case "n":return parseInt((dtEnd - dtStart) / 60000,10);
		case "h":return parseInt((dtEnd - dtStart) / 3600000,10);
		case "d":return parseInt((dtEnd - dtStart) / 86400000,10);
		case "w":return parseInt((dtEnd - dtStart) / (86400000 * 7),10);
		case "m":return (dtEnd.getMonth()+1)+((dtEnd.getFullYear()-dtStart.getFullYear())*12) - (dtStart.getMonth()+1);
		case "y":return dtEnd.getFullYear() - dtStart.getFullYear();
	}
}
function DateDiff1(strInterval, dtStart, dtEnd)
{
	switch (strInterval)
	{
		case "s":return parseInt((dtEnd - dtStart) / 1000,10);
		case "n":return parseInt((dtEnd - dtStart) / 60000,10);
		case "h":return parseInt((dtEnd - dtStart) / 3600000,10);
		case "d":return parseInt((dtEnd - dtStart) / 86400000,10);
		case "w":return parseInt((dtEnd - dtStart) / (86400000 * 7),10);
		case "m":return (dtEnd.getMonth()+1)+((dtEnd.getFullYear()-dtStart.getFullYear())*12) - (dtStart.getMonth()+1);
		case "y":return dtEnd.getFullYear() - dtStart.getFullYear();
	}
}
-->
