// encuesta

function votar()
{
  if(document.formulario.opcion[0].checked) valor="1";
  if(document.formulario.opcion[1].checked) valor="2";
  if(document.formulario.opcion[2].checked) valor="3";

  ventana2 = window.open("http://www.espondilitis.info/cgi-bin/encuesta/encuesta.pl?opcion="+valor+"&Vote=Vote","resultado","resizable=no,width=250,height=200");  
//    ventana2 = window.open("/cgi-bin/encuesta.pl?opcion="+valor+"&Vote=Vote","resultado","resizable=no,width=250,height=200");  
}

function resultado()
{
//  ventana2 = window.open("http://espondilitis/cgi-bin/encuesta.pl","resultado","resizable=no,width=250,height=200");
  ventana2 = window.open("http://www.espondilitis.info/cgi-bin/encuesta/encuesta.pl","resultado","resizable=no,width=250,height=200");
}

// botones

function resaltado() {
        what = window.event.srcElement;
        what.src = what.src.substring(0,(what.src.indexOf(".gif"))) + "r.gif";
        var cuales = what.src.substring((what.src.indexOf("/b"))+2,(what.src.indexOf(".gif"))-1);
        switch(cuales)
        {
                case "chat":
                        status = "Participa en nuestro Chat";
                        break;
                case "foro":
                        status = "Accede al foro de debate";
                        break;
                case "nove":
                        status = "Al dia de las novedades de nuestra Web";
                        break;
        }
        window.event.cancelBubble = true;
}
function normal() {
	what = window.event.srcElement
        what.src = what.src.substring(0,(what.src.indexOf(".gif"))-1) + ".gif";
        status = ""
        window.event.cancelBubble = true;
}
// menus
function icor() {
        what = window.event.srcElement;
        what.src = what.src.substring(0,(what.src.indexOf("ico")+3)) +"2"+ what.src.substring((what.src.indexOf("ico")+4),100);
        window.event.cancelBubble = true;

}
function icon() {
        what = window.event.srcElement;
        what.src = what.src.substring(0,(what.src.indexOf("ico")+3)) +"1"+ what.src.substring((what.src.indexOf("ico")+4),100);
        window.event.cancelBubble = true;

}
