function BothFieldsIdenticalCaseSensitive() {
var one = document.form.email.value;
var another = document.form.email2.value;
if(one == another) { return true; }
alert("The email addresses do not match. Please make sure you have entered your email address correctly so our reply can reach you. Many Thanks.");
return false;
}

function BothFieldsIdenticalCaseInsensitive() {
var one = document.form.email.value.toLowerCase();
var another = document.form.email2.value.toLowerCase();
if(one == another) { return true; }
alert("The email addresses do not match. Please make sure you have entered your email address correctly so our reply can reach you. Many Thanks.");
return false;
}


function ShowMenu(num, menu, max)
{
                //num is selected value, menu is the name of the div, max is the number of divs
                for(i = 1; i <= max; i++){
                        //add number onto end of menu
                        var menu_div = menu + i;

                        //if current show
                        if(i == num) {
                                document.getElementById(menu_div).style.display = 'block';
                        } else {
                                //if not, hide
                                document.getElementById(menu_div).style.display = 'none';
                        }
                }
}


function ShowBedding(num, menu, max)
        {
                //starting at one, loop through until the number chosen by the user
                for(i = 1; i <= num; i++){
                        //add number onto end of menu
                        var menu2 = menu + i;
                        //change visibility to block, or 'visible'
                        document.getElementById(menu2).style.display = 'block';
                }
                //make a number one more than the number inputed
                var num2 = num;
                num2++;
                //hide it if the viewer selects a number lower
                //this will hide every number between the selected number and the maximum
                //ex.  if 3 is selected, hide the <div> cells for 4, 5, and 6
                //loop until max is reached
                while(num2 <= max){
                        var menu3 = menu + num2;
                        //hide 
                        document.getElementById(menu3).style.display = 'none';
                        //add one to loop
                        num2=num2+1;
                }
        }
