
 function RecordsUrlNav(urlpath, pn) {

    urladdress = urlpath + pn;
    
    document.location.href = urladdress;

 } // end function



 function MarqueeBox(mno, sp) {
 
    document.getElementById("marqueeid" + mno).scrollAmount = sp;

 } // end function


 
 function PageSendToFriend() {
 
    ContentBoxDisplay('ContentAreaBox', '');
    
    document.getElementById("ContentBoxTitle").innerHTML = document.getElementById("send_to_afriend_link").title;
    
    ContentAreaBoxPage("send_to_afriend");
    
 } // end function



 function SideMenuTree(parents_items) {
 
   pitems_arr = new Array();
   
   pitems_arr = parents_items.split(",");
   
   for(i=1;i<pitems_arr.length;i++) {
   
       pitem = pitems_arr[i];
       
       if(i == 1) {
          document.getElementById("side_menu_main_item_val").innerHTML = pitem;
       }
       else {

          smsiv = document.getElementById("side_menu_subs_items_val").innerHTML;
       
          smsiv += "," + pitem;

          document.getElementById("side_menu_subs_items_val").innerHTML = smsiv;
       
       } // end else   
       
       GetPagesContentSideMenu(pitem);
   
   } // end for
 
 } // end function


 function GetPagesContentSideMenuHideSubs() {
 
   smsiv = document.getElementById("side_menu_subs_items_val").innerHTML;
   
   smsiv_arr = new Array();
   
   if(smsiv != "*") {
   
      smsiv_arr = smsiv.split(",");

      for(i=1;i<smsiv_arr.length;i++) {
   
          pitem = smsiv_arr[i];
       
          GetPagesContentSideMenuHide(pitem);
   
      } // end for
      
   } // end if
   
 } // end function



 function Pages3rdSubsContent(item) {
 
   oitem = document.getElementById("inner_3rd_sub_item_name").innerHTML;

   I3rdOitem = document.getElementById("inner3rd" + item);
   
   if(I3rdOitem) {   
   
      I3rdOitemSt = I3rdOitem.style.display;
      
      if(I3rdOitemSt == "block")
         nSt = "none";
      else
         nSt = "block";
            
      I3rdOitem.style.display = nSt;
            
      document.getElementById("inner_3rd_sub_item_name").innerHTML = item;
      
      oI3rdOitem = document.getElementById("inner3rd" + oitem);
      
      if(oI3rdOitem && item != oitem)
         oI3rdOitem.style.display = "none";
      
   }
   else {
      document.getElementById("inner_3rd_sub_item_name").innerHTML = item;
   }

/*
   if(item == oitem) {   
      document.getElementById("inner3rd" + item).style.display = "none";
      document.getElementById("inner_3rd_sub_item_name").innerHTML = "0";
   }
   else {
   
      I3rdOitem = document.getElementById("inner3rd" + oitem);
      
      if(oitem != "0" && I3rdOitem)
         I3rdOitem.style.display = "none";
      
      document.getElementById("inner3rd" + item).style.display = "block";
      document.getElementById("inner_3rd_sub_item_name").innerHTML = item;
      
   } // end else
*/
 } // end function

 function Pages3rdSubsContent2(item) {
 
   oitem = document.getElementById("inner_3rd_sub_item_name").innerHTML;
   
   if(item == oitem) {   
      document.getElementById("inner3rd" + item).style.display = "none";
      document.getElementById("inner_3rd_sub_item_name").innerHTML = "0";
   }
   else {
   
      I3rdOitem = document.getElementById("inner3rd" + oitem);
      
      if(oitem != "0" && I3rdOitem)
         I3rdOitem.style.display = "none";
      
      document.getElementById("inner3rd" + item).style.display = "block";
      document.getElementById("inner_3rd_sub_item_name").innerHTML = item;
      
   } // end else

 } // end function

 function open_win_data(url, resize, scroll, width, height) {

   windowprops = "top=300,"
               + "left=300," 
               + "toolbar=no,"
               + "location=no,"
               + "directories=no,"
               + "menubar=no,"
               + "copyhistory=yes,"
               + "status=no,"
               + "resizable=" + resize + ","
               + "scrollbars=" + scroll + ","
               + "width=" + width + ","
               + "height=" + height;

   page = "popup.php?" + url  
   window.open(page, "", windowprops);

 }     
