
function setHeight() {
var oLCol=document.getElementById('colLeft');
var oCCol=document.getElementById('colCenter');
var oRCol=document.getElementById('colRight');
var intLHeight=oLCol.offsetHeight; // +12;
var intCHeight=oCCol.offsetHeight;
var intRHeight=oRCol.offsetHeight; // +12;
//alert(intLHeight+';'+intCHeight+';'+intRHeight);
var intHeight=intLHeight>intRHeight?intLHeight:intRHeight;
intHeight=intHeight>intCHeight?intHeight:intCHeight;
//alert(intHeight);
if (intHeight+12>intCHeight) {
oLCol.style.height=intHeight+'px';
try {
	oCCol.style.height=intHeight+'px';

//	document.getElementById('boxHeight').style.height='100%';
} catch(e) {
// do nothing
}
oRCol.style.height=intHeight+'px';
//alert(document.getElementById('colLeft').style.height+';'+document.getElementById('colCenter').style.height+';'+document.getElementById('colRight').style.height);
} else {
oLCol.style.height=intCHeight-12+'px';
oRCol.style.height=intCHeight-12+'px';
}
}

function getPasswordField(obj) {
	var newField=changeInputType(obj,'password');
	newField.focus();
}

function changeInputType(oldObject, oType) {
  var newObject = document.createElement('input');
  newObject.type = oType;
  if(oldObject.size) newObject.size = oldObject.size;
  if(oldObject.maxLength) newObject.maxLength = oldObject.maxLength;
  if(oldObject.value) newObject.value = '';
  if(oldObject.name) newObject.name = oldObject.name;
  if(oldObject.id) newObject.id = oldObject.id;
  if(oldObject.className) newObject.className = oldObject.className;
  oldObject.parentNode.replaceChild(newObject,oldObject);

	newObject.focus();
  return newObject;
}

setHeight();