function confirmText(txt)
{
	var _confirm = false;
	if(confirm(txt)){_confirm = true;}
	return _confirm;
}

function swap(divID)
{
	if (document.getElementById(divID).style.display=='none')
	{
		document.getElementById(divID).style.display='block';
	}
	else
	{
		document.getElementById(divID).style.display='none';
	}
}
function StrIsNumeric(valueStr)
{
	var isNumeric = true;
	for(var i = 0; i < valueStr.length; i++)
	{
		if(isNaN(parseInt(valueStr.charAt(i)))){ return false;}
	}
	return isNumeric;
}

function trimAll(sString){
	while (sString.substring(0,1) == ' ')
	{
		sString = sString.substring(1, sString.length);
	}
	while (sString.substring(sString.length-1, sString.length) == ' ')
	{
		sString = sString.substring(0,sString.length-1);
	}
	return sString;
}


function OpenNewWindow(path)
{
	if(path != "")
	{
		var newWindow = window.open(""+path);
		newWindow.focus();
	}
}

function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	  {
	  // code for IE7+, Firefox, Chrome, Opera, Safari
	  return new XMLHttpRequest();
	  }
	if (window.ActiveXObject)
	  {
	  // code for IE6, IE5
	  return new ActiveXObject("Microsoft.XMLHTTP");
	  }
	return null;
}