function agregar(){
if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
var url="http://www.lexdata.com.ar";
var titulo="Lexdata S.A.";
window.external.AddFavorite(url,titulo);
}
else {
if(navigator.appName == "Netscape") 
alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks");
}
}



function mailpage()
{
  mail_str = "mailto:Ponga aquí el e-mail de su amigo:?subject=Página de Lexdata ";
  mail_str += "&body=Te recomiendo que visites esta página de Lexdata.com.ar , " ;
  mail_str += ". Entrá haciendo click aquí : http://www.lexdata.com.ar " ; 
  location.href = mail_str;
}


function bye()
{
	mywin=window.open("",null,"scrollbars=1,top=0,left=0,width=100,height=100");
	mywin.document.open()
    mywin.document.writeln("<html><head>");
	mywin.document.writeln("<title>L e x d a t a  S.A. - www.lexdata.com.ar</title></head><body>");
    mywin.document.writeln("<table width=100% height=100%><TD align=center><B>Gracias...</B></TD>");
	mywin.document.writeln("<body></html>");
   	mywin.document.close();
	mywin.focus();
}

function enviarlogin()
{
  form1.user.value=usuario.value;
  form1.pass.value=password.value;
  form1.recordar.value=recordar.value;  

  form1.submit();
}

function gc()
{   
	mywin=window.open("",null,"scrollbars=1,top=0,left=0,width=700,height=500");
	mywin.document.open()
    mywin.document.writeln("<html><head>");
	mywin.document.writeln("<title>L e x d a t a  S.A. - www.lexdata.com.ar</title></head><body>");
    mywin.document.writeln("\<script\>location.href='gc.php';\</script\>");
	mywin.document.writeln("<body></html>");
   	mywin.document.close();
	mywin.document.open();
	mywin.document.writeln("<title>L e x d a t a  S.A. - www.lexdata.com.ar</title></head><body>");
   	mywin.document.close()	
	mywin.focus() 
}
function preview_foto(imagen)
{
	mywin=window.open("verfoto.php?foto="+imagen,null,"scrollbars=1,top=0,left=0,width=300,height=200");
}

function printpreview(TD_TEXTO)
{
	mywin=window.open("",null,"scrollbars=1,top=0,left=0,width=650,height=500");
	mywin.document.open()
    mywin.document.writeln("<html><head>");
    mywin.document.writeln("<link href='css/lexdata.css' rel='stylesheet' type='text/css'>");
	mywin.document.writeln("<title>L e x d a t a  S.A. - www.lexdata.com.ar</title>");
	mywin.document.writeln("</head><body>");
	mywin.document.writeln("<a href='javascript:window.print()'><img border=0 src='img/print.gif' align=absMiddle>Imprimir</a>");
	mywin.document.writeln("&nbsp;&nbsp;<a href='javascript:void(0)' onClick='javascript:document.getElementById(\"texto\").style.fontSize=eval(texto.fs)+1+\"px\";texto.fs=eval(texto.fs)+1;'><img src='img/agrandar-font.gif' border=0 alt='Agrandar Letra' align=absMiddle></a>");
	mywin.document.writeln("&nbsp;<a href='javascript:void(0)' onClick='javascript:document.getElementById(\"texto\").style.fontSize=eval(texto.fs)-1+\"px\";texto.fs=eval(texto.fs)-1;'><img src='img/reducir-font.gif' border=0 alt='Reducir Letra' align=absMiddle></a>");	
	mywin.document.writeln("<BR><BR><TABLE><TD id=texto fs=12 style='font-size: 12px'>");
	mywin.document.writeln(TD_TEXTO.innerHTML);
	mywin.document.writeln("<HR></TD><TR>");
	mywin.document.writeln("<TD style='font-size: 12px' align=center><B>");
	mywin.document.writeln("© Copyright 2007Todos los derechos reservados Lexdata S.A.<BR>Lavalle 1646 Piso 4º A (C1048AAN) Buenos Aires, Argentina - Tel. 5199-0880 <BR> E-mail: lexdata@lexdata.com.ar</B>");
	mywin.document.writeln("</TD></TABLE></body></html>");
   	mywin.document.close()
	mywin.focus()

}
function visualizar(numero,cual)
{
   eval("form1."+cual+".value="+numero.value);
   form1.submit();
}

var tick;
 function stop() {
 clearTimeout(tick);
 }
 function usnotime()
    {
	var ut=new Date();
	var h,m,s;
	var time="";
	h=ut.getHours();
	m=ut.getMinutes();
	s=ut.getSeconds();
	if(s<=9) s="0"+s;
	if(m<=9) m="0"+m;
	if(h<=9) h="0"+h;
	time+=h+":"+m+":"+s;
	hora.innerText=time;
	tick=setTimeout("usnotime()",1000);    }


var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

if (version<5) {
 alert("este sitio requiere versiones superiores de su explorador");
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}


