function xlaAFMlaunch(){ if (document.body.clientHeight) { var windowheight = screen.availHeight; var windowwidth=screen.availWidth; rightwidth=240; leftwidth=screen.availWidth-rightwidth-11; AFMwindow=window.open('/marcaria_cr.asp' ,'','width='+rightwidth+',height='+windowheight+',screenX='+leftwidth+',screenY=0,top=0,left=' +leftwidth+',toolbar=0,location=0,status=1,menubar=0,resizable=1'); AFMwindow.focus(); // Resize Current Window // top.resizeTo(leftwidth,windowheight); top.moveTo(0,0); top.focus(); } else { AFMwindow=window.open('http://Marcaria.cr/marcaria_cr.asp' ,'','width=240,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1'); } }