function clearform(which,text){

	var $txt = text
	if (which.value==$txt) {
		which.value='';
	} else if (which.value=="") {
		which.value=$txt;
	}

}

function ShowElem(Elem,hide1,hide2,hide3){

  var FormElem = document.getElementById( Elem )
  var hideElem1 = document.getElementById( hide1 )
  var hideElem2 = document.getElementById( hide2 )
  var hideElem3 = document.getElementById( hide3 )
  if(FormElem)
   if((FormElem.style.display == "none") || (FormElem.style.display == "")) {
    FormElem.style.display = "block";
	if (hideElem1)
	hideElem1.style.display = "none";
	if (hideElem2)
	hideElem2.style.display = "none";
	if (hideElem3)
	hideElem3.style.display = "none";	
   }

}

//-------------------------------------------------------

function setClass( hEl, sClass )
  {
    hEl.className = sClass
 }