function OtherAmount() {
	var box = document.getElementById("phtOtherAmount");
	var s = document.getElementById("PtHMenu");
	var item = s.selectedIndex;
	if (s.options[item].value == "Other") {
		box.style.visibility = "visible";
	} else {
		box.style.visibility = "hidden";
	}
}
	
function fillSelectOption(id, v) {
    var s = document.getElementById(id);
	var i;
	for (i = 0; i< s.length; i++) {
		var v1 = s.options[i].value;
		if (v1 == v) {
			s.selectedIndex = i;
		}
	}
}
	
function fillRadio(name, v) {
    var s = document.getElementsByName(name);
	var i;
	for (i = 0; i< s.length; i++) {
		var v1 = s[i].value;
		if (v1 == v) {
			s[i].checked = true;
		}
	}
}

function listItemChange(i, g) {
	//alert(i.className + " " + g);
	var l = document.getElementsByTagName("input");
	for (j = 0; j< l.length; j++) { 
		var li = l[j];
		if (li.className == g) {
			//alert("found " + li.name + " " + li.className + " (" + g + ")");
			if (i.name != li.name) {
				li.checked = false;
			}
		} else {
			//alert("nomatch " + li.name + " " + li.className + " (" + g + ")");
		}
	}
}

function OnSubmitForm()
{
	alert(document.regform.action);
  return true;
}	
