function pasar(sel1, sel2) {
	obj=document.getElementById(sel1);
	obj2=document.getElementById(sel2);
	var pasar;
	var txt;
	if (obj.selectedIndex==-1) return;
	var valor=obj.options[obj.selectedIndex].value;
	var txt=obj.options[obj.selectedIndex].text;
	for (p=0; p<obj2.options.length; p++){
		if (obj2.options[p].value==valor){
			pasar=1;
		}
	}
	if(pasar!=1){
		opc = new Option(txt,valor);
		eval(obj2.options[obj2.options.length]=opc); 
	}
}
function borrar(sel) {
	obj=document.getElementById(sel);
	if (obj.selectedIndex >= 0) { 	
	obj.options[obj.selectedIndex]=null; 	
	obj.selectedIndex=0; 
	} 
	}
function marcar_selec(sel) { 
obj=document.getElementById(sel); 
for ( i=0;  i<obj.options.length;i++){ 
obj.options[i].selected = true; 
}
}
function enviar(campos) { 
if (campos.indexOf('tema2',0)>-1){
 marcar_selec('tema2');
}
if (campos.indexOf('tema_noticias2',0)>-1){
 marcar_selec('tema_noticias2');
}
if (campos.indexOf('tema_convocatorias2',0)>-1){
 marcar_selec('tema_convocatorias2');
}
if (campos.indexOf('tema_anuncios2',0)>-1){
 marcar_selec('tema_anuncios2');
}
document.getElementById('form1').submit();
}


