How to fire Dummy Query in Java Script using JSESSIONID?

Hi,
I have a Web App where the user is required to fill certain information which then goes to CRM.I have used SSO token to retreive the JSessionid and used the Jsessioid in subsequent requst/Now JSessionid expires after 10 mins of inactivity.
I want to fire Dummy or perhaps any query to CRM after every 9 mins so that the session does not expire.How do I do that
Can sombody give me the Javascript code for doing the same.
KINDLY HELP

Just do form.submit().

Similar Messages

  • How to fire an event from Java Script

    Hi,
    Here is my problem: using JSF
    I have a selectOneMenu list box when a value changes a valueChangeListner event is fire that all works great now the problem I'm able to add items to the list from a popup form using Java Script but I need the valueChangeListner to fireup every time I add a item any ideas how to do that
    Thanks

    Just do form.submit().

  • How to increase font size in Java script alert message

    Is anybody know how to increase font size in Java script alert message
    THanks in Advance ....

    Hi,
    You can NOT do it with Javascript.
    You need an alternative solution: http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/popup-box_84.html
    Tobias

  • How to detect whether browser's java script  disabled or not from server

    How to detect whether browser's java script disabled or not from server side

    I would use a hidden parameter created by a javascript. if this is null, javascript is disabled...

  • How do I disable the "open java script' message box alert?

    How do I disable the 'open java script' message box message box alert?

    Bee Hong-
    What App is showing the message?  If it is Safari, go to Settings-Safari-JavaScript and turn it ON.
    If it is a different App, see if that App is in Settings and has a JavaScript option.
    Fred

  • How To Read RTF file in JAVA?  Using  iText?

    How To Read RTF file in JAVA?  Using  iText?.....
    import java.io.*;
    import com.lowagie.text.*;
    import com.lowagie.text.rtf.*;
    public class RTF3 {
    public static void main(String[] args) {
    // System.out.println("This example generate a RTF file name Sample.rtf");
    // Create Document object
    Document myDoc = new Document();
    try {
    // Create writer to listen document object
    // and directs RTF Stream to the file Sample.rtf
    RtfWriter2.getInstance(myDoc, new FileOutputStream("Sample.rtf"));
    // open the document object
    myDoc.open();
    // Create a paragraph
         Paragraph p = new Paragraph();
         p.add("Helloworld in Rtf file..amazing isn't");
         // Add the paragraph to document object
    myDoc.add(p);
    catch(Exception e) {
    System.out.println(e);
    //close the document
    myDoc.close();
    Exception in thread "main" java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.width()F
         at com.lowagie.text.rtf.document.RtfPageSetting.rectEquals(RtfPageSetting.java:433)
         at com.lowagie.text.rtf.document.RtfPageSetting.guessFormat(RtfPageSetting.java:362)
         at com.lowagie.text.rtf.document.RtfPageSetting.setPageSize(RtfPageSetting.java:341)
         at com.lowagie.text.rtf.RtfWriter2.setPageSize(RtfWriter2.java:248)
         at com.lowagie.text.Document.open(Unknown Source)
         at view.RTF3.main(RTF3.java:23)
    CAN you HELP me?

    import com.lowagie.text.Document;
    import com.lowagie.text.rtf.parser.RtfParser;
    import java.io.FileInputStream;
    String inputFile = "sample.rtf";
    Document document = new Document();
    document.open();
    RtfParser parser = new RtfParser(null);
    parser.convertRtfDocument(new FileInputStream(inputFile), document);

  • How to get the parameter from Java Script into the Parameter crystal Report

    Hi All,
    Crystal Report is integrated with Oracle 10g. I created the base SQL query for col1, col2, col3 and col4. Java Script pass parameter value (185) to Col1.
    My question is how to create crystal report to make Col1 as parameter and how to get the parameter value 185(Col1) from Java Script. Is there any additional code I need to include in the crystal report?
    FYI.
    Java script sends the right parameter value.There is no issue in java script.
    This is an automatic scheduled process when batch runs, Java script should pass the parameter value and the crystal report should get the value and produce the output report.

    Not sure if this is an application question or if you are trying to hook into Crystal Reports parameter UI? If the later then no option other than report design. If an application then I can move this to the Java Forums.
    If you are asking how to alter the parameters I suggest you remove the Java reference and post a new question so it's not confusing the issue.
    Please clarify?

  • How  to fire a query for every record in a table, pass values in a loop

    Hi,
    For each record in a table, I want to loop through each record and then fire a query by passing acct, product and date from this table to the where clause of the query. I would have to create a pl/sql block..The output of the query I want to spool from sql developer.
    I need the exact syntax please for doing this.. since i am new to Oracle. Just the template will be enough. I will fill in the query.
    Any help is appreciated as always..
    Regards,
    hena

    904385 wrote:
    Hi,
    For each record in a table, I want to loop through each record and then fire a query by passing acct, product and date from this table to the where clause of the query. I would have to create a pl/sql block..The output of the query I want to spool from sql developer.
    I need the exact syntax please for doing this.. since i am new to Oracle. Just the template will be enough. I will fill in the query.
    Any help is appreciated as always..
    Regards,
    henaHave you ever considered using a JOIN ? It does the same thing as looping through a table and applying that to the where clause of a select on a query, only much, much, much faster and without the need to write any code. SQL is a declarative language, so you specify what you want and not how to do it. It can be bit of a journey to change your thought process if you come from a procedural or object world, but once you get there it's a beautiful view.

  • How to Open a file by JAVA SCRIPT in ABAP?

    Hi Experts,
    i'm trying to open a pdf file in java script (ONLY) through ABAP.
    Is it possible? If so how?
    The java script what we write in HTML is "window.open("C:
    Temp
    file.pdf");"
    Please advice ASAP.
    Somnath

    Hi,
    You have to make the Vi reentrant so that it does not share the same memory location:
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • How to write JSP code in Java Script Code

    Hello friends
    I have code like
    <script language="JavaScript">
    function f()
    (some code is here)
    </script>
    Now i wants to put some JSP code in f()
    So can i do this ? IF yes then how ?
    (one solution may be make JSP function and call that JSP function from the f().So in that case how can i call JSP function from JavaScript??
    If other method is there then please mail me

    If it's a simple matter of mixing client-side code with server side code, it can be done so long as you're using the server-side to write the client-side.
    For example:
    <h1>Good Morning Mr. Phelps</h1>
    <input name=anybodyFunction type=text>
    <% if (userIsAdmin) { %>
    <input name=adminOnlyFunction type=text>
    etc.
    <% } %>
    <h1>This browser will self-destruct in ...</h1>
    That's JSP (inside the <% %>) mixed with HTML.
    Javascript goes 100% on the client-side. If you're writing JSP with inter-mixed HTML, you might have to inter-mix the java-script.
    For example: Suppose you need to validate the form. "adminOnlyFunction", among others, is a mandatory field, and you want the Javascript to only submit the form if all mandatory fields are set. Well, if the user is NOT an administrator, then that field WILL be left blank.
    One way to handle that is with mixing JSP/HTML/Javascript on the SERVER side.
    <h1>Good Morning Mr. Phelps</h1>
    <input name=mandatory1 type=text>
    <input name=optional1 type=text>
    <% if (userIsAdmin) { %>
    <input name=adminOnlyFunction type=text>
    <% } %>
    <input name=submit type=button value=Submit onClick="checkit()">
    etc. etc.
    <script language=Javascript>
    function checkit() {
    var f = document.form;
    if (
    � � f.mandatory1.value == ""
    � � || f.mandatory1.value == ""
    � � || f.mandatory2.value == ""
    <% if (userIsAdmin) { %>
    � � || f.adminOnlyFunction.value == ""
    <% } %>
    � � � � ) {alert ("Hey! You left out a required field!!");}
    etc. etc. etc.
    I imagine THIS might be what is meant by "mixing JSP with Javascript", and in this particular fashion, it can be done. What you're doing is making decisions on the server side over what to write out to the client. That client code can make further decisions based on user input.
    However, once it's on the client side, you can not have anymore JSP code. The client NEVER runs JSP code.

  • How to print a Pdf from Java script

    Hi,
    I need to print a pdf from java script. In java script i have url of pdf. Is there any way to print pdf from java script?
    I am able to print word doc by ActiveX. is there any activeX or something else which do the same thing for pdf?
    Any help heartily esteemed to me.
    Thanks
    Kamlesh Sharma

    you are cross postin .. your thread has been answered in the jsp jstl forums

  • How to validate a url in java script

    Hi to all.
    can any one send me the code to validate a url in java script
    thanks in advance

    How about Google? There are several JavaScript code samples available on the web.
    xH4x0r

  • How to fire the query: "IsuOrderItemQuery"

    Hi Experts,
                          I am trying to fire the query "IsuOrderItemQuery" by giving the BUPA_NUMBER as the input value. For this I have used the method CL_CRM_BOL_QUERY_SERVICE->GET_QUERY_RESULT but i am not able to get the result and i am not able to get any child relations. When I look from BOL browser for the same orderitemquery by giving the BP it is working fine. Can anybody throw some light on this issue to read the childnodes by triggering the "IsuOrderItemQuey".
    Contributions will be highly rewared. Thanks
    Regards,
    Lakshmana.P

    ls_parameter  TYPE crmt_name_value_pair,
    lt_parameter  TYPE crmt_name_value_pair_tab,
    query_items   TYPE REF TO cl_crm_iu_order_item_query,
    col_items     TYPE REF TO if_bol_bo_col,
    TRY.
    CREATE OBJECT query_items
    EXPORTING
    iv_query_name = 'IsuOrderItemQuery'.
    CATCH cx_crm_unsupported_object.      "#EC NO_HANDLER
    ENDTRY.
    IF query_items IS BOUND.
    ls_parameter-name  = 'CA_NUMBER'.         "#EC NOTEXT
    ls_parameter-value = ''.
    APPEND ls_parameter TO lt_parameter.
    ls_parameter-name  = 'ISU_CONTRACT_NR'.         "#EC NOTEXT
    ls_parameter-value = '55000001'.
    APPEND ls_parameter TO lt_parameter.
    query_items->set_query_parameters( it_parameters = lt_parameter ).
    col_items = query_items->get_query_result( ).

  • How to Call a JSP from Java Script

    Hi,
    I want to call a jsp from Java Script.
    I am having IntelliJ IDEA 4.5 (IDE) and weblogic server.
    should i do anything on web.xml,weblogic.xml
    I have written one jsp, Java script.
    I want to call a jsp from Java script

    function submitf(){
    document.xyz.action ='ReportSave.jsp';
    document.xyz.method='POST';
    document.xyz.submit();
    <form name='xyz'>
    <input type='text' name='text1'>
    <input type='text' name='text2'>
    <input type='button' name='xx' value='submit' onclick= submitf()>
    </form>
    Is this what u want???
    Regards,
    RAHUL

  • Error message in java script using IE6

    I get the following error message on a web page java script with Internet Explorer 6 "C:\WINNT\Desktop\Error Report.htm."
    The java script works fine with IE 5, but not with IE6. Any ideas why or how to fix?
    Thank you,
    Alicia

    There are three scripts, here they are:
    1. Scripts.js
    NS4 = (document.layers);
    IE4 = (document.all);
    ver4 = (NS4 || IE4);
    IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
    isMac = (navigator.appVersion.indexOf("Mac") != -1);
    isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));
    function popUp(){return};
    function popDown(){return};
    if (!ver4) event = null;
    if (isMenu) {
    menuVersion = 3;
    menuWidth = 120;
    childOverlap = 5;
    childOffset = 0;
    perCentOver = null;
    secondsVisible = .2;
    fntCol = "#ffffff";
    fntSiz = "11";
    fntBold = false;
    fntItal = false;
    fntFam = "times new roman, times, serif";
    backCol = "#303886";
    overCol = "#91B3EE";
    overFnt = "#000000";
    borWid = 0;
    borCol = "#ffffff";
    borSty = "solid";
    itemPad = 5;
    imgSrc = "";
    imgSiz = 0;
    separator = 1;
    separatorCol = "#ffffff";
    isFrames = false; // <-- IMPORTANT for full window
    navFrLoc = "left"; // <-- display. see below
    keepHilite = true;
    clickStart = false;
    clickKill = false;
    function swapimg( imgid, newimg ) {
    imgid.src = newimg.src;
    if( document.images ) {
    about_on = new Image();
    about_on.src = "./images/about_on.jpg";
    about_off = new Image();
    about_off.src = "./images/about_off.jpg";
    practice_on = new Image();
    practice_on.src = "./images/practice_on.jpg";
    practice_off = new Image();
    practice_off.src = "./images/practice_off.jpg";
    lawyer_on = new Image();
    lawyer_on.src = "./images/lawyer_on.jpg";
    lawyer_off = new Image();
    lawyer_off.src = "./images/lawyer_off.jpg";
    career_on = new Image();
    career_on.src = "./images/career_on.jpg";
    career_off = new Image();
    career_off.src = "./images/career_off.jpg";
    resources_on = new Image();
    resources_on.src = "./images/resources_on.jpg";
    resources_off = new Image();
    resources_off.src = "./images/resources_off.jpg";
    contact_on = new Image();
    contact_on.src = "./images/contact_on.jpg";
    contact_off = new Image();
    contact_off.src = "./images/contact_off.jpg";
    2. hierArrays.js
    arMenu1 = new Array(
    130,
    199,247,
    "Overview","./about/overview.html",0,
    "Pro Bono Activities","./about/probono.html",0
    arMenu2 = new Array(
    190,
    199,287,
    "Commercial Finance","./practice/finance.html",0,
    "Corporate and Securities","./practice/corporate.html",0,
    "Insolvency","./practice/bankruptcy.html",0,
    "Land Use, Local Government and Environmental Law","./practice/land.html",0,
    "Litigation","./practice/litigation.html",0,
    "Real Estate","./practice/realestate.html",0,
    "Tax and Estate Planning","./practice/tax.html",0
    arMenu3 = new Array(
    120,
    199,327,
    "Partners","./lawyers/partners/index.html",0,
    "Associates","./lawyers/associates/index.html",0,
    "Of Counsel","./lawyers/counsel/index.html",0,
    "By Practice Area","./lawyers/practice.html",0,
    "Full Listing","./lawyers/full.html",0
    arMenu4 = new Array(
    135,
    199,447,
    "Contact Information","./contact/info.html",0,
    "Driving Directions","./contact/directions.html",0
    arMenu5 = new Array(
    180,
    199,365,
    "Summer Associate Program","./career/sumassoc.html",0
    3. hierMenus.js
    /*hierMenus.js
    * by Peter Belesis. v3.10.2 000720
    * Copyright (c) 2000 internet.com Corp. All Rights Reserved.
    * Originally published and documented at http://www.dhtmlab.com/
    * You may use this code on a public Web site only if this entire
    * copyright notice appears unchanged and you publicly display
    * on the Web page a link to http://www.dhtmlab.com/.
    * Contact [email protected] for all other uses.
    loader = (isFrames) ? (NS4) ? parent : parent.document.body : window;
    loader.onload = startIt;
    if(NS4){
         origWidth = loader.innerWidth;
         origHeight = loader.innerHeight;
         loader.onresize = reDo;
    isLoaded = false;
    NSresized = false;
    if (!window.menuVersion) {
         clickKill = keepHilite = clickStart = false;
    if (!window.imgHspace) imgHspace=0;
    isWin = (navigator.appVersion.indexOf("Win") != -1)
    mSecsVis = secondsVisible*1000;
    isRight = (window.navFrLoc && navFrLoc == "right");
    fullImgSize = (imgSiz+(imgHspace*2));
    if(!IE5) {
         imgSuf = (isRight) ? ">" : " ALIGN=RIGHT>";
         imgStr = "<IMG SRC='" + imgSrc + "' WIDTH=" + imgSiz + " HEIGHT=" + imgSiz +" VSPACE=2 HSPACE="+ imgHspace +" BORDER=0"+ imgSuf;
         if(IE4) imgStr = "<SPAN STYLE='height:100%;width:"+ (fullImgSize-(isRight?3:0)) +";float:"+ (isRight?"left":"right") +";overflow:hidden'>"+ imgStr +"</SPAN>";
    areCreated = false;
    menuLoc = null;
    function initVars() {
         if(areCreated) {
              for(i=1; i<topCount; i++) {
                   cur = eval("elMenu"+i);
                   clearTimeout(cur.hideTimer);
                   cur.hideTimer=null;
              clearTimeout(allTimer);
         topCount = 1;
         areCreated = false;
         beingCreated = false;
         isOverMenu = false;
         currentMenu = null;
         allTimer = null;
    initVars();
    function NSunloaded(){
         isLoaded = false;
    function NSloaded(e){
         if (e.target.name == mainFrName) {
              initVars();
              startIt();
    function IEunloaded() {
         initVars();
         isLoaded = false;
         setTimeout("keepTrack()",50)
    function keepTrack() {
         if (menuLoc.document.readyState == "complete") {
              initVars();
              startIt();
         else {
              setTimeout("keepTrack()",50);
    function startIt() {
         isLoaded = true;
         if (isFrames) {
              menuLoc = eval("parent.frames." + mainFrName);
              if (NS4) {
                   loader.captureEvents(Event.LOAD);
                   loader.onload = NSloaded;
                   menuLoc.onunload = NSunloaded;
              if (IE4) {
                   menuLoc.document.body.onunload = IEunloaded;
         else {
              menuLoc = window;
         menuLoc.nav = nav = window;
         if (clickKill) {
              if (NS4) menuLoc.document.captureEvents(Event.MOUSEDOWN);
              menuLoc.document.onmousedown = clicked;
         makeTop();
    function makeTop(){
         beingCreated = true;
         if(IE4) {
              topZ = 0;
              for (z=0;z<menuLoc.document.all.length;z++){
                   oldEl = menuLoc.document.all(z);
                   topZ = Math.max(oldEl.style.zIndex,topZ)
         while(eval("window.arMenu" + topCount)) {
              (NS4) ? makeMenuNS(false,topCount) : makeMenuIE(false,topCount);
              topCount++
         status = (topCount-1) + " Hierarchical Menu Trees Created"
         areCreated = true;
         beingCreated = false;
    // the following line was added by Rachel Gockley ([email protected]) on 27 July 2000
    status = "";
    function makeMenuNS(isChild,menuCount,parMenu,parItem) {
         tempArray = eval("arMenu" + menuCount);
         if (!isChild) {
              tempWidth = tempArray[0] ? tempArray[0] : menuWidth;
              menu = makeElement("elMenu" + menuCount,tempWidth,null,null);
         else {
              menu = makeElement("elMenu" + menuCount,null,parMenu,null);
         menu.array = tempArray;
         menu.setMenuTree = setMenuTree;
         menu.setMenuTree(isChild,parMenu);
         while (menu.itemCount < menu.maxItems) {
              menu.itemCount++;
              status = "Creating Hierarchical Menus: " + menuCount + " / " + menu.itemCount;
              prevItem = (menu.itemCount > 1) ? menu.item : null;
              itemName = "item" + menuCount + "_" + menu.itemCount;
              menu.item = makeElement(itemName,null,null,menu);
              menu.item.prevItem = prevItem;
              menu.item.setup = itemSetup;
              menu.item.setup(menu.itemCount,menu.array);
              if (menu.item.hasMore) {
                   makeMenuNS(true,menuCount + "_" + menu.itemCount,menu,menu.item);
                   menu = menu.parentMenu;
         menu.lastItem = menu.item;
         menu.setup(isChild,parMenu,parItem);
    function findTree(men){
         foundTree = false;
         for(i=11;i<men.array.length;i+=3){
              if(men.array) {
                   foundTree = true;
                   break;
         return foundTree;
    function setMenuTree(isChild,parMenu) {
         if (!isChild) {
              this.menuWidth = this.array[0] ? this.array[0] : menuWidth;
              this.menuLeft = this.array[1];
              this.menuTop = this.array[2];
              this.menuFontColor = this.array[3] ? this.array[3] : fntCol;
              this.menuFontOver = this.array[4] ? this.array[4] : overFnt;
              this.menuBGColor = this.array[5] ? this.array[5] : backCol;
              this.menuBGOver = this.array[6] ? this.array[6] : overCol;
              this.menuBorCol = this.array[7] ? this.array[7] : borCol;
              this.menuSeparatorCol = this.array[8] ? this.array[8] : separatorCol;
              this.treeParent = this;
              this.startChild = this;
              this.isTree = findTree(this);
         else {
              this.menuWidth = parMenu.menuWidth;
              this.menuLeft = parMenu.menuLeft;
              this.menuTop = parMenu.menuTop;
              this.menuFontColor = parMenu.menuFontColor;
              this.menuFontOver = parMenu.menuFontOver;
              this.menuBGColor = parMenu.menuBGColor;
              this.menuBGOver = parMenu.menuBGOver;
              this.menuBorCol = parMenu.menuBorCol;
              this.menuSeparatorCol = parMenu.menuSeparatorCol;
              this.treeParent = parMenu.treeParent;
              this.isTree = parMenu.isTree;
         this.maxItems = (isChild) ? this.array.length/3 : (this.array.length-9)/3;
         this.hasParent = isChild;
         this.setup = menuSetup;
         this.itemCount = 0;
    function makeMenuIE(isChild,menuCount,parMenu) {
         menu = makeElement("elMenu" + menuCount);
         menu.array = eval("arMenu" + menuCount);
         menu.setMenuTree = setMenuTree;
         menu.setMenuTree(isChild,parMenu);
         menu.itemStr = "";
         while (menu.itemCount < menu.maxItems) {
              menu.itemCount++;
              status = "Creating Hierarchical Menus: " + menuCount + " / " + menu.itemCount;
              itemName = "item" + menuCount + "_" + menu.itemCount;
              arrayPointer = (isChild) ? (menu.itemCount-1)*3 :((menu.itemCount-1)*3)+9;
              dispText = menu.array[arrayPointer];
              hasMore = menu.array[arrayPointer + 2];
              if(IE5) {
                   newSpan = menuLoc.document.createElement("SPAN");
                   with(newSpan) {
                        id = itemName;
                        with(style) {
                             width = (menu.menuWidth-(borWid*2));
                             fontSize = fntSiz + "pt";
                             fontWeight = (fntBold) ? "bold" : "normal";
                             fontStyle = (fntItal) ? "italic" : "normal";
                             fontFamily = fntFam;
                             padding = itemPad;
                             borderBottomWidth = separator + "px";
                             borderBottomStyle = "solid";
                        innerHTML = dispText;
                   newBreak = menuLoc.document.createElement("BR");
                   menu.appendChild(newSpan);
                   menu.appendChild(newBreak);
                   if(hasMore) {
    //3.10.2 added next 2 statements:
                        if (isRight) newSpan.style.paddingLeft = itemPad+fullImgSize;
                        else newSpan.style.paddingRight = itemPad+fullImgSize;
                        newImage = menuLoc.document.createElement("IMAGE");
                        with(newImage){
                             src = imgSrc;
                             with(style) {
                                  position = "absolute";
                                  width = imgSiz;
                                  height = imgSiz;
                                  left = (isRight) ? itemPad : (newSpan.style.pixelWidth - itemPad - imgSiz);
                                  top = newSpan.offsetTop + itemPad + (isMac ? 0 : 2);
                        newSpan.appendChild(newImage);
              else {
                   htmStr = (hasMore) ? imgStr + dispText : dispText;
                   menu.itemStr += "<SPAN ID=" + itemName + " STYLE=\"width:" + (menu.menuWidth-(borWid*2)) + "\">" + htmStr + "</SPAN><BR>";
              if (hasMore) {
                   makeMenuIE(true,menuCount + "_" + menu.itemCount,menu);
                   menu = menu.parentMenu;
         if(!IE5) menu.innerHTML = menu.itemStr;
         itemColl = menu.children.tags("SPAN");
         for (i=0; i<itemColl.length; i++) {
              it = itemColl(i);
              it.setup = itemSetup;
              it.setup(i+1,menu.array);
         menu.lastItem = itemColl(itemColl.length-1);
         menu.setup(isChild,parMenu);
    function makeElement(whichEl,whichWidth,whichParent,whichContainer) {
         if (NS4) {
              if (whichWidth) {
                   elWidth = whichWidth;
              else {
                   elWidth = (whichContainer) ? whichContainer.menuWidth : whichParent.menuWidth;
                   if (whichContainer) elWidth = elWidth-(borWid*2)-(itemPad*2);
              if (!whichContainer) whichContainer = menuLoc;
              eval(whichEl + "= new Layer(elWidth,whichContainer)");
         else {
              if (IE5) {
                   newDiv = menuLoc.document.createElement("DIV");
                   newDiv.style.position = "absolute";
                   newDiv.id = whichEl;
                   menuLoc.document.body.appendChild(newDiv);
              else {
                   elStr = "<DIV ID=" + whichEl + " STYLE='position:absolute'></DIV>";
                   menuLoc.document.body.insertAdjacentHTML("BeforeEnd",elStr);
              if (isFrames) eval(whichEl + "= menuLoc." + whichEl);
         return eval(whichEl);
    function itemSetup(whichItem,whichArray) {
         this.onmouseover = itemOver;
         this.onmouseout = itemOut;
         this.container = (NS4) ? this.parentLayer : this.parentElement;
         arrayPointer = (this.container.hasParent) ? (whichItem-1)*3 : ((whichItem-1)*3)+9;
         this.dispText = whichArray[arrayPointer];
         this.linkText = whichArray[arrayPointer + 1];
         this.hasMore = whichArray[arrayPointer + 2];
         if (IE4 && this.hasMore) {
              this.child = eval("elMenu" + this.id.substr(4));
              this.child.parentMenu = this.container;
              this.child.parentItem = this;
         if (this.linkText) {
              if (NS4) {
                   this.captureEvents(Event.MOUSEUP)
                   this.onmouseup = linkIt;
              else {
                   this.onclick = linkIt;
                   this.style.cursor = "hand";
         if (NS4) {
              htmStr = this.dispText;
              if (fntBold) htmStr = htmStr.bold();
              if (fntItal) htmStr = htmStr.italics();
              htmStr = "<FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSiz + ">" + htmStr+ "</FONT>";
              this.htmStrOver = htmStr.fontcolor(this.container.menuFontOver);
              this.htmStr = htmStr.fontcolor(this.container.menuFontColor);
              if(this.hasMore) {
                   this.document.write(imgStr);
                   this.document.close();
              this.visibility = "inherit";
              this.bgColor = this.container.menuBGColor;
              if (whichItem == 1) {
                   this.top = borWid + itemPad;
              else {
                   this.top = this.prevItem.top + this.prevItem.clip.height + separator;
              this.left = borWid + itemPad;
              this.clip.top = this.clip.left = -itemPad;
              this.clip.right = this.container.menuWidth-(borWid*2)-itemPad;
              maxTxtWidth = this.container.menuWidth-(borWid*2)-(itemPad*2);
              if (this.container.isTree) maxTxtWidth-=(fullImgSize);
              this.txtLyrOff = new Layer(maxTxtWidth,this);
              if (isRight && this.container.isTree) this.txtLyrOff.left = fullImgSize;
              this.txtLyrOff.document.write(this.htmStr);
              this.txtLyrOff.document.close();
              this.txtLyrOff.visibility = "inherit";
              this.clip.bottom = this.txtLyrOff.document.height+itemPad;
              this.txtLyrOn = new Layer(maxTxtWidth,this);
              if (isRight && this.container.isTree) this.txtLyrOn.left = fullImgSize;
              this.txtLyrOn.document.write(this.htmStrOver);
              this.txtLyrOn.document.close();
              this.txtLyrOn.visibility = "hide";
              this.dummyLyr = new Layer(100,this);
              this.dummyLyr.left = this.dummyLyr.top = -itemPad;
              this.dummyLyr.clip.width = this.clip.width;
              this.dummyLyr.clip.height = this.clip.height;
              this.dummyLyr.visibility = "inherit";
         else {
              with (this.style) {
                   if(!IE5) {
                        fontSize = fntSiz + "pt";
                        fontWeight = (fntBold) ? "bold" : "normal";
                        fontStyle = (fntItal) ? "italic" : "normal";
                        fontFamily = fntFam;
                        padding = itemPad;
                        borderBottomWidth = separator + "px";
                        borderBottomStyle = "solid";
    //3.10.2 modified next statement to one following
    //               if (this.container.isTree && (IE5 || (!IE5 && !this.hasMore))) {
                   if (this.container.isTree && !this.hasMore) {
                        if (isRight) paddingLeft = itemPad+fullImgSize;
                        else paddingRight = itemPad+fullImgSize;
                   color = this.container.menuFontColor;
                   borderBottomColor = this.container.menuSeparatorCol;
                   backgroundColor = this.container.menuBGColor;
    function menuSetup(hasParent,openCont,openItem) {
         this.onmouseover = menuOver;
         this.onmouseout = menuOut;
         this.showIt = showIt;
         this.keepInWindow = keepInWindow;
         this.hideTree = hideTree
         this.hideParents = hideParents;
         this.hideChildren = hideChildren;
         this.hideTop = hideTop;
         this.hasChildVisible = false;
         this.isOn = false;
         this.hideTimer = null;
         this.childOverlap = (perCentOver != null) ? ((perCentOver/100) * this.menuWidth) : childOverlap;
         this.currentItem = null;
         this.hideSelf = hideSelf;
         if (hasParent) {
              this.hasParent = true;
              this.parentMenu = openCont;
              if (NS4) {
                   this.parentItem = openItem;
                   this.parentItem.child = this;
         else {
              this.hasParent = false;
         if (NS4) {
              this.bgColor = this.menuBorCol;
              this.fullHeight = this.lastItem.top + this.lastItem.clip.bottom + borWid;
              this.clip.right = this.menuWidth;
              this.clip.bottom = this.fullHeight;
         else {
              with (this.style) {
                   width = this.menuWidth;
                   borderWidth = borWid;
                   borderColor = this.menuBorCol;
                   borderStyle = borSty;
                   zIndex = topZ;
    //3.10.2 added next statement
                   overflow = "hidden";
              this.lastItem.style.border="";
              this.fullHeight = this.offsetHeight;
              if(isMac)this.style.pixelHeight = this.fullHeight;
              this.fullHeight = this.scrollHeight;
              this.showIt(false);
              this.onselectstart = cancelSelect;
              this.moveTo = moveTo;
              this.moveTo(0,0);
    function popUp(menuName,e){
         if (NS4 && NSresized) startIt();
         if (!isLoaded) return;
         linkEl = (NS4) ? e.target : event.srcElement;
         if (clickStart) linkEl.onclick = popMenu;
         if (!beingCreated && !areCreated) startIt();
         linkEl.menuName = menuName;
         if (!clickStart) popMenu(e);
    function popMenu(e){
         if (!isLoaded || !areCreated) return true;
         eType = (NS4) ? e.type : event.type;
         if (clickStart && eType != "click") return true;
         hideAll();
         linkEl = (NS4) ? e.target : event.srcElement;
         currentMenu = eval(linkEl.menuName);
         currentMenu.hasParent = false;
         currentMenu.treeParent.startChild = currentMenu;
         if (IE4) menuLocBod = menuLoc.document.body;
         if (!isFrames) {
              xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? e.pageX : (event.clientX + menuLocBod.scrollLeft);
              yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? e.pageY : (event.clientY + menuLocBod.scrollTop);
         else {
              switch (navFrLoc) {
                   case "left":
                        xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? menuLoc.pageXOffset : menuLocBod.scrollLeft;
                        yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? (e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + menuLocBod.scrollTop;
                        break;
                   case "top":
                        xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? (e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + menuLocBod.scrollLeft;
                        yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? menuLoc.pageYOffset : menuLocBod.scrollTop;
                        break;
                   case "bottom":
                        xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? (e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + menuLocBod.scrollLeft;
                        yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? menuLoc.pageYOffset+menuLoc.innerHeight : menuLocBod.scrollTop + menuLocBod.clientHeight;
                        break;
                   case "right":
                        xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? menuLoc.pageXOffset+menuLoc.innerWidth : menuLocBod.scrollLeft+menuLocBod.clientWidth;
                        yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? (e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + menuLocBod.scrollTop;
                        break;
         currentMenu.moveTo(xPos,yPos);
         currentMenu.keepInWindow()
         currentMenu.isOn = true;
         currentMenu.showIt(true);
         return false;
    function menuOver(e) {
         this.isOn = true;
         isOverMenu = true;
         currentMenu = this;
         if (this.hideTimer) clearTimeout(this.hideTimer);
    function menuOut() {
         if (IE4) {
              theEvent = menuLoc.event;
              if (theEvent.srcElement.contains(theEvent.toElement)) return;
         this.isOn = false;
         isOverMenu = false;
         menuLoc.status = "";
         if (!clickKill) allTimer = setTimeout("currentMenu.hideTree()",10);
    function itemOver(){
         if (keepHilite) {
              if (this.container.currentItem && this.container.currentItem != this) {
                   if (NS4) {
                        this.container.currentItem.bgColor = this.container.menuBGColor;
                        this.container.currentItem.txtLyrOff.visibility = "inherit";
                        this.container.currentItem.txtLyrOn.visibility = "hide";
                   else {
                        with (this.container.currentItem.style) {
                             backgroundColor = this.container.menuBGColor;
                             color = this.container.menuFontColor;
         if (IE4) {
              theEvent = menuLoc.event;
              if (theEvent.srcElement.tagName == "IMG") return;
              this.style.backgroundColor = this.container.menuBGOver;
              this.style.color = this.container.menuFontOver;
         else {
              this.bgColor = this.container.menuBGOver;
              this.txtLyrOff.visibility = "hide";
              this.txtLyrOn.visibility = "inherit";
         menuLoc.status = this.linkText;
         this.container.currentItem = this;
         if (this.container.hasChildVisible) {
              this.container.hideChildren(this);
         if (this.hasMore) {
              horOffset = (isRight) ? (this.container.childOverlap - this.container.menuWidth) : (this.container.menuWidth - this.container.childOverlap);
              if (NS4) {
                   this.childX = this.container.left + horOffset;
                   this.childY = (this.pageY+this.clip.top) + childOffset;
              else {
                   this.childX = this.container.style.pixelLeft + horOffset;
                   this.childY = this.offsetTop + this.container.style.pixelTop + childOffset + borWid;
              this.child.moveTo(this.childX,this.childY);
              this.child.keepInWindow();
              this.container.hasChildVisible = true;
              this.container.visibleChild = this.child;
              this.child.showIt(true);
    function itemOut() {
         if (IE4) {
              theEvent = menuLoc.event;
              if (theEvent.srcElement.contains(theEvent.toElement)
         || (theEvent.fromElement.tagName=="IMG" && theEvent.toElement.contains(theEvent.fromElement)))
              return;
              if (!keepHilite) {
                   this.style.backgroundColor = this.container.menuBGColor;
                   this.style.color = this.container.menuFontColor;
         else {
              if (!keepHilite) {
                   this.bgColor = this.container.menuBGColor;
                   this.txtLyrOff.visibility = "inherit";
                   this.txtLyrOn.visibility = "hide";
              if (!isOverMenu && !clickKill) {
                   allTimer = setTimeout("currentMenu.hideTree()",10);
    function moveTo(xPos,yPos) {
         this.style.pixelLeft = xPos;
         this.style.pixelTop = yPos;
    function showIt(on) {
         if (NS4) {
              this.visibility = (on) ? "show" : "hide";
              if (keepHilite && this.currentItem) {
                   this.currentItem.bgColor = this.menuBGColor;
                   this.currentItem.txtLyrOff.visibility = "inherit";
                   this.currentItem.txtLyrOn.visibility = "hide";
         else {
              this.style.visibility = (on) ? "visible" : "hidden";
              if (keepHilite && this.currentItem) {
                   with (this.currentItem.style) {
                        backgroundColor = this.menuBGColor;
                        color = this.menuFontColor;
         this.currentItem = null;
    function keepInWindow() {
         scrBars = 20;
         botScrBar = (isFrames && navFrLoc=="bottom") ? (borWid*2) : scrBars;
         rtScrBar = (isFrames && navFrLoc=="right") ? (borWid*2) : scrBars;
         if (NS4) {
              winRight = (menuLoc.pageXOffset + menuLoc.innerWidth) - rtScrBar;
              rightPos = this.left + this.menuWidth;
              if (rightPos > winRight) {
                   if (this.hasParent) {
                        parentLeft = this.parentMenu.left;
                        newLeft = ((parentLeft-this.menuWidth) + this.childOverlap);
                        this.left = newLeft;
                   else {
                        dif = rightPos - winRight;
                        this.left -= dif;
              winBot = (menuLoc.pageYOffset + menuLoc.innerHeight) - botScrBar ;
              botPos = this.top + this.fullHeight;
              if (botPos > winBot) {
                   dif = botPos - winBot;
                   this.top -= dif;
              winLeft = menuLoc.pageXOffset;
              leftPos = this.left;
              if (leftPos < winLeft) {
                   if (this.hasParent) {
                        parentLeft = this.parentMenu.left;
                        newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);
                        this.left = newLeft;
                   else {
                        this.left = 5;
         else {
              winRight = (menuLoc.document.body.scrollLeft + menuLoc.document.body.clientWidth) - rtScrBar;
              rightPos = this.style.pixelLeft + this.menuWidth;
              if (rightPos > winRight) {
                   if (this.hasParent) {
                        parentLeft = this.parentMenu.style.pixelLeft;
                        newLeft = ((parentLeft - this.menuWidth) + this.childOverlap);
                        this.style.pixelLeft = newLeft;
                   else {
                        dif = rightPos - winRight;
                        this.style.pixelLeft -= dif;
              winBot = (menuLoc.document.body.scrollTop + menuLoc.document.body.clientHeight) - botScrBar;
              botPos = this.style.pixelTop + this.fullHeight;
              if (botPos > winBot) {
                   dif = botPos - winBot;
                   this.style.pixelTop -= dif;
              winLeft = menuLoc.document.body.scrollLeft;
              leftPos = this.style.pixelLeft;
              if (leftPos < winLeft) {
                   if (this.hasParent) {
                        parentLeft = this.parentMenu.style.pixelLeft;
                        newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);
                        this.style.pixelLeft = newLeft;
                   else {
                        this.style.pixelLeft = 5;
    function linkIt() {
         if (this.linkText.indexOf("javascript:")!=-1) eval(this.linkText)
         else menuLoc.location.href = this.linkText;
    function popDown(menuName){
         if (!isLoaded || !areCreated) return;
         whichEl = eval(menuName);
         whichEl.isOn = false;
         if (!clickKill) whichEl.hideTop();
    function hideAll() {
         for(i=1; i<topCount; i++) {
              temp = eval("elMenu" + i + ".startChild");
              temp.isOn = false;
              if (temp.hasChildVisible) temp.hideChildren();
              temp.showIt(false);
    function hideTree() {
         allTimer = null;
         if (isOverMenu) return;
         if (this.hasChildVisible) {
              this.hideChildren();
         this.hideParents();
    function hideTop() {
         whichTop = this;
         (clickKill) ? whichTop.hideSelf() : (this.hideTimer = setTimeout("if(whichTop.hideSelf)whichTop.hideSelf()",mSecsVis));
    function hideSelf() {
         this.hideTimer = null;
         if (!this.isOn && !isOverMenu) {
              this.showIt(false);
    function hideParents() {
         tempMenu = this;
         while (tempMenu.hasParent) {
              tempMenu.showIt(false);
              tempMenu.parentMenu.isOn = false;
              tempMenu = tempMenu.parentMenu;
         tempMenu.hideTop();
    function hideChildren(item) {
         tempMenu = this.visibleChild;
         while (tempMenu.hasChildVisible) {
              tempMenu.visibleChild.showIt(false);
              tempMenu.hasChildVisible = false;
              tempMenu = tempMenu.visibleChild;
         if (!this.isOn || !item.hasMore || this.visibleChild != this.child) {
              this.visibleChild.showIt(false);
              this.hasChildVisible = false;
    function cancelSelect(){return false}
    function reDo(){
         if (loader.innerWidth==origWidth && loader.innerHeight==origHeight) return;
         initVars();
         NSresized=true;
         menuLoc.location.reload();
    function clicked() {
         if (!isOverMenu && currentMenu!=null && !currentMenu.isOn) {
              whichEl = currentMenu;
              whichEl.hideTree();
    window.onerror = handleErr;
    function handleErr(){
         arAccessErrors = ["permission","access"];
         mess = arguments[0].toLowerCase();
         found = false;
         for (i=0;i<arAccessErrors.length;i++) {
              errStr = arAccessErrors[i];
              if (mess.indexOf(errStr)!=-1) found = true;
         return found;
    //end

Maybe you are looking for