	var linea='c';
				var linea_old='z';
				var base_linea_old='z';


				function cambiaColor(id, src, color)
				{
				document.all[id].bgColor = color;
				src.style.cursor="hand";
				}

				function cambiaColor3(color) {
				if (linea_old!='z') {
				document.all[linea_old].bgColor = color;
				document.all[base_linea_old].bgColor = '#C0C0C0';
				}
				}



				function cambiaColor2(id, t, src, color1, color2) {

				if (id==linea) {
				document.all[id].bgColor = color2;
				//document.all[t].bgColor =  '#C0C0C0';
				}
				else {
				document.all[id].bgColor = color1;
				//document.all[t].bgColor =   '#C0C0C0';
				}

				src.style.cursor="hand";
				}
				
function valFormusuaris() {
var countChecked = 0;
for(i=0;i<document.MyForm.p_idiomas.length;i++) {
if(document.MyForm.p_idiomas[i].checked==true)
{ countChecked++; }
	}
if (document.MyForm.p_emp.value =='' ) {
alert ("Introduzca el directorio de la web.");
return false;
}
else if (document.MyForm.p_Nomemp.value =='' ) {
alert ("Introduzca el nombre de la empresa.");
return false;
}
else if (document.MyForm.p_username.value =='' ) {
alert ("Introduzca el nombre de usuario.");
return false;
}
else if (document.MyForm.p_clau.value =='' ) {
alert ("Introduzca el password.");
return false;
}
else if (document.MyForm.p_source.value =='' ) {
alert ("Introduzca el source.");
return false;
}
else if (document.MyForm.p_gral.value =='' ) {
alert ("Si no se activa la casilla Acceso gral., este usuario no tendrá acceso.");
return false;
}
else if (document.MyForm.p_ok.value =='' ) {
alert ("Si no se activa la casilla Visualweb, este usuario no tendrá acceso.");
return false;
}
else if (document.MyForm.p_name.value =='' ) {
alert ("Introduzca el nombre de la persona de contacto.");
return false;
}
else if (document.MyForm.p_cognom.value =='' ) {
alert ("Introduzca los apellidos de la persona de contacto.");
return false;
}
else if (document.MyForm.p_tel.value =='' ) {
alert ("Introduzca el teléfono de la persona de contacto.");
return false;
}
else if (document.MyForm.p_mail.value =='' ) {
alert ("Introduzca el e-mail de contacto (Aquí se enviará el recordatorio de los datos).");
return false;
}
else if (countChecked==0 ) {
alert ("Seleccione al menos un idioma");
return false;
}
else {

return true;
}
}


function ValWebDatos() {
if (document.MyForm.tit.value =='' ) {
alert ("Introduzca el título de la web.");
return false;
}
else if (document.MyForm.slo.value =='' ) {
alert ("Introduzca el subtítulo o slogan de la web.\nPuede introducir un espacio en blanco si lo desea.");
return false;
}
else if (document.MyForm.pie.value =='' ) {
alert ("Introduzca el texto que aparecerá al pié de las páginas.");
return false;
}
else {
//return checkRadios();
return true;
}
}

function valFormServs() {
if (document.form1.tit.value =='' ) {
alert ("Introduzca el nombre del servicio.");
return false;
}
else if (document.form1.slo.value =='' ) {
alert ("Introduzca el enlace del servicio (p. ej. /visualweb/basquet/equips.asp).");
return false;
}
else if (document.form1.pie.value =='' ) {
alert ("Introduzca el enlace del servicio (p. ej. /visualweb/basquet/index.asp).");
return false;
}
else {
return true;
}
}



function ventana2(myurl) {
var w = 450
var h = 200
var winleft = (screen.width-w) / 2-10;
var wint = (screen.height-h) / 2;
var props = 'height='+h+',width='+w+',top=120,left='+winleft+',scrollbars=no, resizable=no, status=no'
var newWindow2;
newWindow2 = window.open(myurl, "b2", props);
newWindow2.window.focus();
}

function ventana3(myurl) {
var w = 450
var h = 300
var winleft = (screen.width-w) / 2-10;
var wint = (screen.height-h) / 2;
var props = 'height='+h+',width='+w+',top=120,left='+winleft+',scrollbars=no, resizable=no, status=no'
var newWindow2;
newWindow2 = window.open(myurl, "b3", props);
newWindow2.window.focus();
}

function ventana4(myurl) {
var w = 450
var h = 400
var winleft = (screen.width-w) / 2-10;
var wint = (screen.height-h) / 2;
var props = 'height='+h+',width='+w+',top=120,left='+winleft+',scrollbars=no, resizable=no, status=no'
var newWindow2;
newWindow2 = window.open(myurl, "b4", props);
newWindow2.window.focus();
}

function ventana5(myurl) {
var w = 550
var h = 600
var winleft = (screen.width-w) / 2-10;
var wint = (screen.height-h) / 2;
var props = 'height='+h+',width='+w+',top=120,left='+winleft+',scrollbars=no, resizable=no, status=no'
var newWindow2;
newWindow2 = window.open(myurl, "b5", props);
newWindow2.window.focus();
}

function ventana5sc(myurl) {
var w = 550
var h = 600
var winleft = (screen.width-w) / 2-10;
var wint = (screen.height-h) / 2;
var props = 'height='+h+',width='+w+',top=120,left='+winleft+',scrollbars=auto, resizable=no, status=no'
var newWindow2;
newWindow2 = window.open(myurl, "b5sc", props);
newWindow2.window.focus();
}

function ventana5PRO(myurl) {
var w = 780
var h = 600
var winleft = (screen.width-w) / 2-10;
var wint = (screen.height-h) / 2;
var props = 'height='+h+',width='+w+',top=120,left='+winleft+',scrollbars=no, resizable=no, status=no'
var newWindow2;
newWindow2 = window.open(myurl, "b5", props);
newWindow2.window.focus();
}

function ventana6(myurl) {
var w = 640
var h = 500
var winleft = (screen.width-w) / 2-10;
var wint = (screen.height-h) / 2;
var props = 'height='+h+',width='+w+',top=120,left='+winleft+',scrollbars=yes, resizable=no, status=no'
var newWindow2;
newWindow2 = window.open(myurl, "b6", props);
newWindow2.window.focus();
}


function confirma_borrar(msg,url) {
if (confirm(msg)) {
window.location = (url);
}  
}
