function trim(text){
	text = text.replace(/^\s+/, "");
	text = text.replace(/\s+$/, "");
	text = text.replace(/\s+/g, " ");
	return text;
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function newWindow(theURL, w, h){		
	var x = window.open(theURL, '', 'height='+h+',width='+w+',scrollbars=yes,menubar=no,status=no,toolbar=no');
	x.focus();
}



function toggleShow(strObject){
	if(document.getElementById(strObject).style.display == 'none'){
		document.getElementById(strObject).style.display = 'block';
		document.getElementById(strObject + "_full").style.display = 'none';
	}else{
		document.getElementById(strObject).style.display = 'none';
		document.getElementById(strObject + "_full").style.display = 'block';
	}
}