function Go_onclick() { 

        /* 
                Bead Strand Count Calculator 
                Copyright 1998, 2009 ACA Digital Strategies, ALL RIGHTS RESERVED 
                No Part of this code may be used without express written permission 
                from ACA Digital Strategies.  www.acadigital.com 
        */ 

        var c = .04; 
        var s; 
        var l; 
        var x; 
        var i; 
        
        s = window.document.forms.BeadStrand.BeadSize.value; 
        l = window.document.forms.BeadStrand.StrandLength.value; 
        
        if (s <= 0 || s == "" || l <= 0 || l == "" || isNaN(s) || isNaN(l)) { 
                i = Math.round(Math.random() * 5); 
                x = "eh?"; if (i == 1) x = "What?"; if (i == 2) x = "Huh?"; if (i == 3) x = "Where?"; if (i == 4) x = "Who?";

                window.document.forms.BeadStrand.Result.value = x;      
                return(0); 
        } else { 
                window.document.forms.BeadStrand.Result.value = Math.floor(l / (s * c)); 
                return(0); 
        } 
} 

function breakout(x, el) {

   //display the subsection:
   var e = document.getElementById('SubMenu_' + x);
   e.style.display = 'block';
   
   if (x == 'Charm') {
      //charms is a main tab, set marginBottom for opened main tab section:
      var c = document.getElementById('Menu_Charms');
      c.style.marginBottom = 0;
   }

   if (x == 'Idea') {
      //Ideas is a main tab, set marginBottom for opened main tab section:
      var d = document.getElementById('Menu_Ideas');
      d.style.marginBottom = 0;
   }


   //hide the actuator:
   el.style.display = 'none';
   return false;

}
