// (C) Chistes.cl
// Aqui van las funciones comunes a todas las paginas

// salir de frames
if (window != window.top)
top.location.href = location.href;


window.name="ventana_principal";


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var win= null;
function popup(url,name,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes';
  win=window.open(url,name,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}


function Arr(src,clrOver) {
// if (!src.contains(event.fromElement)) {
	src.style.cursor = 'hand';
	src.bgColor = clrOver;
// }
}
function Aba(src,clrIn) {
// if (!src.contains(event.toElement)) {
	src.style.cursor = 'default';
	src.bgColor = clrIn;
// }
}
function Cli(src) {
// if(event.srcElement.tagName=='TD'){
	src.children.tags('A')[0].click();
// }
}

//-->
