Hi

This is the first time im writing here.

Im very naive to HTML

Any help would be greatly appreciated.

there is a page which has 3 columns. the options keep changing in these columns as per the selection made in the previous column.
Now I want to add 1 more column, which i cannot get it to work

function FillOffers()
{
ClearOptions(document.form1.select2);
var HSet = document.form1.select1.value;
var RE1=fNotes.documentElement;
var NodeCount=RE1.childNodes.length;
var LoopIndex;
var CurrentNode;
var xcat;
var xOffer;
var xNotes;
var isPhone;
var xOffer2;

for (LoopIndex=0;LoopIndex<NodeCount;LoopIndex++)
{
CurrentNode=RE1.childNodes.item(LoopIndex);
xcat = CurrentNode.childNodes.item(0).text;
xOffer = CurrentNode.childNodes.item(1).text;
xNotes = CurrentNode.childNodes.item(2).text;
if(HSet == xcat)
{
if(xOffer != xOffer2)
{
AddToOptionList(document.form1.select2, xOffer, xOffer);
}
xOffer2 = CurrentNode.childNodes.item(1).text;
}
}
}

function FillOffers2()
{
ClearOptions(document.form1.select3);
var HSet = document.form1.select2.value;
var RE1=fNotes.documentElement;
var NodeCount=RE1.childNodes.length;
var LoopIndex;
var CurrentNode;
var xcat;
var xOffer;
var xOffer2;
var xNotes;
var isPhone;
var xOffer3;
for (LoopIndex=0;LoopIndex<NodeCount;LoopIndex++)
{
CurrentNode=RE1.childNodes.item(LoopIndex);
xcat = CurrentNode.childNodes.item(1).text;
xOffer = CurrentNode.childNodes.item(1).text;
xOffer2 = CurrentNode.childNodes.item(2).text;
xNotes = CurrentNode.childNodes.item(3).text;
if(HSet == xcat)
{
if(xOffer2 != xOffer3)
{
AddToOptionList(document.form1.select3, xOffer2, xOffer2);
}
xOffer3 = CurrentNode.childNodes.item(2).text;

}
}
}

function FillOffers3()
{
ClearOptions(document.form1.select4);
var HSet = document.form1.select3.value;
var RE1=fNotes.documentElement;
var NodeCount=RE1.childNodes.length;
var LoopIndex;
var CurrentNode;
var xcat;
var xOffer;
var xOffer2;
var xOffer3;
var xNotes;
var isPhone;
for (LoopIndex=0;LoopIndex<NodeCount;LoopIndex++)
{
CurrentNode=RE1.childNodes.item(LoopIndex);
xcat = CurrentNode.childNodes.item(2).text;
xOffer = CurrentNode.childNodes.item(2).text;
xOffer2 = CurrentNode.childNodes.item(3).text;
xOffer3 = CurrentNode.childNodes.item(4).text;
xNotes = CurrentNode.childNodes.item(4).text;
if(HSet == xcat)
{
if(xOffer3 != 'Standard T & C')
{
AddToOptionList(document.form1.select4, xOffer3, xOffer3);
}
}
}
}



Filloffers3 is the function which i have added looking at the previous code. Please let me know how i correct this. I have added option for offer3 in the param.