<html><head><title>WEB Config</title>
<script language="JavaScript">
<!--
var i,j,k
function MakeArray(n) 
{
    this.length=n;
    for(var i=1;i<=n;i++)
    	this[i]=0;
    return this;
}
function isip(objs){
var lm1=0,t=1,i,j
j=objs
for(i=0;i<=j.length;i++){
    if(j.charAt(i)=="." || i==j.length){
        if(j.charAt(i)=="." && i==j.length-1)
            return false
        if(checknum(j.substring(lm1,i))){
            if(inrange(j.substring(lm1,i),0,255)){
                t++
                lm1=i+1
            }
            else{
                return false
            }
        }
    }
}
if(t!=5)
    return false
return true
}
function inrange(objs,val1,val2){
var i,j,minn,maxn
j=objs
i=parseInt(j,10)
if(val1>val2){
  maxn=val1
  minn=val2
}
else{
  maxn=val2
  minn=val1
}
if(i>maxn || i<minn)
  return false
return true
}
function checknum(objs){
var i,j,k
j=objs
if(j.length==0)
  return false
for(k=0;k<j.length;k++){
  if(j.charAt(k)!=" ")
    break
}
for(i=k;i<j.length;i++){
  if(j.charAt(i)<"0" || j.charAt(i)>"9")
    break
}
if(i==k)
  return false
for(k=i;k<j.length;k++){
  if(j.charAt(k)!=" ")
    return false
}
return true
}
function getsubnet(objs,objb){
	var lm1=0,t=1,i,j,ipstr
	
	ipnum=new MakeArray(4)
	masknum=new MakeArray(4)
	j=objs
	for(i=0;i<=j.length;i++){
	    if(j.charAt(i)=='.' || i==j.length){
	        if(j.charAt(i)=='.' && i==j.length-1)
	            return false
	        if(checknum(j.substring(lm1,i))){
	            if(inrange(j.substring(lm1,i),0,255)){
	            	ipnum[t]=parseInt(j.substring(lm1,i))
	                t++
			lm1=i+1
	            }
	            else
	                return false
	        }
	        else
	            return false
	    }
	}
	if(t!=5)
	    return false
	t=1
	lm1=0
	j=objb
	for(i=0;i<=j.length;i++){
	    if(j.charAt(i)=='.' || i==j.length){
	        if(j.charAt(i)=='.' && i==j.length-1)
	            return false
	        if(checknum(j.substring(lm1,i))){
	            if(inrange(j.substring(lm1,i),0,255)){
	            	masknum[t]=parseInt(j.substring(lm1,i))
	                t++
			lm1=i+1
	            }
	            else
	                return false
	        }
	    }
	}
	if(t!=5)
	    return false
	ipstr=(ipnum[1]& masknum[1]).toString()+'.'+(ipnum[2]& masknum[2]).toString()+'.'
	ipstr=ipstr+(ipnum[3]& masknum[3]).toString()+'.'+(ipnum[4]& masknum[4]).toString()
	return ipstr
}
function num2maskip(objs){
	var y,z
	
	i=new MakeArray(9)
	i[1]='0'
	i[2]='128'
	i[3]='192'
	i[4]='224'
	i[5]='240'
	i[6]='248'
	i[7]='252'
	i[8]='254'
	i[9]='255'
	x=new MakeArray(4)
	z=objs
	for(y=1;y<=4;y++){
		if(z<8)	{
			x[y]=z
			x[y]++
			z=0
		}
		else{
			x[y]=9
			z=z-8
		}
	}
	y=i[x[1]]+'.'+i[x[2]]+'.'+i[x[3]]+'.'+i[x[4]]
	return y
}
function checkall(formobj)
{ var error=0
  var tmp1,tmp2
  if (checknum(formobj.vpi0.value)==false)
  {
    alert("The #1 VPI is not a number!!")
    error=1
  }
  if (inrange(formobj.vpi0.value,0,4095)==false)
  {
    alert("The #1 VPI is out of range  0~4095!!")
    error=1
  }
  if (checknum(formobj.vci0.value)==false)
  {
    alert("The #1 VCI is not a number!!")
    error=1
  }
  if (inrange(formobj.vci0.value,0,65536)==false)
  {
    alert("The #1 VCI is out of range  1~65536!!")
    error=1
  }
  if (checknum(formobj.vpi1.value)==false)
  {
    alert("The #2 VPI is not a number!!")
    error=1
  }
  if (inrange(formobj.vpi1.value,0,4095)==false)
  {
    alert("The #2 VPI is out of range  0~4095!!")
    error=1
  }
  if (checknum(formobj.vci1.value)==false)
  {
    alert("The #2 VCI is not a number!!")
    error=1
  }
  if (inrange(formobj.vci1.value,0,65536)==false)
  {
    alert("The #2 VCI is out of range  1~65536!!")
    error=1
  }
  if (checknum(formobj.vpi2.value)==false)
  {
    alert("The #3 VPI is not a number!!")
    error=1
  }
  if (inrange(formobj.vpi2.value,0,4095)==false)
  {
    alert("The #3 VPI is out of range  0~4095!!")
    error=1
  }
  if (checknum(formobj.vci2.value)==false)
  {
    alert("The #3 VCI is not a number!!")
    error=1
  }
  if (inrange(formobj.vci2.value,0,65536)==false)
  {
    alert("The #3 VCI is out of range  1~65536!!")
    error=1
  }
  if (checknum(formobj.vpi3.value)==false)
  {
    alert("The #4 VPI is not a number!!")
    error=1
  }
  if (inrange(formobj.vpi3.value,0,4095)==false)
  {
    alert("The #4 VPI is out of range  0~4095!!")
    error=1
  }
  if (checknum(formobj.vci3.value)==false)
  {
    alert("The #4 VCI is not a number!!")
    error=1
  }
  if (inrange(formobj.vci3.value,0,65536)==false)
  {
    alert("The #4 VCI is out of range  1~65536!!")
    error=1
  }
  if (checknum(formobj.vpi4.value)==false)
  {
    alert("The #5 VPI is not a number!!")
    error=1
  }
  if (inrange(formobj.vpi4.value,0,4095)==false)
  {
    alert("The #5 VPI is out of range  0~4095!!")
    error=1
  }
  if (checknum(formobj.vci4.value)==false)
  {
    alert("The #5 VCI is not a number!!")
    error=1
  }
  if (inrange(formobj.vci4.value,0,65536)==false)
  {
    alert("The #5 VCI is out of range  1~65536!!")
    error=1
  }
  if (checknum(formobj.vpi5.value)==false)
  {
    alert("The #6 VPI is not a number!!")
    error=1
  }
  if (inrange(formobj.vpi5.value,0,4095)==false)
  {
    alert("The #6 VPI is out of range  0~4095!!")
    error=1
  }
  if (checknum(formobj.vci5.value)==false)
  {
    alert("The #6 VCI is not a number!!")
    error=1
  }
  if (inrange(formobj.vci5.value,0,65536)==false)
  {
    alert("The #6 VCI is out of range  1~65536!!")
    error=1
  }
  if (checknum(formobj.vpi6.value)==false)
  {
    alert("The #7 VPI is not a number!!")
    error=1
  }
  if (inrange(formobj.vpi6.value,0,4095)==false)
  {
    alert("The #7 VPI is out of range  0~4095!!")
    error=1
  }
  if (checknum(formobj.vci6.value)==false)
  {
    alert("The #7 VCI is not a number!!")
    error=1
  }
  if (inrange(formobj.vci6.value,0,65536)==false)
  {
    alert("The #7 VCI is out of range  1~65536!!")
    error=1
  }
  if (checknum(formobj.vpi7.value)==false)
  {
    alert("The #8 VPI is not a number!!")
    error=1
  }
  if (inrange(formobj.vpi7.value,0,4095)==false)
  {
    alert("The #8 VPI is out of range  0~4095!!")
    error=1
  }
  if (checknum(formobj.vci7.value)==false)
  {
    alert("The #8 VCI is not a number!!")
    error=1
  }
  if (inrange(formobj.vci7.value,0,65536)==false)
  {
    alert("The #8 VCI is out of range  1~65536!!")
    error=1
  }
    if(formobj.vpi0.value==formobj.vpi1.value && formobj.mark0.checked==1 &&formobj.vci0.value==formobj.vci1.value && formobj.mark1.checked==1)
    {
      alert("The #1 VPI and VCI is the same with #2 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip0.value,num2maskip(formobj.mask0.value))
    tmp2=getsubnet(formobj.wip1.value,num2maskip(formobj.mask1.value))
    if(tmp1==tmp2 && formobj.mark0.checked==1 && formobj.mark1.checked==1)
    {
      alert("The #1 subnet is the same with #2 subnet")
      error=1
    }
    if(formobj.vpi0.value==formobj.vpi2.value && formobj.mark0.checked==1 &&formobj.vci0.value==formobj.vci2.value && formobj.mark2.checked==1)
    {
      alert("The #1 VPI and VCI is the same with #3 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip0.value,num2maskip(formobj.mask0.value))
    tmp2=getsubnet(formobj.wip2.value,num2maskip(formobj.mask2.value))
    if(tmp1==tmp2 && formobj.mark0.checked==1 && formobj.mark2.checked==1)
    {
      alert("The #1 subnet is the same with #3 subnet")
      error=1
    }
    if(formobj.vpi0.value==formobj.vpi3.value && formobj.mark0.checked==1 &&formobj.vci0.value==formobj.vci3.value && formobj.mark3.checked==1)
    {
      alert("The #1 VPI and VCI is the same with #4 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip0.value,num2maskip(formobj.mask0.value))
    tmp2=getsubnet(formobj.wip3.value,num2maskip(formobj.mask3.value))
    if(tmp1==tmp2 && formobj.mark0.checked==1 && formobj.mark3.checked==1)
    {
      alert("The #1 subnet is the same with #4 subnet")
      error=1
    }
    if(formobj.vpi0.value==formobj.vpi4.value && formobj.mark0.checked==1 &&formobj.vci0.value==formobj.vci4.value && formobj.mark4.checked==1)
    {
      alert("The #1 VPI and VCI is the same with #5 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip0.value,num2maskip(formobj.mask0.value))
    tmp2=getsubnet(formobj.wip4.value,num2maskip(formobj.mask4.value))
    if(tmp1==tmp2 && formobj.mark0.checked==1 && formobj.mark4.checked==1)
    {
      alert("The #1 subnet is the same with #5 subnet")
      error=1
    }
    if(formobj.vpi0.value==formobj.vpi5.value && formobj.mark0.checked==1 &&formobj.vci0.value==formobj.vci5.value && formobj.mark5.checked==1)
    {
      alert("The #1 VPI and VCI is the same with #6 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip0.value,num2maskip(formobj.mask0.value))
    tmp2=getsubnet(formobj.wip5.value,num2maskip(formobj.mask5.value))
    if(tmp1==tmp2 && formobj.mark0.checked==1 && formobj.mark5.checked==1)
    {
      alert("The #1 subnet is the same with #6 subnet")
      error=1
    }
    if(formobj.vpi0.value==formobj.vpi6.value && formobj.mark0.checked==1 &&formobj.vci0.value==formobj.vci6.value && formobj.mark6.checked==1)
    {
      alert("The #1 VPI and VCI is the same with #7 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip0.value,num2maskip(formobj.mask0.value))
    tmp2=getsubnet(formobj.wip6.value,num2maskip(formobj.mask6.value))
    if(tmp1==tmp2 && formobj.mark0.checked==1 && formobj.mark6.checked==1)
    {
      alert("The #1 subnet is the same with #7 subnet")
      error=1
    }
    if(formobj.vpi0.value==formobj.vpi7.value && formobj.mark0.checked==1 &&formobj.vci0.value==formobj.vci7.value && formobj.mark7.checked==1)
    {
      alert("The #1 VPI and VCI is the same with #8 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip0.value,num2maskip(formobj.mask0.value))
    tmp2=getsubnet(formobj.wip7.value,num2maskip(formobj.mask7.value))
    if(tmp1==tmp2 && formobj.mark0.checked==1 && formobj.mark7.checked==1)
    {
      alert("The #1 subnet is the same with #8 subnet")
      error=1
    }
    if(formobj.vpi1.value==formobj.vpi2.value && formobj.mark1.checked==1 &&formobj.vci1.value==formobj.vci2.value && formobj.mark2.checked==1)
    {
      alert("The #2 VPI and VCI is the same with #3 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip1.value,num2maskip(formobj.mask1.value))
    tmp2=getsubnet(formobj.wip2.value,num2maskip(formobj.mask2.value))
    if(tmp1==tmp2 && formobj.mark1.checked==1 && formobj.mark2.checked==1)
    {
      alert("The #2 subnet is the same with #3 subnet")
      error=1
    }
    if(formobj.vpi1.value==formobj.vpi3.value && formobj.mark1.checked==1 &&formobj.vci1.value==formobj.vci3.value && formobj.mark3.checked==1)
    {
      alert("The #2 VPI and VCI is the same with #4 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip1.value,num2maskip(formobj.mask1.value))
    tmp2=getsubnet(formobj.wip3.value,num2maskip(formobj.mask3.value))
    if(tmp1==tmp2 && formobj.mark1.checked==1 && formobj.mark3.checked==1)
    {
      alert("The #2 subnet is the same with #4 subnet")
      error=1
    }
    if(formobj.vpi1.value==formobj.vpi4.value && formobj.mark1.checked==1 &&formobj.vci1.value==formobj.vci4.value && formobj.mark4.checked==1)
    {
      alert("The #2 VPI and VCI is the same with #5 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip1.value,num2maskip(formobj.mask1.value))
    tmp2=getsubnet(formobj.wip4.value,num2maskip(formobj.mask4.value))
    if(tmp1==tmp2 && formobj.mark1.checked==1 && formobj.mark4.checked==1)
    {
      alert("The #2 subnet is the same with #5 subnet")
      error=1
    }
    if(formobj.vpi1.value==formobj.vpi5.value && formobj.mark1.checked==1 &&formobj.vci1.value==formobj.vci5.value && formobj.mark5.checked==1)
    {
      alert("The #2 VPI and VCI is the same with #6 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip1.value,num2maskip(formobj.mask1.value))
    tmp2=getsubnet(formobj.wip5.value,num2maskip(formobj.mask5.value))
    if(tmp1==tmp2 && formobj.mark1.checked==1 && formobj.mark5.checked==1)
    {
      alert("The #2 subnet is the same with #6 subnet")
      error=1
    }
    if(formobj.vpi1.value==formobj.vpi6.value && formobj.mark1.checked==1 &&formobj.vci1.value==formobj.vci6.value && formobj.mark6.checked==1)
    {
      alert("The #2 VPI and VCI is the same with #7 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip1.value,num2maskip(formobj.mask1.value))
    tmp2=getsubnet(formobj.wip6.value,num2maskip(formobj.mask6.value))
    if(tmp1==tmp2 && formobj.mark1.checked==1 && formobj.mark6.checked==1)
    {
      alert("The #2 subnet is the same with #7 subnet")
      error=1
    }
    if(formobj.vpi1.value==formobj.vpi7.value && formobj.mark1.checked==1 &&formobj.vci1.value==formobj.vci7.value && formobj.mark7.checked==1)
    {
      alert("The #2 VPI and VCI is the same with #8 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip1.value,num2maskip(formobj.mask1.value))
    tmp2=getsubnet(formobj.wip7.value,num2maskip(formobj.mask7.value))
    if(tmp1==tmp2 && formobj.mark1.checked==1 && formobj.mark7.checked==1)
    {
      alert("The #2 subnet is the same with #8 subnet")
      error=1
    }
    if(formobj.vpi2.value==formobj.vpi3.value && formobj.mark2.checked==1 &&formobj.vci2.value==formobj.vci3.value && formobj.mark3.checked==1)
    {
      alert("The #3 VPI and VCI is the same with #4 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip2.value,num2maskip(formobj.mask2.value))
    tmp2=getsubnet(formobj.wip3.value,num2maskip(formobj.mask3.value))
    if(tmp1==tmp2 && formobj.mark2.checked==1 && formobj.mark3.checked==1)
    {
      alert("The #3 subnet is the same with #4 subnet")
      error=1
    }
    if(formobj.vpi2.value==formobj.vpi4.value && formobj.mark2.checked==1 &&formobj.vci2.value==formobj.vci4.value && formobj.mark4.checked==1)
    {
      alert("The #3 VPI and VCI is the same with #5 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip2.value,num2maskip(formobj.mask2.value))
    tmp2=getsubnet(formobj.wip4.value,num2maskip(formobj.mask4.value))
    if(tmp1==tmp2 && formobj.mark2.checked==1 && formobj.mark4.checked==1)
    {
      alert("The #3 subnet is the same with #5 subnet")
      error=1
    }
    if(formobj.vpi2.value==formobj.vpi5.value && formobj.mark2.checked==1 &&formobj.vci2.value==formobj.vci5.value && formobj.mark5.checked==1)
    {
      alert("The #3 VPI and VCI is the same with #6 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip2.value,num2maskip(formobj.mask2.value))
    tmp2=getsubnet(formobj.wip5.value,num2maskip(formobj.mask5.value))
    if(tmp1==tmp2 && formobj.mark2.checked==1 && formobj.mark5.checked==1)
    {
      alert("The #3 subnet is the same with #6 subnet")
      error=1
    }
    if(formobj.vpi2.value==formobj.vpi6.value && formobj.mark2.checked==1 &&formobj.vci2.value==formobj.vci6.value && formobj.mark6.checked==1)
    {
      alert("The #3 VPI and VCI is the same with #7 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip2.value,num2maskip(formobj.mask2.value))
    tmp2=getsubnet(formobj.wip6.value,num2maskip(formobj.mask6.value))
    if(tmp1==tmp2 && formobj.mark2.checked==1 && formobj.mark6.checked==1)
    {
      alert("The #3 subnet is the same with #7 subnet")
      error=1
    }
    if(formobj.vpi2.value==formobj.vpi7.value && formobj.mark2.checked==1 &&formobj.vci2.value==formobj.vci7.value && formobj.mark7.checked==1)
    {
      alert("The #3 VPI and VCI is the same with #8 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip2.value,num2maskip(formobj.mask2.value))
    tmp2=getsubnet(formobj.wip7.value,num2maskip(formobj.mask7.value))
    if(tmp1==tmp2 && formobj.mark2.checked==1 && formobj.mark7.checked==1)
    {
      alert("The #3 subnet is the same with #8 subnet")
      error=1
    }
    if(formobj.vpi3.value==formobj.vpi4.value && formobj.mark3.checked==1 &&formobj.vci3.value==formobj.vci4.value && formobj.mark4.checked==1)
    {
      alert("The #4 VPI and VCI is the same with #5 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip3.value,num2maskip(formobj.mask3.value))
    tmp2=getsubnet(formobj.wip4.value,num2maskip(formobj.mask4.value))
    if(tmp1==tmp2 && formobj.mark3.checked==1 && formobj.mark4.checked==1)
    {
      alert("The #4 subnet is the same with #5 subnet")
      error=1
    }
    if(formobj.vpi3.value==formobj.vpi5.value && formobj.mark3.checked==1 &&formobj.vci3.value==formobj.vci5.value && formobj.mark5.checked==1)
    {
      alert("The #4 VPI and VCI is the same with #6 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip3.value,num2maskip(formobj.mask3.value))
    tmp2=getsubnet(formobj.wip5.value,num2maskip(formobj.mask5.value))
    if(tmp1==tmp2 && formobj.mark3.checked==1 && formobj.mark5.checked==1)
    {
      alert("The #4 subnet is the same with #6 subnet")
      error=1
    }
    if(formobj.vpi3.value==formobj.vpi6.value && formobj.mark3.checked==1 &&formobj.vci3.value==formobj.vci6.value && formobj.mark6.checked==1)
    {
      alert("The #4 VPI and VCI is the same with #7 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip3.value,num2maskip(formobj.mask3.value))
    tmp2=getsubnet(formobj.wip6.value,num2maskip(formobj.mask6.value))
    if(tmp1==tmp2 && formobj.mark3.checked==1 && formobj.mark6.checked==1)
    {
      alert("The #4 subnet is the same with #7 subnet")
      error=1
    }
    if(formobj.vpi3.value==formobj.vpi7.value && formobj.mark3.checked==1 &&formobj.vci3.value==formobj.vci7.value && formobj.mark7.checked==1)
    {
      alert("The #4 VPI and VCI is the same with #8 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip3.value,num2maskip(formobj.mask3.value))
    tmp2=getsubnet(formobj.wip7.value,num2maskip(formobj.mask7.value))
    if(tmp1==tmp2 && formobj.mark3.checked==1 && formobj.mark7.checked==1)
    {
      alert("The #4 subnet is the same with #8 subnet")
      error=1
    }
    if(formobj.vpi4.value==formobj.vpi5.value && formobj.mark4.checked==1 &&formobj.vci4.value==formobj.vci5.value && formobj.mark5.checked==1)
    {
      alert("The #5 VPI and VCI is the same with #6 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip4.value,num2maskip(formobj.mask4.value))
    tmp2=getsubnet(formobj.wip5.value,num2maskip(formobj.mask5.value))
    if(tmp1==tmp2 && formobj.mark4.checked==1 && formobj.mark5.checked==1)
    {
      alert("The #5 subnet is the same with #6 subnet")
      error=1
    }
    if(formobj.vpi4.value==formobj.vpi6.value && formobj.mark4.checked==1 &&formobj.vci4.value==formobj.vci6.value && formobj.mark6.checked==1)
    {
      alert("The #5 VPI and VCI is the same with #7 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip4.value,num2maskip(formobj.mask4.value))
    tmp2=getsubnet(formobj.wip6.value,num2maskip(formobj.mask6.value))
    if(tmp1==tmp2 && formobj.mark4.checked==1 && formobj.mark6.checked==1)
    {
      alert("The #5 subnet is the same with #7 subnet")
      error=1
    }
    if(formobj.vpi4.value==formobj.vpi7.value && formobj.mark4.checked==1 &&formobj.vci4.value==formobj.vci7.value && formobj.mark7.checked==1)
    {
      alert("The #5 VPI and VCI is the same with #8 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip4.value,num2maskip(formobj.mask4.value))
    tmp2=getsubnet(formobj.wip7.value,num2maskip(formobj.mask7.value))
    if(tmp1==tmp2 && formobj.mark4.checked==1 && formobj.mark7.checked==1)
    {
      alert("The #5 subnet is the same with #8 subnet")
      error=1
    }
    if(formobj.vpi5.value==formobj.vpi6.value && formobj.mark5.checked==1 &&formobj.vci5.value==formobj.vci6.value && formobj.mark6.checked==1)
    {
      alert("The #6 VPI and VCI is the same with #7 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip5.value,num2maskip(formobj.mask5.value))
    tmp2=getsubnet(formobj.wip6.value,num2maskip(formobj.mask6.value))
    if(tmp1==tmp2 && formobj.mark5.checked==1 && formobj.mark6.checked==1)
    {
      alert("The #6 subnet is the same with #7 subnet")
      error=1
    }
    if(formobj.vpi5.value==formobj.vpi7.value && formobj.mark5.checked==1 &&formobj.vci5.value==formobj.vci7.value && formobj.mark7.checked==1)
    {
      alert("The #6 VPI and VCI is the same with #8 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip5.value,num2maskip(formobj.mask5.value))
    tmp2=getsubnet(formobj.wip7.value,num2maskip(formobj.mask7.value))
    if(tmp1==tmp2 && formobj.mark5.checked==1 && formobj.mark7.checked==1)
    {
      alert("The #6 subnet is the same with #8 subnet")
      error=1
    }
    if(formobj.vpi6.value==formobj.vpi7.value && formobj.mark6.checked==1 &&formobj.vci6.value==formobj.vci7.value && formobj.mark7.checked==1)
    {
      alert("The #7 VPI and VCI is the same with #8 VPI and VCI")
      error=1
    }
    tmp1=getsubnet(formobj.wip6.value,num2maskip(formobj.mask6.value))
    tmp2=getsubnet(formobj.wip7.value,num2maskip(formobj.mask7.value))
    if(tmp1==tmp2 && formobj.mark6.checked==1 && formobj.mark7.checked==1)
    {
      alert("The #7 subnet is the same with #8 subnet")
      error=1
    }
  if (error==0)
  {
    formobj.submit()
    return true
  }
  else return false
}
-->
</script>
</head><body bgcolor="#A1A1DA">
</head><body bgcolor="#A1A1DA">
<FORM ACTION=r1483_bridge_show METHOD=GET>
<center><font size="6">RFC1483 Bridge Setup</font><br><br><table border="5">
<tr>
 <td bordercolor="#000000">
<input type="hidden" name="cmd" value="Y">
<table border=0>
<tr><br>
  <th width="45" align="center">Enable</th>
  <th width="15" align="center">#</th>
  <th width="28" align="center">VPI</th>
  <th width="28" align="center">VCI</th>
  <th width="50" align="center">QoS</th>
  <th width="50" align="center">LLC/VCMUX</th>
  <th width="70" align="center">Pkt Filter</th>
</tr>
<tr align=center>
  <td width="45" align="center"><input type=checkbox name=mark0 value=1 checked></td>
  <td width="15" align="center">1</td>
  <td width="28" align="center"><input type=text size=4 maxlength=4 name=vpi0 value=1></td>
  <td width="28" align="center"><input type=text size=5 maxlength=5 name=vci0 value=32></td>
<td align="center" width="50">

<select name=class0>
<option selected value=0>UBR<option  value=1>CBR<option  value=2>VBR-nrt<option  value=3>VBR-rt
</select>

</td>
<td align="center" width="50">

<select name=llc0>
<option selected value=0>LLC<option  value=1>VCMUX
</select>

</td>
<td align="center" width="56">

<select name=pkt0>
<option selected value=1>Any<option  value=2>IP<option  value=3>PPPoE<option  value=4>IGMP<option  value=5>None
</select>

</td>
</tr>
<tr align=center>
  <td width="45" align="center"><input type=checkbox name=mark1 value=1  ></td>
  <td width="15" align="center">2</td>
  <td width="28" align="center"><input type=text size=4 maxlength=4 name=vpi1 value=0></td>
  <td width="28" align="center"><input type=text size=5 maxlength=5 name=vci1 value=0></td>
<td align="center" width="50">

<select name=class1>
<option selected value=0>UBR<option  value=1>CBR<option  value=2>VBR-nrt<option  value=3>VBR-rt
</select>

</td>
<td align="center" width="50">

<select name=llc1>
<option selected value=0>LLC<option  value=1>VCMUX
</select>

</td>
<td align="center" width="56">

<select name=pkt1>
<option selected value=1>Any<option  value=2>IP<option  value=3>PPPoE<option  value=4>IGMP<option  value=5>None
</select>

</td>
</tr>
<tr align=center>
  <td width="45" align="center"><input type=checkbox name=mark2 value=1  ></td>
  <td width="15" align="center">3</td>
  <td width="28" align="center"><input type=text size=4 maxlength=4 name=vpi2 value=0></td>
  <td width="28" align="center"><input type=text size=5 maxlength=5 name=vci2 value=0></td>
<td align="center" width="50">

<select name=class2>
<option selected value=0>UBR<option  value=1>CBR<option  value=2>VBR-nrt<option  value=3>VBR-rt
</select>

</td>
<td align="center" width="50">

<select name=llc2>
<option selected value=0>LLC<option  value=1>VCMUX
</select>

</td>
<td align="center" width="56">

<select name=pkt2>
<option selected value=1>Any<option  value=2>IP<option  value=3>PPPoE<option  value=4>IGMP<option  value=5>None
</select>

</td>
</tr>
<tr align=center>
  <td width="45" align="center"><input type=checkbox name=mark3 value=1  ></td>
  <td width="15" align="center">4</td>
  <td width="28" align="center"><input type=text size=4 maxlength=4 name=vpi3 value=0></td>
  <td width="28" align="center"><input type=text size=5 maxlength=5 name=vci3 value=0></td>
<td align="center" width="50">

<select name=class3>
<option selected value=0>UBR<option  value=1>CBR<option  value=2>VBR-nrt<option  value=3>VBR-rt
</select>

</td>
<td align="center" width="50">

<select name=llc3>
<option selected value=0>LLC<option  value=1>VCMUX
</select>

</td>
<td align="center" width="56">

<select name=pkt3>
<option selected value=1>Any<option  value=2>IP<option  value=3>PPPoE<option  value=4>IGMP<option  value=5>None
</select>

</td>
</tr>
<tr align=center>
  <td width="45" align="center"><input type=checkbox name=mark4 value=1  ></td>
  <td width="15" align="center">5</td>
  <td width="28" align="center"><input type=text size=4 maxlength=4 name=vpi4 value=0></td>
  <td width="28" align="center"><input type=text size=5 maxlength=5 name=vci4 value=0></td>
<td align="center" width="50">

<select name=class4>
<option selected value=0>UBR<option  value=1>CBR<option  value=2>VBR-nrt<option  value=3>VBR-rt
</select>

</td>
<td align="center" width="50">

<select name=llc4>
<option selected value=0>LLC<option  value=1>VCMUX
</select>

</td>
<td align="center" width="56">

<select name=pkt4>
<option selected value=1>Any<option  value=2>IP<option  value=3>PPPoE<option  value=4>IGMP<option  value=5>None
</select>

</td>
</tr>
<tr align=center>
  <td width="45" align="center"><input type=checkbox name=mark5 value=1  ></td>
  <td width="15" align="center">6</td>
  <td width="28" align="center"><input type=text size=4 maxlength=4 name=vpi5 value=0></td>
  <td width="28" align="center"><input type=text size=5 maxlength=5 name=vci5 value=0></td>
<td align="center" width="50">

<select name=class5>
<option selected value=0>UBR<option  value=1>CBR<option  value=2>VBR-nrt<option  value=3>VBR-rt
</select>

</td>
<td align="center" width="50">

<select name=llc5>
<option selected value=0>LLC<option  value=1>VCMUX
</select>

</td>
<td align="center" width="56">

<select name=pkt5>
<option selected value=1>Any<option  value=2>IP<option  value=3>PPPoE<option  value=4>IGMP<option  value=5>None
</select>

</td>
</tr>
<tr align=center>
  <td width="45" align="center"><input type=checkbox name=mark6 value=1  ></td>
  <td width="15" align="center">7</td>
  <td width="28" align="center"><input type=text size=4 maxlength=4 name=vpi6 value=0></td>
  <td width="28" align="center"><input type=text size=5 maxlength=5 name=vci6 value=0></td>
<td align="center" width="50">

<select name=class6>
<option selected value=0>UBR<option  value=1>CBR<option  value=2>VBR-nrt<option  value=3>VBR-rt
</select>

</td>
<td align="center" width="50">

<select name=llc6>
<option selected value=0>LLC<option  value=1>VCMUX
</select>

</td>
<td align="center" width="56">

<select name=pkt6>
<option selected value=1>Any<option  value=2>IP<option  value=3>PPPoE<option  value=4>IGMP<option  value=5>None
</select>

</td>
</tr>
<tr align=center>
  <td width="45" align="center"><input type=checkbox name=mark7 value=1  ></td>
  <td width="15" align="center">8</td>
  <td width="28" align="center"><input type=text size=4 maxlength=4 name=vpi7 value=0></td>
  <td width="28" align="center"><input type=text size=5 maxlength=5 name=vci7 value=0></td>
<td align="center" width="50">

<select name=class7>
<option selected value=0>UBR<option  value=1>CBR<option  value=2>VBR-nrt<option  value=3>VBR-rt
</select>

</td>
<td align="center" width="50">

<select name=llc7>
<option selected value=0>LLC<option  value=1>VCMUX
</select>

</td>
<td align="center" width="56">

<select name=pkt7>
<option selected value=1>Any<option  value=2>IP<option  value=3>PPPoE<option  value=4>IGMP<option  value=5>None
</select>

</td>
</tr>
<tr>
  <td align="center" colspan="7">Spanning Tree Enable<input type=checkbox name=span value=1 ></td>
</tr>
</table><p>
<center><INPUT TYPE=RESET value="Reset">    <INPUT TYPE=button value="Submit" onclick='checkall(this.form)'></center><br>
</font></td>
 </tr>
</table></center></form>
</body></html>