function BC (id)
{
 var obj = document.getElementById(id);
 return obj;
}

function trim(str) {
	return str.replace(/^\s+|\s+$/g,"");
}
function dropFocus(obj)
{
	obj.focus();
	obj.style.backgroundColor='#FFDFDF';
	return false;
}
function onError(msg,obj){
	alert(msg);
	return dropFocus(obj);
}

function checkHome(){
	if((window.location.href).indexOf("home.html") != -1 || (window.location.href).indexOf(".html") == -1 )
		initialize();
}

function changeButtonImage(element,image){
	element.src = image;
}

function changeButtonBG(element,cssclass){
	element.className = cssclass;
}
