function showDiv( id ) { 
  document.all.textBox01.style.visibility = 'hidden'; 
  document.all.textBox02.style.visibility = 'hidden'; 
  document.all.textBox01.value = ''; 
  document.all.textBox02.value = ''; 
  document.all[ id ].style.visibility = 'visible'; 
  document.all[ id ].focus(); 
}

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Fang :: http://www.webdeveloper.com/forum/showthread.php?p=872326#post872326
*/

/* function addElement() {
var aInput=document.getElementById('myspan').getElementsByTagName('input');
for(var i=0; i<aInput.length; i++) {
    aInput[i].onclick=new Function('addDelete(this)');
    }
}

function addDelete(obj) {
var parentSpan=document.getElementById('myspan');
if(obj.nextSibling.nodeName!='INPUT') { // add
    var oInputText=document.createElement('input');
    oInputText.setAttribute('type', 'text');
    parentSpan.insertBefore(oInputText, obj.nextSibling);
    }
else { // delete
    parentSpan.removeChild(obj.nextSibling);
    }
}

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  addElement();
}); */