function cambia(m){
	switch(m){
		case 1:  document.getElementById("c1").src="images/2b.jpg";  document.getElementById("txt1").style.color="#000000"; break
		case 2:  document.getElementById("c1").src="images/2a.jpg";  document.getElementById("txt1").style.color="#E27A17"; break
		case 3:  document.getElementById("c2").src="images/1b.jpg";  document.getElementById("txt2").style.color="#000000"; break
		case 4:  document.getElementById("c2").src="images/1a.jpg";  document.getElementById("txt2").style.color="#E27A17"; break
		case 5:  document.getElementById("c3").src="images/8b.jpg";  document.getElementById("txt3").style.color="#000000"; break
		case 6:  document.getElementById("c3").src="images/8a.jpg";  document.getElementById("txt3").style.color="#E27A17"; break
		case 7:  document.getElementById("c4").src="images/6b.jpg";  document.getElementById("txt4").style.color="#000000"; break
		case 8:  document.getElementById("c4").src="images/6a.jpg";  document.getElementById("txt4").style.color="#E27A17"; break
		case 9:  document.getElementById("c5").src="images/12b.jpg"; document.getElementById("txt5").style.color="#000000"; break
		case 10: document.getElementById("c5").src="images/12a.jpg"; document.getElementById("txt5").style.color="#E27A17"; break
		case 11: document.getElementById("c6").src="images/11b.jpg"; document.getElementById("txt6").style.color="#000000"; break
		case 12: document.getElementById("c6").src="images/11a.jpg"; document.getElementById("txt6").style.color="#E27A17"; break
		case 13: document.getElementById("c7").src="images/13b.jpg"; document.getElementById("txt7").style.color="#000000"; break
		case 14: document.getElementById("c7").src="images/13a.jpg"; document.getElementById("txt7").style.color="#E27A17"; break
		}
	}
function area(a){
	var marea='';
	switch(a){
		case 1: marea="340px"; break;
		case 2: marea="400px"; break;
		case 3: marea="500px"; break;
		case 4: marea="600px"; break;
		}
	document.getElementById("contenido").style.height=marea;
	}
function valida()
	{
	error=0;
	a=document.f1.a1.value; if(a=='') { error++; document.f1.a1.style.backgroundColor="#FFFF00"; } else { document.f1.a1.style.backgroundColor=""; a=''; }
	a=document.f1.a2.value; if(a=='') { error++; document.f1.a2.style.backgroundColor="#FFFF00"; } else { document.f1.a2.style.backgroundColor=""; a=''; }
	a=document.f1.a3.value; if(a=='') { error++; document.f1.a3.style.backgroundColor="#FFFF00"; } else { document.f1.a3.style.backgroundColor=""; a=''; }
	a=document.f1.a4.value; if(a=='') { error++; document.f1.a4.style.backgroundColor="#FFFF00"; } else { document.f1.a4.style.backgroundColor=""; a=''; }
	if(error>0)
		{
		alert("Todos los campos resaltados son necesarios");
		return false;
		}
	else
		{
		document.f1.submit();
		}
	}
function whois()
	{
	tx2="";
	tx=document.f1.a0.value;
	mx=tx.length;
	for(i=0;i<=mx;i++){
		if(tx.charAt(i)!=" "){
			tx2=tx2+tx.charAt(i);
			}
		}
	document.f1.a0.value=tx2;
	
	error=0;
	a=document.f1.a0.value; if(a=='') { error++; document.f1.a0.style.backgroundColor="#FFFF00"; } else { document.f1.a0.style.backgroundColor=""; a=''; }
	if(error>0)
		{
		alert("Por favor ingresa un nombre de dominio valido");
		return false;
		}
	else
		{
		document.f1.submit();
		}
	}
function cursor(){
	document.f1.a0.focus();
}
function ayuda(index){
	switch(index){
		case 1:
			alert("SOLO LETRAS Y NUMEROS, NO SE PERMITEN ACENTOS NI CARACTERES ESPECIALES.");
		break;
		}
	}
