/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Ricom Productions | http://ricom.co.uk */
function selectForm(frm){
  // Select the div containing all the hidden forms
  var hiddenForms = document.getElementById("allForms");

  // Select every form within the above div and assign it to an array
  theForm = hiddenForms.getElementsByTagName("form");

  // Set the display for each of the above forms to NONE
  for(x=0; x<theForm.length; x++){
    theForm[x].style.display = "none";
  }

  // If the form selected from the list exists, set it's display to BLOCK
  if (theForm[frm-1]){
    theForm[frm-1].style.display = "block";
  }
}
