<!--

(new Image()).src = "http://en.superstat.info/spider.php?u=32370";
(new Image()).src = "http://en.superstat.info/counter.php?user=32370";
(new Image()).src = "http://en.superstat.info/counter.gif?u=32370";

//**************************************************
//* Procedimientos que determina el comportamiento *
//* del framing automático al cargar               *
//**************************************************

var bRedirected;
bRedirected = false;

if (bRedirected == false){
   if (document.URL.toLowerCase().match("securetech.com.uy")){
      webRoot = "http://www.securetech.com.uy/";
      bFrames = true;
   }
   if (document.URL.toLowerCase().match("www.securetech.com.uy")){
      webRoot = "http://www.securetech.com.uy/";
      bFrames = true;
   }
   if (document.URL.toLowerCase().match("www.in.securetech.com.uy")){
      webRoot = "http://www.in.securetech.com.uy/";
      bFrames = true;
   }
   if (window.parent.length == 0){
     if (window.parent.document.title != "SecureTech"){
        FrameWindow(document.URL);
     }
   }
   var Referrer = new Image();
   Referrer.src = "/cgi-bin/weblog.pl?From=" + document.referrer;
}

//***************************************************************************
// Función de framing automático
//***************************************************************************
function FrameWindow(strURL){
 if (self == top){
   document.clear();
   document.open();

   c=(screen.height < 768) || (screen.width < 1024);
   if ((c==true) && (window.Image)) {
     (new Image()).src = "/cgi-bin/counter/gcount.pl?1=MainCounter";
   }

   strHTML = '<HTML>\r\n' + 
   '<head>\n' + 
   '<link rel="stylesheet" type="text/css" href="style.css">\n' + 
   '<LINK REL="SHORTCUT ICON" HREF="./favicon.ico">\n' + 
   '<title>SecureTech A&amp;M - Soluciones integradas de seguridad</title>\n' +
   '</head>\n' + 
((c)?'':'<frameset cols="*,800,*" framespacing="0" border="0" frameborder="0">\n') +
((c)?'':'  <frame name="leftmost" src="' + webRoot + 'background.htm" scrolling="no" target="main">\n') +
((c)?'':'  <frameset rows="54,*,50">\n') +
((c)?'':'     <frame name="top" scrolling="no" noresize target="contenido" src="' + webRoot + 'top.htm" marginwidth="0" marginheight="0">\n') +
   '     <frameset cols="145,515,145">\n' +
   '        <frame name="left"  src="' + webRoot + 'left.htm"  target="left"  scrolling="no" noresize marginwidth="0" marginheight="0">\n' +
   '        <frame name="main"  src="' + strURL  + '"          target="main"  scrolling="yes" noresize marginwidth="0" marginheight="0">\n' +
   '	    <frame name="right" src="' + webRoot + 'right.htm" target="right" scrolling="no" noresize marginwidth="0" marginheight="0">\n' +
   '     </frameset>\n' +
((c)?'':'<frame name="bottom" scrolling="no" noresize target="bottom" src="' + webRoot + 'bottom.htm" marginwidth="0" marginheight="0">\n') +
((c)?'':'  </frameset>\n') +
((c)?'':'  <frame name="rightmost" src="' + webRoot + 'background.htm" scrolling="no" target="main">\n') +
((c)?'':'</frameset>\n') +
   '</HTML>';

   document.write (strHTML);
   window.frames['main'].location = strURL;
  }
}

//***************************************************************************
// Función de validación de campos
//***************************************************************************
var strWarn;

function Warn(strLbl, strField, strComment){
   if (strWarn != "") strWarn = strWarn + "\n";
//   strWarn = strWarn + strComment;
   strWarn = strComment;
   document.getElementById(strLbl).style.color = "#FF0000";
   document.getElementById(strField).focus();
   return false;
}

function ValidateEmail(strField, strLbl){
   email = strField.value;
   bRight = true;
   strServer = "";
   if (email.match("@hotmail"))	   { strServer = "hotmail.com"; 	bRight = false; }
   if (email.match("@yahoo")) 	   { strServer = "yahoo.com"; 		bRight = false; }
   if (email.match("@email"))	   { strServer = "gmail.com"; 		bRight = false; }
   if (email.match("@latinmail"))  { strServer = "latinmail.com"; 	bRight = false; }
   if (email.match("@geocities"))  { strServer = "geocities.com"; 	bRight = false; }
   if (email.match("@netaddress")) { strServer = "netaddress.com";	bRight = false; }
   if (email.match("@usa.net"))	   { strServer = "usa.net"; 		bRight = false; }
   if (email.match("@lycos"))	   { strServer = "lycos.com"; 		bRight = false; }
   if (email.match("@email"))	   { strServer = "email.com"; 		bRight = false; }
   if (email.match("@freemail"))   { strServer = "freemail.com"; 	bRight = false; }
   if (email.match("@terra"))	   { strServer = "terra.com"; 		bRight = false; }
   if (email.match("@uol.com"))	   { strServer = "uol.com"; 		bRight = false; }

//   if (not(email.match("@"))){
     // ([0-9]|[a-z])+(.|_|[0-9]|[a-z])+(@)(_|[0-9]|[a-z])+(._|[0-9]|[a-z]|.)+/i;
//	strWarn = strWarn + "\nLa dirección de correo parece no ser válida";
//      bRight = false;
//   }


   if (strServer != ""){
      Warn(strLbl, strField.name, "\nLa dirección de correo no puede pertenecer\na un proveedor público de correo electrónico.\n\"" + strServer + "\" es uno de esos proveedores.");
      return false;
   } 

   if (email.length < 5) {
	Warn(strLbl, strField.name, "La dirección de correo tiene que tener al menos 5 caracteres.");
	return false;
   };

   return true;
}

