
// codigo para highlight de formularios
var highlightcolor="#F5F5F5"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

var intended=/INPUT|TEXTAREA|SELECT|OPTION/

function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor='#DDDEDF'
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}


    function set_preferences(){
      var sl_news_dir          = "up" ;
      var sl_news_width        = "140px" ;
      var sl_news_height    	 = "180px" ;
      var sl_news_brd_color    = "" ;
      var sl_news_brd_style    = "" ;
      var sl_news_scrll_amount = 1 ; //Specifies the number of pixels the text scrolls between each subsequent drawing of the sliding news
      var sl_news_scrll_delay  = 40 ;//Specifies the speed of the sliding news scroll, in milliseconds 	
      var sl_news_scrll_beh    = "slide" ;											
      var ptImage              = "" ; //path of image directory if needed			
//  ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''		
      var  objMar = document.all("marx") ;
      objMar.direction      = sl_news_dir ;
      objMar.style.width    = sl_news_width  ;
      objMar.style.height   = sl_news_height ;
      objMar.style.BEHAVIOR = sl_news_scrll_beh ;
      objMar.scrollDelay    = sl_news_scrll_delay ;	
      objMar.scrollAmount   = sl_news_scrll_amount ;								
	  objMar.style.borderColor = sl_news_brd_color ;
      objMar.style.borderStyle = sl_news_brd_style ;
		}
		 
	 function up_down(objMar){
  	 if ((document.all('up_down').style.backgroundImage) == "url(up.gif)") {
	      document.all('up_down').style.backgroundImage = "url(down.gif)"
	 			objMar.direction = "down";
     }else{
        document.all('up_down').style.backgroundImage = "url(up.gif)"
	 			objMar.direction = "up";
     } 
   }
   function chgStat(){
     if ((document.all('btnstat').style.backgroundImage)== "url(offline.gif)") {
	      document.all('btnstat').style.backgroundImage = "url(online.gif)"
	      document.all('marx').start()
     }else{
        document.all('btnstat').style.backgroundImage = "url(offline.gif)"
	      document.all('marx').stop()
	   } 
  }