﻿<!--
var report_form="<ul style=\'list-style:none;margin:0px;border:1px solid #333;background-color:#fff;padding:0px;width:100%;text-align:right;\'><input type=\'button\' value=\'[×关闭]\' id=\'closewin_div\' class=\'buttonsumib\' onclick=\'close_div();\' style=\'border:0px solid;background-color:#fff;color:#ff0000;\' /><iframe frameBorder=\'0\' scrolling=\'auto\' name=\'edit_iframe\' id=\'edit_iframe\' style=\'width: 100%; border:0px;height:480px;display:;\' src=\'\'></iframe></ul>";
//==============================================
var boardTab = new Array();
var boardArea = new Array();
var How_boardTab=2;
boardTab[1] = 'boardTab1';
boardTab[2] = 'boardTab2';
//-------------
boardArea[1] = 'boardTop01';
boardArea[2] = 'boardTop02';
function showTab(objval){
	for (var i = 1;i<=How_boardTab;i++){
		if (objval == i){
			document.getElementById(boardTab[i]).className='tabdown';
			document.getElementById(boardArea[i]).style.display="";
		}else{
			document.getElementById(boardTab[i]).className='tabup';
			document.getElementById(boardArea[i]).style.display="none";
		}
	}
}
/********************************/
/*文字自动循环滚动*/
/********************************/

//*********不要修改这部分***************
//scrollBody__Id:String 内部滚动div的id
//scrollBox__Id:String 外面限制div的id
//show__Height:Int 限制显示高度
//show__Width:Int 限制显示宽度
//line__Height:Int 每行的高度
//stop__Time:Int 间隔停止的时间（毫秒）
//speed__move:Int 滚动速度（毫秒，越小越快）
var Scroll__Obj = function(scrollBody__Id,scrollBox__Id,show__Height,show__Width,line__Height,stop__Time,speed__move) {
  this.get__obj = document.getElementById(scrollBody__Id);
  this.__box = document.getElementById(scrollBox__Id);
  
  this.style = this.get__obj.style;
  this.default__Height = this.get__obj.offsetHeight;
  
  this.get__obj.innerHTML += this.get__obj.innerHTML;
  this.get__obj.style.position = "relative";
  
  this.__box.style.height = show__Height;
  this.__box.style.width = show__Width;
  this.__box.style.overflow = "hidden";
  
  this.scrollUp = doScroll__Up;

  this.stopScroll = false;
  
  this.curline__Height = 0;
  this.line__Height = line__Height;
  this.curstop__Time = 0;
  this.stop__Time = stop__Time;
  this.speed__move = speed__move;

  this.style.top = line__Height;

  this.object = scrollBody__Id + "Object";
  eval(this.object + "=this");
  setInterval(this.object+".scrollUp()",speed__move);
  this.get__obj.onmouseover=new Function(this.object+".stopScroll=true");
  this.get__obj.onmouseout=new Function(this.object+".stopScroll=false");
}
function doScroll__Up(){
  if( this.stopScroll == true )
    return;
   this.curline__Height += 1;
   if( this.curline__Height >= this.line__Height ){
     this.curstop__Time += 1;
     if( this.curstop__Time >= this.stop__Time ){
       this.curline__Height = 0;
       this.curstop__Time = 0;
     }
   }
  else{   
     this.style.top = parseInt(this.style.top) - 1;
     if( -parseInt(this.style.top) >= this.default__Height ){
     this.style.top = 0;
     }
   }
}
/*
//==========================
var scrollElem;
var stopscroll;
var stoptime;
var preTop;
var leftElem;
var currentTop;
var marqueesHeight;
function marque(width,height,marqueName,marqueCName){
try{
  marqueesHeight = height;
  stopscroll     = false;

  scrollElem = document.getElementById(marqueName);
  with(scrollElem){
style.width     = width;
style.height    = marqueesHeight;
style.overflow  = 'hidden';
noWrap          = true;
  }

  scrollElem.onmouseover = new Function('stopscroll = true');
  scrollElem.onmouseout  = new Function('stopscroll = false');

  preTop     = 0; 
  currentTop = 0; 
  stoptime   = 0;

  leftElem = document.getElementById(marqueCName);
  scrollElem.appendChild(leftElem.cloneNode(true));
  
  init_srolltext();

}catch(e) {}
}
function init_srolltext(){
  scrollElem.scrollTop = 0;
  setInterval('scrollUp()', 5);
}

function scrollUp(){
  if(stopscroll) return;
  currentTop += 1;
  if(currentTop == marqueesHeight+1) {
    stoptime += 1;
    currentTop -= 1;
    if(stoptime == (marqueesHeight)*1) {//停顿时间
      currentTop = 0;
      stoptime = 0;
    }
  }else{

    preTop = scrollElem.scrollTop;
    scrollElem.scrollTop += 1;
    if(preTop == scrollElem.scrollTop){
      scrollElem.scrollTop = marqueesHeight;
      scrollElem.scrollTop += 1;
    }
  }
}
*/
//-->

