﻿
//this function is very cool
//since i'm gonna use JSON
//my javascripts will be more like this

//to save from the hell of writing [document.getElementById]
function $() {
      var elements = new Array();
      
      for (var i = 0 ; i < arguments.length ; i++) {
            var element = arguments[i];
            if ( typeof element == 'string' ) element = document.getElementById(element);
            if ( arguments.length == 1 ) return element;
            elements.push( element );
      }
      return elements;
}

function selectListShowHide( state ){
    var f = document.forms[0].elements;
    var count = f.length;
    
    for (i=0; i<count; i++){    
        if( f[i].type == 'select-one' ){
            f[i].style.display = state;
        }
    }   
}