function win(fileName,title,w,h) { if (navigator.appName=="Netscape") { var height = window.innerHeight-50; var width = window.innerWidth-100; var top = window.screenY+160; var left = window.screenX+30; } else { var width = document.documentElement.clientWidth-50; var height = document.documentElement.clientHeight-50; if (width<=0) { width = document.body.clientWidth-50; height = document.body.clientHeight-50; } var top = parent.window.screenTop+20; var left = parent.window.screenLeft+20; } if (w!=null) width = width * (w/100); if (h!=null) height = height * (h/100); myFloater = window.open('',title,"scrollbars=yes,status=no,width="+width+",height="+height+",top="+top+",left="+left); myFloater.location.href = fileName; } function checkEnter (field, evt) { var keyCode = document.layers ? evt.which : document.all ? evt.keyCode : evt.keyCode; if (keyCode != 13) return false; else return true; } function addBookmark() { var sa = /(Safari|((^|\s)Safari($|\s)))/i.test(navigator.appName) || /(Safari|((^|\s)Safari($|\s)))/i.test(navigator.userAgent); if (sa) { alert("Sorry, this feature is not supported in Safari."); return; } var url="http://www.targetrx.com/registration/welcome"; var title="TargetRx"; if (window.sidebar) { window.sidebar.addPanel(title,url,""); } else if (document.all) { window.external.AddFavorite(url,title); } else if(window.opera && window.print) { alert("Please use Ctrl-D or Ctrl-T to bookmark this page."); return true; } }