function Is() {
agent = navigator.userAgent.toLowerCase();this.ns = ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1)));this.ie = (agent.indexOf("msie") != -1);this.ns6 = ((document.getElementById)&&(!this.ie))?true:false;}
var is = new Is();if (is.ie)
document.write ("");else
document.write ("");if(is.ns) {
doc = "document";sty = "";htm = ".document";alto = "window.pageYOffset";ancho = "window.innerWidth";} else if(is.ie) {
doc = "document.all";sty = ".style";htm = "";alto = "document.body.scrollTop";ancho = "document.body.clientWidth";}
function escribeArea(name,rows,cols)
{
if (is.ie)
document.write ("");else
document.write ("");}
function escribeInput(tipo,name,size,max)
{
if (is.ie)
document.write ("");else
document.write ("");}
function registro ()
{
if ( document.forms[2].Email.value =="" )
{
alert ("El campo E-mail es obligatorio.");return false;}
else
return true;}
function check_responder()
{
if ( document.forms[2].email.value =="" && document.forms[2].clave.value =="" )
return false;else
{
if ( document.forms[2].email.value =="" || document.forms[2].clave.value =="" )
{
alert ("Debe rellenar el email y la contrase�a.");return false;}
else
{
return true;}
}
}
function muestra(capa)
{
if (is.ns6)
{
Obj1Capa = document.getElementById(capa);Obj1Capa.style.top = window.pageYOffset + 180 + "px";Obj1Capa.style.left = window.innerWidth - 350 + "px";Obj1Capa.style.visibility = "visible";}
else
{
capa1Obj = eval(doc + '[capa]' + sty);capa1Obj.top = eval(alto) + 200;capa1Obj.left = eval(ancho) - 350;capa1Obj.visibility = "visible";}
}
function oculta(capa)
{
if (is.ns6)
{
Obj1Capa = document.getElementById(capa);Obj1Capa.style.visibility = "hidden";}
else
{
capa1Obj = eval(doc + '[capa]' + sty);capa1Obj.visibility = "hidden";}
}
function CuentaClick(tipo,id){
ImagenCuenta = new Image();d = new Date();ImagenCuenta.src = 'CuentaClick.asp?tipo=' + tipo + '&idclick=' + id + '&now=' + d.getTime();}