function euros(){
  window.open("http://empresawww.com/eurocalculadora.htm","convertidor","scrollbars=no,width=425,height=180");
}

function fullScree(theURL) {
	if (self.innerWidth)
	{
		frameWidth = self.innerWidth;
		frameHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		frameWidth = document.documentElement.clientWidth;
		frameHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		frameWidth = document.body.clientWidth;
		frameHeight = document.body.clientHeight;
	}
	else return;

var w=frameWidth;
var h=frameHeight;

var sw=screen.availWidth;
var sh=screen.availHeight;
var sh1;
if (sw>812) sw=812;

if (sw>800 && sh>700) { //mas de 800x600
  if (w<780 || h<560){ //la ventana es demasiado pequeña
     	sh=sh-25;
		window.moveTo((sw-800)/2,25);
		if (sh>800) {
			self.resizeTo(800,800);  
		}else{
			self.resizeTo(800,sh);  
		}
//volvemos a comprobar si cabe
		if (self.innerWidth)
		{
			frameWidth = self.innerWidth;
			frameHeight = self.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientWidth)
		{
			frameWidth = document.documentElement.clientWidth;
			frameHeight = document.documentElement.clientHeight;
		}
		else if (document.body)
		{
			frameWidth = document.body.clientWidth;
			frameHeight = document.body.clientHeight;
		}
		else return;
		w=frameWidth;
		h=frameHeight;
  		if (w<780 || h<560){ //la ventana sigue siendo demasiado pequeña nueva ventana
	  		sw2=788;
  			sh2=560;
			cw=window.open("http://www.empresawww.com/"+theURL, 'empresawww', 'scrollbars=0, resizable=0, width='+sw2+' ,height='+sh2);
		}else{ //cabe --> saltamos
	   		document.location="http://www.empresawww.com/"+theURL;
		}
	}else{ //cabe --> saltamos
	   document.location="http://www.empresawww.com/"+theURL;
	}
}else{ //800x600 o menos
  	sw2=sw-12;
  	sh2=sh-25;
	cw=window.open("http://www.empresawww.com/"+theURL, 'empresawww', 'scrollbars=0, resizable=0, width='+sw2+' ,height='+sh2);
}
}


function posi(theURL) {
	if (window.name=='empresawww') return;
	if (self.innerWidth)
	{
		frameWidth = self.innerWidth;
		frameHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		frameWidth = document.documentElement.clientWidth;
		frameHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		frameWidth = document.body.clientWidth;
		frameHeight = document.body.clientHeight;
	}
	else return;

var w=frameWidth;
var h=frameHeight;

var sw=screen.availWidth;
var sh=screen.availHeight;
var sh1;
if (sw>812) sw=812;

if (sw>800 && sh>700) { //mas de 800x600
  if (w<780 || h<560){ //la ventana es demasiado pequeña
     	sh=sh-25;
		window.moveTo((sw-800)/2,25);
		if (sh>800) {
			self.resizeTo(800,800);  
		}else{
			self.resizeTo(800,sh);  
		}
//volvemos a comprobar si cabe
		if (self.innerWidth)
		{
			frameWidth = self.innerWidth;
			frameHeight = self.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientWidth)
		{
			frameWidth = document.documentElement.clientWidth;
			frameHeight = document.documentElement.clientHeight;
		}
		else if (document.body)
		{
			frameWidth = document.body.clientWidth;
			frameHeight = document.body.clientHeight;
		}
		else return;
		w=frameWidth;
		h=frameHeight;
  		if (w<780 || h<560){ //la ventana sigue siendo demasiado pequeña nueva ventana
	  		sw2=788;
  			sh2=560;
			document.location="http://www.empresawww.com/"+theURL;
		}
	}
}else{ //800x600 o menos
  	sw2=sw-12;
  	sh2=sh-25;
	if (w<sw2 || h<sh2){ //demasiado pequeña, volvamos a abrirla
//alert("w="+w+",h="+h+",sw2="+sw2+",sh2="+sh2);
		document.location="http://www.empresawww.com/"+theURL;
	}
}



}

