function openHelp() { helpUrl = getPageHelpID(); helpUrl = '/impl/WebHelp/AMSSHelp.htm' + '#' + helpUrl; var id ; if(document.activeElement && (document.activeElement.id.length > 0)) { helpUrl += '#' + document.activeElement.id; id = document.activeElement.id; } helpWin = window.open(helpUrl,'Help', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=700'); helpWin.focus(); } function getPageHelpID() { var pageCtxObj = document.getElementById('helpPage'); if(pageCtxObj) { return pageCtxObj.value; } else { return "/impl/WebHelp/AMSSHelp.htm"; } } function getFocused(){ var e, i = 0 while (e = document.getElementsByTagName ('*')[i++]) { e.onfocus = function () {focusedElement = this} } return e; } function checkBrowser(){ var d, dom, ie, ie4, ie5x, moz, mac, win, lin, old, ie5mac, ie5xwin, op; d = document; n = navigator; na = n.appVersion; nua = n.userAgent; win = ( na.indexOf( 'Win' ) != -1 ); mac = ( na.indexOf( 'Mac' ) != -1 ); lin = ( nua.indexOf( 'Linux' ) != -1 ); if ( !d.layers ){ dom = ( d.getElementById ); op = ( nua.indexOf( 'Opera' ) != -1 ); konq = ( nua.indexOf( 'Konqueror' ) != -1 ); saf = ( nua.indexOf( 'Safari' ) != -1 ); moz = ( nua.indexOf( 'Gecko' ) != -1 && !saf && !konq); ie = ( d.all && !op ); ie4 = ( ie && !dom ); /* ie5x tests only for functionality. ( dom||ie5x ) would be default settings. Opera will register true in this test if set to identify as IE 5 */ ie5x = ( d.all && dom ); ie5mac = ( mac && ie5x ); ie5xwin = ( win && ie5x ); } if(moz){ alert('help moz'); } } function KeyCheck(e){ var KeyID = (window.event) ? event.keyCode : e.keyCode; //if(KeyID == 112) //{ // e.preventDefault(); // openHelpNonIE(e); //} } function openHelpNonIE(e){ helpUrl = getPageHelpID(); helpUrl = '/impl/WebHelp/AMSSHelp.htm' + '#' + helpUrl; var id =e.target.id; helpUrl = helpUrl + '#' + id; helpWin = window.open(helpUrl,'Help', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=700'); helpWin.focus(); }