
document.domain  = "weborama.com";

/////////////////////////////////////////////
//fonction d'expiration de session
function session_exp() {
parent.haut.location.replace("http://es.weborama.com/admin_princ/haut_erreur.html");        
parent.principale.location.replace("http://es.weborama.com/admin_princ/erreur.php3?num=2");
}


////////////////////////////////////////////

function VersionNavigateur(Netscape, Explorer) {
	if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') || (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
	return true;
	else return false;
	}

function access_chat()
{
	window.location.replace('http://es.weborama.com/chat.php3');

}
function access_sondage()
{
        self.location.replace('http://es.weborama.com/sondage.php3');

}
function access_index()
{
        self.location.replace('http://es.weborama.com/index.php3');

}

function access_webo()
{
        self.location.replace('http://es.weborama.com/weborama.php3');

}

function access_inscription(num)
{
        eval("self.location.replace('http://es.weborama.com/inscription/inscription.php3?PAGE="+num+"')");
}

function access_charte()
{
       window.open('http://es.weborama.com/charte.html','privacidad','width=630,height=600,resizable=yes,scrollbars=yes');
}

function access_condition()
{
       window.open('http://es.weborama.com/condition.html','condition','width=630,height=600,resizable=yes,scrollbars=yes');
}



function access_faq()
{
       window.open('http://encuesta.weborama.com/es/faq.html','faq','width=620,height=600,resizable=yes,scrollbars=yes');
}




function access_mail()
{
       window.open('http://es.weborama.com/contacto/bd_contacto.html','contacto','width=510,height=460,resizable=yes,scrollbars=yes');
}

function access_codigo()
{
       window.open('http://es.weborama.com/contacto/codigo.html','codigo','width=510,height=360,resizable=yes,scrollbars=yes');
}


// admin principale

function sondage(id,cle) {
	parent.haut.location.replace("http://es.weborama.com/admin_princ/haut.php3?paseo=3&id="+id);
	parent.principale.location.replace("http://encuesta.weborama.com/access_admin.php3?id="+cle);
}

function chat(id) {
	parent.haut.location.replace("http://es.weborama.com/admin_princ/haut.php3?paseo=2&id="+id);
	parent.principale.location.replace("http://es.weborama.com/admin_chat/ad_chat.php3?id="+id);
}

function portada(id) {
	parent.haut.location = ("http://es.weborama.com/admin_princ/haut.php3?paseo=0&id="+id);
	parent.principale.location = ("http://es.weborama.com/admin_princ/principale.php3?id="+id);
}


// admin chat

function paseo2_chat() {
	var bouton = document.etape2.bouton.value;
	var img1 = document.etape2.image[0].checked;
	var img2 = document.etape2.image[1].checked;
	var img3 = document.etape2.image[2].checked;
	var img4 = document.etape2.image[3].checked;

	if ( (img1 || img2 || img3 || img4 ) & ( bouton != "Elija su texto" ))
	{
	alert("Seleccione un solo tipo de entrada");
	document.etape2.reset();  
	}
	else
	{
		if ( (img1 || img2 || img3 || img4 )==false & ( bouton == "Elija su texto" ))
		{
			alert("Seleccione un tipo de entrada");
		}
		else
		{
			document.etape2.submit();
		}
	}
}