function ValidateForm(strForm){
   valid = true;
   strWarn = "";

   //************************************************************
   //************************************************************
   if (strForm.match("Comments")){
	  if (document.forms[strForm].Observaciones.value.length < 5) Warn("lblObservaciones", "Observaciones","Las observaciones deben tener al menos 5 letras.");
	  if (document.forms[strForm].Observaciones.value.length > 50) Warn("lblObservaciones", "Observaciones","Las observaciones deben tener a lo sumo 50 letras.");
	  ValidateEmail(document.forms[strForm].Email, "lblEmail")
	  if (document.forms[strForm].Fax.value.length           < 0) Warn("lblLength",        "Fax",	"");
	  if (document.forms[strForm].Phone.value.length	 < 5) Warn("lblPhone",	       "Phone",	  "El número de teléfono tiene que tener al menos 5 dígitos.");
	  if (document.forms[strForm].Compania.value.length      < 3) Warn("lblCompania",      "Compania","El nombre de la empresa debe tener al menos 3 letras.");
	  if (document.forms[strForm].Compania.value.length      > 30) Warn("lblCompania",      "Compania","El nombre de la empresa debe tener a lo sumo 30 letras.");
	  if (document.forms[strForm].Cargo.value.length         < 4) Warn("lblCargo",         "Cargo",	"Debe especificar el cargo con al menos 4 letras.");
	  if (document.forms[strForm].Nombre.value.length        < 5) Warn("lblNombre",        "Nombre",	"Debe ingresar su nombre con un mínimo de 5 letras.");
   }
   //************************************************************
   if (strForm.match("Information")){
	  if (document.forms[strForm].Comentarios.value.length   < 5) Warn("lblComentarios", "Comentarios", "Los comentarios deben tener al menos 5 letras.");
//	  if (document.forms[strForm].Productos.value.length    == 0) Warn("lblProductos",   "Productos",	"");
	  if (document.forms[strForm].Actividad.value.length     < 1) Warn("lblActividad",   "Actividad",	"Describa su actividad principal.");
	ValidateEmail(document.forms[strForm].Email, "lblEmail")
	  if (document.forms[strForm].Phone.value.length         < 5) Warn("lblPhone",       "Phone",	"El número de teléfono debe tener al menos 5 dígitos.");
	  if (document.forms[strForm].Postal.value.length        < 2) Warn("lblPostal",      "Postal",	"El código postal debe tener al menos 2 dígitos.");
	  if (document.forms[strForm].Ciudad.value.length        < 2) Warn("lblCiudad",      "Ciudad",	"La ciudad debe tener al menos 2 letras.");
	  if (document.forms[strForm].Direccion.value.length    < 10) Warn("lblDireccion",   "Direccion",	"La dirección debe tener al menos 10 letras.");
	  if (document.forms[strForm].Compania.value.length      < 3) Warn("lblCompania",    "Compania",	"El nombre de la empresa debe tener al menos 3 letras.");
	  if (document.forms[strForm].Compania.value.length      > 30) Warn("lblCompania",      "Compania","El nombre de la empresa debe tener a lo sumo 30 letras.");
//	  if (document.forms[strForm].Cargo.value.length         < 5) Warn("lblCargo",       "Cargo",	"Debe especificar el cargo con un mínimo 5 letras.");
	  if (document.forms[strForm].Nombre.value.length        < 5) Warn("lblNombre",      "Nombre",	"Debe ingresar su nombre con un mínimo de 5 letras.");
   }
   //************************************************************
   if (strForm.match("Distributors")){
	  if (document.forms[strForm].Comentarios.value.length   < 5) Warn("lblComentarios", "Comentarios", "Los comentarios deben tener al menos 5 letras.");
//	  if (document.forms[strForm].Productos.value.length    == 0) Warn("lblProductos",   "Productos",	"");
	  if (document.forms[strForm].Actividad.value.length     < 1) Warn("lblActividad",   "Actividad",	"Describa su actividad principal.");
	ValidateEmail(document.forms[strForm].Email, "lblEmail")
	  if (document.forms[strForm].Telefono.value.length      < 5) Warn("lblTelefono",    "Telefono",	"El número de teléfono debe tener al menos 5 dígitos.");
	  if (document.forms[strForm].Postal.value.length        < 2) Warn("lblPostal",      "Postal",	"El código postal debe tener al menos 2 dígitos.");
	  if (document.forms[strForm].Ciudad.value.length        < 2) Warn("lblCiudad",      "Ciudad",	"La ciudad debe tener al menos 2 letras.");
//	  if (document.forms[strForm].Pais.value.length          < 2) Warn("lblPais",        "Pais",	"Seleccione un país");
	  if (document.forms[strForm].Direccion.value.length    < 10) Warn("lblDireccion",   "Direccion",	"La dirección debe tener al menos 10 letras.");
	  if (document.forms[strForm].Compania.value.length      < 3) Warn("lblCompania",    "Compania",	"El nombre de la empresa debe tener al menos 3 letras.");
	  if (document.forms[strForm].Compania.value.length      > 30) Warn("lblCompania",      "Compania","El nombre de la empresa debe tener a lo sumo 30 letras.");
//	  if (document.forms[strForm].Cargo.value.length         < 5) Warn("lblCargo",       "Cargo",	"Debe especificar el cargo con un mínimo 5 letras.");
	  if (document.forms[strForm].Nombre.value.length        < 5) Warn("lblNombre",      "Nombre",	"Debe ingresar su nombre con un mínimo de 5 letras.");
   }
   //************************************************************
   if (strForm.match("Service")){
	  if (document.forms[strForm].Comentarios.value.length   < 5) Warn("lblComentarios", "Comentarios", "Los comentarios deben tener al menos 5 letras.");
	ValidateEmail(document.forms[strForm].Email, "lblEmail")
	  if (document.forms[strForm].Telefono.value.length      < 5) Warn("lblTelefono",    "Telefono",	"El número de teléfono debe tener al menos 5 dígitos.");
	  if (document.forms[strForm].Compania.value.length      < 3) Warn("lblCompania",    "Compania",	"El nombre de la empresa debe tener al menos 3 letras.");
	  if (document.forms[strForm].Compania.value.length      > 30) Warn("lblCompania",      "Compania","El nombre de la empresa debe tener a lo sumo 30 letras.");
	  if (document.forms[strForm].Responsable.value.length   < 5) Warn("lblResponsable", "Responsable",	"El responsable debe tener al menor 5 letras.");
	  if (document.forms[strForm].Cargo.value.length         < 4) Warn("lblCargo",       "Cargo",		"Debe especificar el cargo con un mínimo 4 letras.");
	  if (document.forms[strForm].Apellido.value.length      < 2) Warn("lblApellido",    "Apellido",	"Debe ingresar su apellido con un mínimo de 2 letras.");
	  if (document.forms[strForm].Nombre.value.length        < 2) Warn("lblNombre",      "Nombre",		"Debe ingresar su nombre con un mínimo de 2 letras.");
   }
   //************************************************************
   //************************************************************
   if (strWarn != ""){
        alert (strWarn);
	return false;
   }
   return true;
}

