function SearchBox() {
/*
  var head = document.getElementsByTagName('head')[0];
  var link = document.createElement('link');
  link.setAttribute('type', 'text/css');
  link.setAttribute('href', 'http://www.mytelus.com/css/search_box.css');
  link.setAttribute('rel', 'stylesheet');
  head.appendChild(link);
*/
  this.draw = function(internet) {
/*    var i, searchType, elm;

    var tabs = new Array();
    tabs.push(new Array('world', 'Sm', 'web'));
    tabs.push(new Array('canada', 'Sm', 'canada'));
    tabs.push(new Array('myTELUS', 'Md', 'site'));
    tabs.push(new Array('Internet help', 'Lg', 'telusnet'));

    document.write('<div id="searchBox" class="searchBox"></div>');
    var searchBox = document.getElementById('searchBox');

    elm = document.createElement('div');
    elm.appendChild(document.createTextNode('search:'));
    elm.className = 'searchBoxText';
    searchBox.appendChild(elm);

    for(i = 0; i < tabs.length; i++) {
      var elm = document.createElement('a'); elm.href = "";
      elm.className = 'searchBoxBaseBtn searchBoxBtn' + tabs[i][1];
      if (i == 0) {
        elm.className += ' searchBoxBtnActive'+tabs[i][1];
        searchType = tabs[i][2];
      }
      elm.appendChild(document.createTextNode(tabs[i][0]));
      searchBox.appendChild(elm);
      tabs[i].push(elm);
      elm.onclick = tabClick;
    }

    var form = document.createElement('form');
    form.className = 'searchBoxForm';
    form.onsubmit = formSubmit;
    searchBox.appendChild(form);

    var input = document.createElement('input');
    input.className = 'searchBoxInput';
    input.type = 'text';
    form.appendChild(input);
    this.searchInput = input;

    var goImage = document.createElement('input');
    goImage.type = 'image';
    goImage.src = 'http://www.mytelus.com/images/header/go.gif'
    goImage.className = 'searchBoxGo';
    form.appendChild(goImage);

    function tabClick() {
      for(i = 0; i < tabs.length; i++) {
        tabs[i][3].className = 'searchBoxBaseBtn searchBoxBtn' + tabs[i][1];
        if (tabs[i][3] == this) {
          tabs[i][3].className += ' searchBoxBtnActive' + tabs[i][1];
          searchType = tabs[i][2];
        }
      }
      if (input.value != '') {
        formSubmit();    
      } else {
        input.focus();
      }
      return false;
    }

    function formSubmit() {
      var query = escape(input.value.replace(/ /g, '+'));
      var targetURL = "http://www.mytelus.com/search/results.do?p=" + searchType + "&q=" + query;
      if (searchType == 'telusnet' || searchType == 'ebay') {
        window.open(targetURL,'Search');
      } else {
        location = targetURL;
      }
      return false;
    }
    return false;
*/
  }
}
