//no sacar estas barras sacar las de abajo- - width es ancho
//
//////////oparzon@tutopia.com
//
//
//----------------25/06/06 AGREGO MAS FUNCIONES ----------------------
//
//----------------IN NUEVAS FUNCIONES------------------------------------------
//
//
//
//***trata de llevar la ventana al maximo tamaño soportado por el monitor
//
//top.window.moveTo(0,0);
//	if (document.all) 
//	{
//		top.window.resizeTo(screen.availWidth,screen.availHeight);
//	}
//	else if (document.layers||document.getElementById)
//	 {
//		if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
//		{
//			top.window.outerHeight = screen.availHeight;
//			top.window.outerWidth = screen.availWidth;
//		}
//	}
//
//**********FUNCION PARA ABRIR UNA NUEVA VENTANA** LA IDEA ES USARLA EN  VENTAS****************************************
//deberia abrirla segun le digo y en el centro de la pantalla
//-------las medidas y el archivo vienen desde el html que llama esta funcion--------
//
var win=null;
function ventana(mypage,myname,w,h,scroll,pos)
	{
	if(pos=="random")
		{
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
		}
	if(pos=="center")
		{
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
		}
	else if((pos!="center" && pos!="random") || pos==null)
		{
		LeftPosition=0;
		TopPosition=20;
		}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);
}
//
//
//
//----------------FIN NUEVAS FUNCIONES----------------------------------------------
function click() {
if (event.button==2) {
alert('www.oscar.parzon.com.ar!');
}
}
document.onmousedown=click
//
//
function abrir1(ventana,nombre,an,al,px,py)
{
a='width='+an+','
b='height='+al+','
c='screenx='+px+','
d='screeny='+py+','
hola=window.open(ventana,nombre,a+b+c+d);
//hola.focus()
}
//
//
function mail() {
OpenWin = this.open("http://www.catser.com.ar/mail.htm", "no", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=480,height=500,left=155,top=0");
}
function rdz() {
OpenWin = this.open("mail.htm", "dos", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=500,height=470,left=100,top=0");
}
function taller1() {
OpenWin = this.open("taller/main.html", "tres", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=800,height=450,left=0,top=0");
}
function rdz1() {
OpenWin = this.open("rdz/index.html", "capa", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=800,height=600,left=0,top=0");
}
function cuatro() {
OpenWin = this.open("aseso.htm", "asesora", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=330,height=290,left=155,top=5");
}
function muestra() {
OpenWin = this.open("main.htm", "demo", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=800,height=600,left=155,top=5");
}

function seis(pag) {
OpenWin = this.open("pag", "compu", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=400,height=300,left=155,top=5");
}

function siete(page) {
OpenWin = this.open(page, "electric", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=541,height=398,left=155,top=5");
}

function ocho(page) {
OpenWin = this.open(page, "alarma", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=450,height=450,left=155,top=5");
}

function nueve(page) {
OpenWin = this.open(page, "ilumina", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=536,height=356,left=155,top=5");
}

function diez(page) {
OpenWin = this.open(page, "video", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=383,height=465,left=155,top=5");
}

function once(page) {
OpenWin = this.open(page, "sonido", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=405,height=501,left=155,top=5");
}


function doce(page) {
OpenWin = this.open(page, "audio", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=285,height=110,left=155,top=5");
}
//
//
//
//	FUNCION FECHA
//
function Dia_de_Semana (d1,d2,d3,d4,d5,d6,d7) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
	}

function Mes_del_Anio (d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
this[7]=d8;
this[8]=d9;
this[9]=d10;
this[10]=d11;
this[11]=d12;
	}

Semana = new Dia_de_Semana ("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");

Mes = new Mes_del_Anio ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");

var today= new Date;
diahoy = today.getDay();
fechahoy = today.getDate();
meshoy = today.getMonth();
anio = today.getYear();
if(anio < 1900) {anio += 1900}

function dia () {
//document.write ("<font face="Arial, Helvetica, sans-serif size='2' color='#000000'>");
//document.write ('.:Gran Buenos Aires Norte, ');
document.write ('.:');
document.write (Semana[diahoy]+' '+fechahoy);
document.write (' de '+Mes[meshoy]+' de '+anio+':.');
document.write ("<BR>");
}

//
//window.open('cat.htm','remoto','toolbar=no, directories=no,location=no,status=no,menubar=no,scrollbars=no,//resizable=no,width=360,height=481,left=0,top=0')
//window.close();
//
//function taller1() {
//OpenWin = this.open("taller/index.html", "tres", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,//width=500,height=400,left=100,top=0");
//




