<%--
/*
 * Copyright 2002-2004 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 *
 * ident	"@(#)AddPublicAdapterOnNode.jsp	1.3	04/07/26 SMI"
 */
--%>

<%@page info="AddPublicAdapterOnNode" language="java" %> 
<%@taglib uri="/WEB-INF/tld/com_iplanet_jato/jato.tld" prefix="jato"%> 
<%@taglib uri="/WEB-INF/tld/com_sun_cluster_spm/spm.tld" prefix="spm"%>
<%@taglib uri="/WEB-INF/tld/com_sun_web_ui/cc.tld" prefix="cc"%>

<!-- Set the viewbean -->
<jato:useViewBean className="com.sun.cluster.spm.netif.AddPublicAdapterOnNodeViewBean">

<!-- Page header component -->
<spm:header 	pageTitle="netif.publicAdapter.add.title" 
		copyrightYear="2004" 
		baseName="com.sun.cluster.spm.resources.Resources" 
		bundleID="scBundle">

<jato:form name="scForm" method="post" defaultCommandChild="AddButton">

<script language="JavaScript">
function changeTestAddressState() {
  var radio = document.scForm.elements['AddPublicAdapterOnNode.IPVersionName'];
  var i = 0;
  while (!radio[i].checked) {
    i++;
  }
  var radiovalue = radio[i].value;
  var text = document.scForm.elements['AddPublicAdapterOnNode.TestAddressName'];
  if ((radiovalue == 'IPv4 only') ||
      (radiovalue == 'IPv4 and IPv6')) {
     text.disabled = false;
  } else if (radiovalue == 'IPv6 only') {
     text.disabled = true;
  }
}
</script>

<!-- Inline Error Alert -->
<spm:alertinline name="SelectionErrorAlert"  bundleID="scBundle" />

<!-- Command Alert -->
<spm:alertinline name="CommandResultAlert" bundleID="scBundle" />

<!-- PageTitle -->
<cc:pagetitle name="GenericAddPageTitle" bundleID="scBundle"
 pageTitleText="netif.publicAdapter.add.title" 
 showPageTitleSeparator="true"
 showPageButtonsTop="false"
 pageTitleHelpMessage="netif.publicAdapter.add.help">

<!-- PropertySheet -->
<cc:propertysheet name="PropertySheet" bundleID="scBundle"/>

</cc:pagetitle>
</jato:form>
</spm:header>
</jato:useViewBean>
