// JavaScript Document
// <body onLoad="Windowdealer123('wewe','w','232','232','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')">
function Windowdealer123(theURL,winName,width,height,features) { 
//1.1 kadazuro kadazuro@kardouz.com
	if(window.screen){
		per_ancho=(width/800)*100;//porcentaje screen-ancho
		per_alto=(height/width)*100;//porcentaje de ancho-alto
		win_ancho=(screen.width*per_ancho)/100;//ancho de la ventana
		win_alto=(win_ancho*per_alto)/100;//alto de la ventana
		x=(screen.width-win_ancho)/2;//centra x
		y=(screen.height-win_alto)/2;//centra y
	}else{// si el buscador es 4-- queda todo igual :(
		x=0;
		y=0;
		win_ancho=w;
		win_alto=y;
	}
	winfeatures=("top="+y+",left="+x+",width="+width+",height="+height+","+features);
	window.open(theURL,winName,winfeatures);
}

function openwindowe(x,y,w,h)
{  var aw = screen.availWidth;    var ah = screen.availHeight;      var aww = aw- w;      var ahh= ah-h;      aww/=2;      ahh/=2;
	mywindow=window.open(x,y,"scrollbars=1, status=1, toolbar =1,menubar=0,resizable=1, width="+w+",height="+h+",top="+ahh+",left="+aww);
	open.mywindow;	}
 function MM_openBrWindow(theURL,winName,features) { //v2.0
 var ah = window.availHeight; 
  var aw = window.availWidth; 
 var aww=aw-30; 
 var ahh=aw-30;  
  window.open(theURL,winName,features);
}

function resize(){
window.top.moveTo(4,4);
window.resizeTo(screen.width-8,screen.availHeight-8);
}
function openwindow(x,y,w,h)
{
	window.open(x,y,"status=1, toolbar =1,menubar=0,resizable=1, width="+w+",height="+h+",top=10,left=10");
}
function openwindowp(x,y,w,h)
{
	window.open(x,y,"status=1, toolbar =0,menubar=0,resizable=0, width="+w+",height="+h+",top=10,left=10");
}

function addToFavorite(favTitle){
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
    window.external.AddFavorite(location.href, unescape(favTitle));
  }
}