try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}

function Show(id)
{
	var o = document.getElementById(id);
	o.style.display = 'block';
}
function Hide(id)
{
	var o = document.getElementById(id);
	o.style.display = 'none';
}

function OpenWindow(url, targ, feat)
{
	var oWin = window.open(url, targ, feat);
	oWin.focus();
}

function ValidEmail(email)
{
	if (email == '') return false;

	return (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email));
}

function IsNumeric(strString)
//  check for valid numeric strings	
{
	var strValidChars = "0123456789.-";
	var strChar;
	var blnResult = true;

	if (strString.length == 0) return false;

	//  test strString consists of valid characters listed above
	for (i = 0; i < strString.length && blnResult == true; i++)
	{
		strChar = strString.charAt(i);
		if (strValidChars.indexOf(strChar) == -1)
			blnResult = false;
	}
	return blnResult;
}
