<!--
// -------------------------------
// Javascript File: EasyMail 2005
// -------------------------------

// Picture Windows
function picwin(url, ww, hh) {
 var nap = navigator.appName;
 if (nap.indexOf("Netscape") > -1) {loadIntoNS(url, ww, hh); return;}
 var wd = (screen.width - ww) /2;
 var ht = (screen.height - hh) /2;
 var title = "Click Image to Close Window";
 for (i=0; i<300; i++) title = title + "&nbsp;";
 win = window.open('', 'win', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+ww+',height='+hh+',left='+wd+',top='+ht);
 win.document.write('<HTML><TITLE>'+title+'</TITLE><BODY LEFTMARGIN=0 TOPMARGIN=0>');
 win.document.write('<IMG SRC="' +url+ '" WIDTH=' +ww+ ' HEIGHT=' +hh+ ' ALT="Click image to close window" ONCLICK="javascript:window.close();return true" STYLE="cursor: hand">');
 win.document.write('</BODY></HTML>');
 return;
}

function loadIntoNS(url, ww, hh) {
 ww++; ww+=10;
 hh++; hh+=10;
 var wd = (screen.width - ww) /2;
 var ht = (screen.height - hh) /2;
 if (parseFloat(navigator.appVersion) > 4) { ww+=7; hh+=7; }
 win = window.open(url, 'win', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+ww+',height='+hh+',left='+wd+',top='+ht);
 return;
}

// Abrir nueva ventana
function opX(theURL,winName,features) { window.open(theURL,winName,features); }

// Separador de Texto
function stX(Texto,Espacio) {
 if (Espacio == null) { Espacio = 0 };
 if (Espacio >= 9) { Espacio = 9 };
 if (Texto == null) { Text = "" };
 var textoX = Texto + "," + Espacio;
 window.status=separa(textoX);
}
function separa(textoX) {
 var count=textoX.length; var texto=textoX.substr(0,count-2); var cant=textoX.substr(count-1,1); var texto2=""; var nbsp="";
 if (cant==null) { cant=0; }
 for (i = 0; i < cant; i++) { nbsp+=" " }
 if (texto!=null) { var count = texto.length; for (i = 0; i < count; i++) { texto2+=texto.charAt(i)+nbsp } return texto2; }
}

// -----------------------------------------------------
// Copyright (c) 2005 sMk Designs - All Rights Reserved
// -----------------------------------------------------
//-->
