
function ovd(param,param2){
ovx = open("mv.php?vd="+param+"&t="+param2,"ovx","width=540,height=570,0,0,0,0")
ovx.focus();
}



function ovdopen(param){
ovxD = open("mvd.php?id="+param,"ovxD","width=540,height=570,0,0,0,0")
ovxD.focus();
}





document.write("<div id='ABHID' style='position:absolute;visibility:hidden;'></div>")
function downvideo(param){
document.getElementById("ABHID").innerHTML = "<iframe style='width:0;height:0;visibility:hidden;' name='nww'></iframe>"
open(param,"nww","0,0,0,0")
}



var OPENER_OK = 1

var top,resta,tam

function reduce(){
top = document.getElementById("td_top").offsetHeight 

/*nav = "<?=$HTTP_USER_AGENT?>"*/
/*opera =  nav.search(/(Opera)/)*/
/*para opera*/
/*if(opera != -1)  resta = document.body.clientHeight*/
/*else  resta = document.documentElement.clientHeight*/
/*alert(documentElement.clientHeight)*/
/*para el resto*/
 resta = document.body.clientHeight
tam =  resta - top

document.getElementById("iframe_cam").style.height = tam+'px'
}


function openchat(param,w,h){
if(!param) param = "http://intermedier.com/axchat/index.php"
dww = open(param,"dww","height="+h+",width="+w+",0,0,0")
dww.focus()
}

function openchat2(param){
if(!param) param = "http://intermedier.com/axchat/index.php"
var i = 'i'

scrpt = ''; //'<scr'+i+'pt>setInterval("window.status =\'CHAT QUESALIDAS.COM\'",1)</scr'+i+'pt>';
ifchat = "<html><head><title>CHAT QUESALIDAS.COM</title>"+scrpt+"<style>body{margin:0;}</style></head><body><iframe width='100%' height='100%' scrolling='no' marginheight='0' marginwidth='0' src='http://awebx.com/cgi-bin/irc/irc.cgi'></iframe></body></html>"
dwwwx = open("","dwwwx","height=560 width=720,0,0,0,resizable=1,status=no")
dwwwx.document.write(ifchat)
dwwwx.focus()
}


function snd_mail(pas,dosx){
if(dosx) snd = open("sndmail.php?ng2="+pas,'snd_x','resizable=1,width=620,height=590,scrollbars=1,0,0,0,0')
else snd = open("sndmail.php?ng_i="+pas,'snd_x','resizable=1,width=620,height=590,scrollbars=1,0,0,0,0')
snd.focus();
}


var desplegado = false
function estado2(id) {
if(desplegado && desplegado != id) {
document.getElementById(desplegado).className = "oculta";
}
if(document.getElementById(id).className != "oculta"){
document.getElementById(id).className = "oculta";
} else {
desplegado = id
document.getElementById(id).className = "muestra";
}
}




var altocomun = "28px";
function estado(id,mant) {
document.getElementById("roll").className = mant
if(document.getElementById(id).className != "oculta"){
document.getElementById(id).className = "oculta";
} else {
document.getElementById(id).className = "muestra";
}
document.getElementById(id).style.height = altocomun
}


function lnk(hrf){
location.href= hrf
}





function hyouji(){
	mojiDOS=mojiDOS.substring(2,mojiDOS.length)+mojiDOS.substring(0,2);
	document.getElementById("roll").innerHTML = mojiDOS
}






var DOMX = '';
function stoproll(){
clearInterval(DOMX);
DOMX = ''
}
function startroll(){
if(DOMX == '') DOMX = setInterval("hyouji()",135);
document.getElementById("roll").style.width = document.getElementById("tdroll").offsetWidth + 'px'
}




/* AGREGAR A FAVORITOS */


function agregar(){ 
   if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) { 
      var url="http://www.quesalidas.com/"; 
      var titulo=" el mejor porno"; 
      window.external.AddFavorite(url,titulo); 
   } 
   else { 
      if(navigator.appName == "Netscape") 
         alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks"); 
   } 
} 








function op_ed(){
eder = window.open("http://www.quesalidas.com/webs/relatosdeusuarios/edita/admin.php","eder","width="+screen.width+",height=660,resizable=1,0,0,0,0");
eder.focus()
}



function wopen(p1,p2,p3){
p2 = window.open(p1,p2,p3);
p2.focus()
}


function open_radio(){
radiox = open("http://radioenlace.es/external/open.php?go=areDRadio&oprdOPEN=[]["+location.href+"]",'radio','width=260,height=80,0,0,0,0')
radiox.focus()
}







function presearch(pas){
if(document.forms.ps.tipo[0].checked) location.href = '?home=b&v1=1&chk=1&fsearch='+pas
else if(document.forms.ps.tipo[1].checked) location.href = '?home=b&chk=0&v2=1&fsearch='+pas
else if(document.forms.ps.tipo[2].checked) location.href = 'http://www.quesalidas.com/links.php?home=lkaf&v3=1&search='+pas+'&andor=or'
return false;
}
function limpia(){
if(document.getElementById("fsearch").value == 'buscar') document.getElementById("fsearch").value = ''
}





function opentv(){
xtv = open("http://awebx.com/pornotv/","xtv","width=840,height=620,resizable=1,scrollbars=1,0,0,0,0,0");
xtv.focus()
}


function sugiere_encuesta(){
se = open("http://www.quesalidas.com/encuestas/sugiere.php","se","width=460,height=460,scrollbars=1,status=1,0,0,0,0")
se.focus();

}







