<!-- Original:  webreference.com  -->
<!-- Web Site:  http://webreference.com  -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!--  Begin
if(v){a=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) {
a[k]=new Option(txt,url);k++;
}
function relate(formName,elementNum,j) {
if(v) {
k=1;
if(j==0) {  // default category item
a=new Array();
O("--------------------","");
}

if(j==1) { // 1st category items
a=new Array();
O("Select a topic","");
O("domain registration","domreg.shtml");
O("mail forwarding / aliases","mailforward.shtml");
O("checking mail","checkmail.shtml");
O("uploading your site","uploading.shtml");
}

if(j==2) { // 2nd category items
a=new Array();
O("Select a topic","");
O("web statistics","webstats.shtml");
O("hit counters","hitcounters.shtml");
O("form-to-mail cgi","formmail.shtml");
O("redirect cgi","redirect.shtml");
O("autoresponders","autoresponders.shtml");
O("basic mailing lists","basicmailinglists.shtml");
O("advanced mailing lists","mailinglists.shtml");
O("search engine submission","submission.shtml");
O("frontpage extensions","frontpage.shtml");
O("password protected directory","passwdprotected.shtml");
O("custom error pages","errorpage.shtml");
O("subdomains","subdomains.shtml");
}

if(j==3) { // 3rd category items
a=new Array();
O("Select a topic","");
O("custom cgi scripts","cgiscripts.shtml");
O("server-side includes / shtml","includes.shtml");
O("php","php.shtml");
O("mysql","mysql.shtml");
}

aln2=a.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]=a[i];
options[0].selected=true;
      }
   }
} else {
jmp(formName,elementNum);
   }
}
// End -->