function displayBlock(id){
 	document.getElementById(id).style.display='block';
}
function displayNone(id){
 	document.getElementById(id).style.display='none';
}

function radio_button_checker(radioField)
{	
	
	// set var radio_choice to false
	var radio_choice = false;
	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < radioField.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (radioField[counter].checked)
		radio_choice = true; 
	}
	
	if (!radio_choice)
	{
		return (false);
	}
return (true);
}

function OpenEditWindow(strURL, strTitle, intWidth, intHeight, scrollbars)
	{
		var intWindowLeft
		var intWindowTop
		var msgWindow
		
		
		// find out the numbers to center the screen.
		intWindowLeft = (screen.width - intWidth) / 2;
		intWindowTop = (screen.height - intHeight) / 2;
		msgWindow = window.open(strURL,strTitle,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + scrollbars + ',resizable=0,width=' + intWidth + ',height=' + intHeight + ',left=' + intWindowLeft + ',top=' + intWindowTop);	
	}	
	
function trim(s)
{
return s.replace(/^\s+|\s+$/g, "");
}	
	
function isFloat(s)
{
var n = trim(s);
return n.length>0 && !(/[^0-9.]/).test(n) && (/\.\d/).test(n);
}	