//function MM_jumpMenu(targ,selObj,restore){ //v3.0

//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  //if (restore==0) 

  //window.open(selObj,'newwindow','scrollbars=yes,resizable=yes,width=800,height=600');
 
  //window.open(selObj);	
  //if (selObj != ''){
	//	window.location.href=selObj;
  //}

//}

//function ativaOptionsDisabled(){
  //  var sels = document.getElementsByTagName('select');
   // for(var i=0; i < sels.length; i++){
     //   sels[i].onchange= function(){ //pra se mudar pro desabilitado
       //     if(this.options[this.selectedIndex].disabled){
     //           if(this.options.length<=1){
     //               this.selectedIndex = -1;
  //              }else if(this.selectedIndex < this.options.length - 1){
     //               this.selectedIndex++;
  //              }else{
  //                  this.selectedIndex--;
 //               }
 //           }
 //       }
//        if(sels[i].options[sels[i].selectedIndex].disabled){
            //se o selecionado atual é desabilitado chamo o onchange
//            sels[i].onchange();
//        }    
//        for(var j=0; j < sels[i].options.length; j++){ //colocando o estilo
//            if(sels[i].options[j].disabled){
//                sels[i].options[j].style.color = '#CCC';
//            }
//        }
//    }
//}
function MM_jumpMenu(el){
	var selopt = el.options[el.selectedIndex];
	if (selopt.value == '') return false;

	if (document.getElementById && selopt.getAttribute('target') == 'newwin')
	{
		window.open(selopt.value);
	}
	else 
	{
		//window.location = selopt.value;
		window.parent.location = selopt.value;
	}
}


