


function new_window(mypage, myname, w, h, scroll) 
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',location=1,scrollbars='+scroll+',resizable'
	var win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) 
	{ 
		win.window.focus(); 
	}
	return win;
}

function get_xml_http_object()
{ 
	var http	=	null;
	if (window.XMLHttpRequest)
	{
		http	=	new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		http	=	new ActiveXObject("Microsoft.XMLHTTP")
	}
	return http
} 

function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}
function ltrim(stringToTrim) {
	return stringToTrim.replace(/^\s+/,"");
}
function rtrim(stringToTrim) {
	return stringToTrim.replace(/\s+$/,"");
}


function ddd() {  }