function Example(loc) { sBrowser = navigator.appName; sVersion = parseInt(navigator.appVersion); sDetail = navigator.userAgent; sBrowVer = null; //============================================================= if (sBrowser == "Netscape") { if (sVersion == 2) { sBrowVer = "Net2" } else if (sVersion >= 3 && sVersion < 4) { sBrowVer = "Net3" } else if (sVersion >= 4) { sBrowVer = "Net4" } } else if (sBrowser == "Microsoft Internet Explorer") { if (sVersion >= 2 && sVersion <= 3) { if (sDetail.indexOf("3.") != -1) { sBrowVer = "IE3" } else { sBrowVer = "IE2" } } else if (sVersion >= 4) { sBrowVer = "IE4" } } if (sBrowVer == "Net2" || sBrowVer == "Net3") { NewWindow = window.open("", "Example", "height=400,width=600,screenX=50,left=50,screenY=50,top=50,alwaysRaised=0,dependent=1,directories=0,fullscreen=0,location=0,menubar=1,resizable=0,scrollbars=1,status=0,toolbar=0") NewWindow.location.href = loc; if(sBrowVer == "Net3") { NewWindow.focus() } } if (sBrowVer == "Net4") { NewWindow = window.open("", "Example", "height=400,width=600,screenX=50,left=50,screenY=50,top=50,alwaysRaised=0,dependent=1,directories=0,fullscreen=0,location=0,menubar=1,resizable=0,scrollbars=1,status=0,toolbar=0") NewWindow.location.href = loc; NewWindow.focus() } if (sBrowVer == "IE3") { win = window.open('','Example','width=600,height=400'); if (win != null) { if (win.opener == null) { win.opener = self; } win.location.href = loc; } } if (sBrowVer == "IE4") { NewWindow = window.open("", "Example", "height=400,width=600,screenX=50,left=50,screenY=50,top=50,dependent=1,directories=0,fullscreen=0,location=0,menubar=1,channelmode=0,resizable=0,scrollbars=1,status=0,toolbar=0"); NewWindow.location.href = loc; } if (sBrowVer == null) { NewWindow = window.open("", "Example", "height=400,width=600,screenX=50,left=50,screenY=50,top=50,dependent=1,directories=0,fullscreen=0,location=1,menubar=1,channelmode=0,resizable=1,scrollbars=1,status=0,toolbar=0"); NewWindow.location.href = loc; } }