    function divMove()
    {
        //var oNode = document.getElementById("footerDiv");
        //var oWinHeight = document.getElementById("tableHeight");
        //alert(oNode.style.position);
        //alert(document.window.outerHeight);
    }
    function clearText()
    {
        (document.forms['search_form'].elements[0].value="");
    } 

    function checkboxes()
    {   
        if (document.basketForm.editorActions.value==1)        
        {
            x=0;
            
            for (i=0; i > document.basketForm.checkVal.length; i++)
            { 
                if (document.basketForm.checkVal[i].checked==true)
                { 
                    x=1;
                }
             
            }
            
            if (x == 0)
            {
                alert('Please tick the checkbox(s)\ncorresponding to the item(s)\nyou wish to delete. ');
            }
            else
            {
                document.basketForm.submit();
            }
        }
        else
        {
            document.basketForm.submit();
        }
    }
    function checkPass()
    {
        for (i=0;i<document.forgotPassword.elements.length;i++)
        {
            //email=(document.forgotPassword.useremailadd.value=='')
            username=(document.forgotPassword.username.value=='')
            if (username)
            {
                alert('Please enter your username.');
                break;
            }
            document.forgotPassword.submit()
        }
    }

    function submitter(formName)
    {
     document.forms(formName).submit();
    }
    function checkEmailAdd()
    {
        str="@"
        txtEmail = (document.forms['reg_form'].elements[13].value);
        find=txtEmail.search(str)
        if (find == -1)
        {
         alert("Please enter a valid email address")
        }
        else
        {
         document.forms['reg_form'].submit(); 
        }
    }
    function registration_form_submission()
    {
     txtPassword = (document.forms['reg_form'].elements[0]); 
     txtPassword1 = (document.forms['reg_form'].elements[1]); 
     txtFirstName = (document.forms['reg_form'].elements[2]); 
     txtLastName = (document.forms['reg_form'].elements[3]);

     txtTitle = (document.forms['reg_form'].elements[4]);
     txtCompany = (document.forms['reg_form'].elements[5]);

     txtAddress = (document.forms['reg_form'].elements[6]);
     txtCity = (document.forms['reg_form'].elements[7]);
     txtState = (document.forms['reg_form'].elements[8]);
     txtPostalCode = (document.forms['reg_form'].elements[9]);
     txtCountry = (document.forms['reg_form'].elements[10]);
     txtPhone = (document.forms['reg_form'].elements[11]);
     txtEmail = (document.forms['reg_form'].elements[13]);
     txtMemorableDate = (document.forms['reg_form'].elements[14]);
     
     if (navigator.appName == "Netscape")
     {
      document.forms['reg_form'].submit();
     }
     else
     {
     if ((txtFirstName.value == '') || (txtLastName.value == '') || (txtAddress.value == '') || (txtCity.value == '') || (txtState.value == '') || (txtPostalCode.value == '') || (txtCountry.value == '') || (txtPhone.value == '') || (txtEmail.value == '') ||  (txtMemorableDate.value == ''))
     {
      alert('Please ensure that you have filled out all\nthe required fields as denoted by the red asterixes.');
      return false;
     }
     if(txtPassword.value != txtPassword1.value)
     {
      alert('Your passwords do not match')
      return false;
     }
     checkEmailAdd()
    }
    }
    function deleteItem()
    {
     for (i=0;i<document.forms['orderForm'].elements.length;i++)
     {
      if(document.forms['orderForm'].elements[i].checked == true)
      { 
       name = (document.forms['orderForm'].elements[i].name);
       val = (document.forms['orderForm'].elements[i].value);
       if (confirm('Are you sure that you want to delete '+name+' from your order'))
       {
        document.location.href="deleteItems?ids="+name
       }
      }
     }
    }
    function checkBoxState()
    {
     for (i=0;i<document.forms['contentForm'].elements.length;i++)
     {
      if(document.forms['contentForm'].elements[i].checked == true)
      {
       document.forms['contentForm'].submit();
       return false;
      }
     }
     alert('You need to check one of the checkboxes\n before submitting this form.');
    }
    function userLogin()
    {
     for (i=0; i<document.forms['login_form'].elements.length; i++)
     {
      if (document.forms['login_form'].elements[0].value == '' || document.forms['login_form'].elements[1].value == '')
     {
      alert('You need to enter both a username and\na password to login in correctly.')
      return 0;
     }
     else
      document.forms['login_form'].submit();
     }
    }
    function non_empty_search()
    {
     form_val = document.forms['search_form'].elements[0].value;
     if (form_val == '')
     {
      alert('An empty search cannot be processed.');
      return false;
     }
     document.forms['search_form'].submit();
    }
    function determine_version()
    {
     version0 = ((navigator.appVersion));
     if (navigator.appName == 'Netscape')
     {
      myString = version0.substr(0,4);
      if (myString < 5.0)
      {
       document.location.href="softlanding_html"
      }
     }
     else
     {
      myString = version0.substring(22,25);
      if (myString < 5.0)
      {
       document.location.href="softlanding_html"
      }
     }
    }
    function openWin(x)
    {
     window.open(x, 'myWin')
    }