function displaySWF(valor,alto,ancho) {
	document.write('<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=');
	document.write(alto);
	document.write(' width=');
	document.write(ancho);
	document.write(' align=absMiddle classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>');
	document.write('<PARAM NAME="movie" VALUE="');
	document.write(valor);
	document.write('.swf"> <PARAM NAME="quality" VALUE="high"> <embed src="');
	document.write(valor);
	document.write('.swf" width="');
	document.write(ancho);
	document.write('" height="');
	document.write(alto);
	document.write('" align="absmiddle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </OBJECT>');
}
function displaySWFtransparent(valor,alto,ancho) {
document.write('<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height=');
	document.write(alto);
	document.write(' width=');
	document.write(ancho);
	document.write(' align=absMiddle classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>');
	document.write('<PARAM NAME="movie" VALUE="');
	document.write(valor);
	document.write('.swf"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="wmode" VALUE="transparent"> <embed wmode="transparent" src="');
	document.write(valor);
	document.write('.swf" width="');
	document.write(ancho);
	document.write('" height="');
	document.write(alto);
	document.write('" align="absmiddle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </OBJECT>');
}
var index=null;
var time=2000;
var counter=0;
var L=new Array("Cursos","Diplomados","Postgrados");
function showNameButton() {
	document.getElementById('c').innerHTML=L[counter];
	(counter>=(L.length-1))?counter=0:counter++;
	if(!index) {
		index=window.setInterval("showNameButton()",time);
	}
}
function ValidForm(zone) {
	var next = true;
	if (document.fcontact.nombre.value.length<10){ 
       alert("Disculpe, debe que escribir su Nombre y Apellido para continuar.");
       document.fcontact.nombre.focus();
	   next = false;
	}
	if (document.fcontact.mail.value.length==0 && next == true) {
		alert("Disculpe, debe ingresar su E-Mail para continuar.");
		document.fcontact.mail.focus();
		next = false;
	} else {
		var correct=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
    	if ((!correct.test(document.fcontact.mail.value) && next == true)) {
			alert("Disculpe, debe ingresar un E-Mail valido para continuar.");
			document.fcontact.mail.focus();
			next = false;
		}
	}
	if (zone == "l") {
		if (document.fcontact.telef.value.length<7 && next == true){ 
       		alert("Disculpe, debe ingresar su Numero de Telefono para continuar.");
       		document.fcontact.telef.focus();
	   		next = false;
		}
		if (document.fcontact.local.value.length==0 && next == true){ 
       		alert("Disculpe, debe que escribir su Localidad para continuar.");
       		document.fcontact.local.focus();
	   		next = false;
		}
	}
	if (document.fcontact.comentario.value.length==0 && next == true){ 
       alert("Disculpe, debe que escribir el motivo de su consulta para continuar.");
       document.fcontact.comentario.focus();
	   next = false;
    }
	
	if (next == true) {
		document.fcontact.submit();
	}
}
function ValidAlta() {
	var next = true;
	if (document.alta.nombre_peo.value.length<4){ 
    	alert("Disculpe, debe ingresar su Nombre.");
    	document.alta.nombre_peo.focus();
		next = false;
	}
	if (document.alta.apellido_peo.value.length<4 && next == true){ 
    	alert("Disculpe, debe ingresar su Apellido.");
    	document.alta.apellido_peo.focus();
		next = false;
	}
	if (document.alta.email_peo.value.length==0 && next == true) {
		alert("Disculpe, debe ingresar su E-Mail para continuar.");
		document.alta.email_peo.focus();
		next = false;
	} else {
		var correct=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
    	if ((!correct.test(document.alta.email_peo.value) && next == true)) {
			alert("Disculpe, debe ingresar un E-Mail valido para continuar.");
			document.alta.email_peo.focus();
			next = false;
		}
	}
	if (document.alta.carrera_id.value.length<1 && next == true){ 
    	alert("Disculpe, debe seleccionar su Carrera.");
    	document.alta.carrera_id.focus();
		next = false;
	}
	if (document.alta.agno_car.value.length<1 && next == true){ 
    	alert("Disculpe, debe ingresar el Aņo que cursa.");
    	document.alta.agno_car.focus();
		next = false;
	}
	
	if (next == true) {
		document.alta.submit();
	}
}

