function IsNumeric(strString)
//  check for valid numeric strings	
{
	var strValidChars = "0123456789.,-";
	var strChar;
	var blnResult = true;

	strString.replace(",", ".")
	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;
}

function chek(radio){
	radio_choice = false
	
	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < radio.length && !radio_choice; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (radio[counter].checked){
			radio_choice = true;
		}
	}
	
	return radio_choice;
}

function forceSelect(select, value){
	var found = false;
	for (counter = 0; counter < select.options.length && !found; counter++)
	{
		//alert(select.options[counter].value + " == " + value);
		if (select.options[counter].value == value){
			found = true;
			select.options[counter].selected = true;
		}
	}
	
	return found;
}	
