<!--
  function mOvr(src,clrOver,urls) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	  if (urls !=undefined) window.status = urls;
	}
  }
  function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
	  window.status='';
	}
  }
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
  }

function GoUrl(s)
        {       var d = s.options[s.selectedIndex].value
                window.top.location.href = d
                s.selectedIndex=0
         }


function GoUrl2(theurl){
		document.location.href = theurl
	} 


function anadir(origen,destino) {
	var seaņadio = false
	var id_sel = origen.options.selectedIndex
	var nuevoelem = new Option()
	if(id_sel < 0) return;
	
	for (var i=0;i<destino.options.length;i++){
		if(destino.options[i].value != "" && destino.options[i].value == origen.options[id_sel].value){
		   seaņadio = true;
		}
	}
	if (seaņadio==false){
	   var listspec=""
	   nuevoelem.text = origen.options[id_sel].text;
		 nuevoelem.value = origen.options[id_sel].value;	
		 destino.options[destino.options.length] = nuevoelem;
		 for (var j=0;j<destino.options.length;j++){
		 		if(j<destino.options.length - 1	 ) 
		 			listspec = listspec + destino.options[j].value + ","
		 		else
		 			listspec = listspec + destino.options[j].value
		 }
		 document.translator.specializations.value = listspec; 
	}	
}

function remover(origen,result){
	var listspec=""
	var id_sel = origen.selectedIndex
	if (id_sel < 0 ) return;
	origen.options[id_sel] = null;
	if (result != undefined){
	for (var j=0;j<origen.options.length;j++){
		 		if(j<origen.options.length - 1 ) 
		 			listspec = listspec + origen.options[j].value + ","
		 		else
		 			listspec = listspec + origen.options[j].value
		 }
	document.translator.specializations.value = listspec; 
	}
}

//FUNCCION QUE COMPRUEBA EL CAMPO DE LANGUAGES
 function complanguages(source,target,pulsado,result){
   var id_ls = source.options.selectedIndex;
   var id_ts = target.options.selectedIndex;
  
	 var tmplang = '';
	 var comma = '';
	
  if (source.options[id_ls].value != "" && target.options[id_ts].value != "") {
		if (id_ls==id_ts) {
		  alert ('Source and target languages must be diferent')
		  if(pulsado==1) source.options.selectedIndex = 0
		  if(pulsado==2) target.options.selectedIndex = 0
		  return;
		}
		}
		
	if (result != undefined ){
		var combina = document.translator.comb.value;
		ccombination = source.value + "-" + target.value;
		
		var lastcombination = combina.split(",")
		var existe=false
	
		for(var i = 0; i<lastcombination.length;i++){
		   if (ccombination == lastcombination[i]) {
		   		existe = true;
		   		if(pulsado==1) source.options.selectedIndex = 0
		  		if(pulsado==2) target.options.selectedIndex = 0
		   		alert('You have selected this language combination')
		   		return;
		   }
		}
		if (source.options[id_ls].value == "") target.options.selectedIndex = 0
		if (target.options[id_ls].value != "" && target.options[id_ts].value=="") return; 
		var newlang;
		if(existe==false){
				for(var j=1; j<=8; j++){
						var objsource = document.getElementsByName('langsource' + j)[0].value;
						var objtarget = document.getElementsByName('langtarget' + j)[0].value;
						
						newlang = objsource + "-" + objtarget;
						if(newlang != '-') {
				  			if(j>1) comma = ";";
				  			tmplang = tmplang + comma + newlang;
				  	}	
				}	
				document.translator.comb.value = tmplang;
		 }
	 }
}

var xPos;
var yPos;

function ToolTip(msg,evt){
    if (evt) {
        var url = evt.target;
    }
    else {
        evt = window.event;
        var url = evt.srcElement;
    }
    xPos = evt.clientX;
    yPos = evt.clientY;

    var toolTip = document.getElementById("toolTip");
    toolTip.innerHTML = "<span>"+msg+"</span>";
    toolTip.style.top = parseInt(yPos)+2 + "px";
    toolTip.style.left = parseInt(xPos)+2 + "px";
    toolTip.style.visibility = "visible";
}

function hideToolTip(){
   var toolTip = document.getElementById("toolTip");
   toolTip.style.visibility = "hidden";
}
-->

