+function initNodeTypeFields() {
+ var regular=document.getElementById("regular_checked");
+ var reservable=document.getElementById("reservable_checked");
+ if ( regular.checked || reservable.checked) return;
+ regular.checked=true;
+}
+function updateMethodFields() {
+ var dhcp=document.getElementById("dhcp_checked");
+ var static=document.getElementById("static_checked");
+ // set dhcp as default
+ if ( ! dhcp.checked && ! static.checked) dhcp.checked=true;
+ var is_dhcp=dhcp.checked;