function gogogo(selObj) {
  if (selObj.options[selObj.selectedIndex].value != "") {
    top.location.href = selObj.options[selObj.selectedIndex].value;
    // selObj.selectedIndex = 0;
  }
}

function gofaraway(selObj) {
  if (selObj.options[selObj.selectedIndex].value != "") {
    window.open(selObj.options[selObj.selectedIndex].value);
  }
}

function unLogUser() {
//  window.open('pop_go_offline.php', 'closer', 'width=50,height=50,top=1000,left=1000,scrollbars=0,resizable=0')
}

// Seta cor do td - roubado (e modificado) do source do phpMyAdmin!
function setColor(theRow, thePointerColor) {
    if (typeof(theRow.style) == 'undefined') { return false; }
    theRow.bgColor = thePointerColor;
    return true;
}


// http://msdn.microsoft.com/library/default.asp?url=/workshop/author/tables/tables_overview.asp
function sh(nome) {
  if (eval(nome+"1").style.display == "none") {
    eval(nome+"1").style.display = "";
    eval(nome+"2").style.display = "";
  } else {
    eval(nome+"1").style.display = "none";
    eval(nome+"2").style.display = "none";
  }
}
  

function SetCookie (name, value) {  
  var argv = SetCookie.arguments;  
  var argc = SetCookie.arguments.length;  
  var expires = (argc > 2) ? argv[2] : null;  
  var path = (argc > 3) ? argv[3] : null;  
  var domain = (argc > 4) ? argv[4] : null;  
  var secure = (argc > 5) ? argv[5] : false;  
  document.cookie = name + "=" + escape (value) + 
  ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
  ((path == null) ? "" : ("; path=" + path)) +  
  ((domain == null) ? "" : ("; domain=" + domain)) +    
  ((secure == true) ? "; secure" : "");
}

var ant;
av=navigator.appVersion;
hh=av.indexOf("2.0");   
function an(tpage,vals)
 { ant=window.open(tpage,"SMWIN",vals); ant.location=tpage; if (ant.opener==null) ant.opener=window; if (hh!=0) ant.focus(); }
 
 function parent_link(url){

	window.opener.location.href = url;
	window.close();
	
}

function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=yes, resizable=yes');
}
