<!--
v=false;
t=false;

if (typeof(Option)+"" != "undefined") v=true;

if(v){ax=new Array();aln=0;}
function getFormNum (formName) {
formNum =-1;
for (i=0;i<document.forms.length;i++){
tempForm = document.forms[i];
if (formName == tempForm) {
formNum = i;
correctForm = tempForm;
break;
   }
}
return formNum;
}
function jmp(formName,elementNum) {
getFormNum(formName);
if (formNum>=0) {
with (document.forms[formNum].elements[elementNum]) {
i=selectedIndex;
if (i>=0) location=options[i].value;
      }
   }
}
function O(txt,url) {
ax[k]=new Option(txt,url);k++;
}
function relate(formName,elementNum,j) {
if(v) {
k=1;
getFormNum(formName);
	if (formNum>=0) {
		with (document.forms[formNum].elements[elementNum])
			j=options[j].value;
		}

if(j==0) {  // 2nd
ax=new Array();
O("Please choose a product group.","#");
}

if(j==1) { // 2nd
ax=new Array();
	O('Please choose a product group.','#');
	O('Others','accessories.php');
	O('Auto Attendant & Voice Mail','accessories.php');
	O('CRL & CTI','accessories.php');
	O('GSM Gateways','accessories.php');
	O('Wireless Systems','accessories.php');
}

if(j==2) { // 2nd
ax=new Array();
	O('Please choose a product group.','#');
	O('SOHO Systems','telesystems.php');
	O('Medium and Large Sized Systems','telesystems.php');
}

if(j==3) { // 2nd
ax=new Array();
	O('Please choose a product group.','#');
	O('Add-On Modules','telephones.php');
	O('Feature Phones','telephones.php');
	O('Single Line Telephones','telephones.php');
	O('Caller ID Telephones','telephones.php');
	O('ISDN Telephones','telephones.php');
}


aln2=ax.length;
getFormNum(formName);
if (formNum>=0) {
formNum = formNum + 1;
with (document.forms[formNum].elements[elementNum]) {
for (var i=options.length-1;i>0;i--) options[i]=null;
for (var i=1;i<aln2;i++) options[i-1]=ax[i];
options[0].selected=true;
      }
   }
} else {
jmp(formName,elementNum);
   }
}
// End -->
