

function embedFlash(ubicacion,pelicula,ancho,alto,parametro,valor,parametro1,valor1){
	  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ancho+'" height="'+alto+'" title="Systematic IT Solutions">');
		document.write('<param name="movie" value="'+ubicacion+pelicula+'.swf?'+parametro+'='+valor+'&'+parametro1+'='+valor1+'" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="wmode" value="transparent" />');
		document.write('<embed src="'+ubicacion+pelicula+'.swf?'+parametro+'='+valor+'&'+parametro1+'='+valor1+'" width="'+ancho+'" height="'+alto+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
	  document.write('</object>');
}
function direccionEmail(nombre){
  sitio = "systematic.com.ar";
  document.write('<a href=\"mailto:' + nombre + '@' + sitio + '\">');
  document.write(nombre + '@' + sitio + '</a>');
}


function masinfo(capaMostrar,estado){
  navegador = browser();
  if(estado == "desplegar"){
    if(navegador == 1){
        document.getElementById(capaMostrar).style.display = 'table-row';
    } else if(navegador == 2){
        document.getElementById(capaMostrar).style.display = 'inline';
    }
  } else {
    document.getElementById(capaMostrar).style.display = "none";
  }
}

function browser() {
 	var agt=navigator.userAgent.toLowerCase();
  	var agt=navigator.userAgent.toLowerCase();
    var es_moz  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('msie')==-1));
    var es_ie   = (agt.indexOf("msie") != -1);
  	if (es_moz) {
  	navegador = 1;
        } else if (es_ie) {
        navegador = 2;
        }
        return navegador;
}

function validate(){
x=document.contacto
nombre=x.nombre.value
apellido=x.apellido.value
email = x.email.value.indexOf("@")
consulta=x.mensaje.value

submitOK="True"

if (nombre < "3"){
 alert("Por favor, Complete el campo de Apellido")
 submitOK="False"
 }
if (apellido < "3"){
 alert("Por favor, Complete el campo de Apellido")
 submitOK="False"
 }
if (email == "-1"){
 alert("Por favor, Complete el campo de E-mail")
 submitOK="False"
 }
if (consulta < "3"){
 alert("Por favor, Complete el campo de Consulta")
 submitOK="False"
 }
if (submitOK=="False"){
 return false
 }
}

