function getFocus(field) {
	with (field.style){backgroundColor='#BBDDEE';    color='#000000'}
}

function lostFocus(field) {with (field.style){backgroundColor='#ffffff'; color='#000000'}}

function capLostFocus(field) {
	with (field.style){backgroundColor='#ffffff'; color='#000000'};
	var str=field.value;
	str=str.toUpperCase();;
	field.value=str;
}
function setFocus(){
if(document.forms[0].elements[0].type=="text")
  document.forms[0].elements[0].focus()

}
function ltrim (s)
{
	return s.replace( /^\s*/, "" )
}

function rtrim (s)
{
	return s.replace( /\s*$/, "" );
}

function trim (s)
{
	return rtrim(ltrim(s));
}