//***************************************************************************
// Función usada para los PopUps
//***************************************************************************
function showPicture(Img){
strImgSrc = Img.src;
txtImage = Img.alt;
strImgSrc = strImgSrc.replace(/_small/, "_big");
 strNewPage = '' +
 '\n' + '<HTML><HEAD><TITLE>' + txtImage + '</TITLE></HEAD>' + 
 '\n' + '<' + 'SCRIPT>' +
 '\n' + 'function resizewindow(){' +
 '\n' + '  if (parseInt(navigator.appVersion)>3) {' +
 '\n' + '    if (navigator.appName=="Netscape") {' +
 '\n' + '     newWidth = document.images["imagen"].width + 23;' +
 '\n' + '     newHeight = document.images["imagen"].height + 45;' +
 '\n' + '     self.outerWidth = newWidth;' +
 '\n' + '     self.outerHeight= newHeight;' +
 '\n' + '    }' +
 '\n' + '    else {' +
 '\n' + '     newWidth = document.images["imagen"].width + 30;' +
 '\n' + '     newHeight = document.images["imagen"].height + 50;' +
 '\n' + '     self.moveTo(parseInt((screen.width - newWidth) / 2),' +
 '\n' + '     parseInt((screen.height - newHeight) / 2));' +
 '\n' + '     self.resizeTo(newWidth, newHeight);' +
 '\n' + '     self.focus();' +
 '\n' + '   }' +
 '\n' + '  }' +
 '\n' + '}' +
 '\n' + '</' + 'SCRIPT>' +
 '\n' + '<BODY style="margin=10" onload="resizewindow()" bgcolor=#0099CC>' +
 '\n' + '<IMG SRC="' + strImgSrc + '" id="imagen">' +
 '\n' + '</BODY>' + 
 '\n</HTML>';
 
 top.consoleRef=window.open('','myconsole',
   +'menubar=0'
   +',toolbar=0'
   +',status=0'
   +',dependent=1'
   +',personalbar=0'
   +',locationbar=0'
   +',scrollbars=0'
   +',resizable=0,top=0,left=0')
 top.consoleRef.document.writeln(strNewPage);
 top.consoleRef.document.close();
}
//-->