function FillFirstCategory(paramFirstCategory, paramSeccondCategory, sDefaultFirstCategory){
var sDefaultFirstCategory, sDefault, sFirstCategory,sFirstCategoryValue

paramFirstCategory.options.length=0
for(i=0;i<sFirstCategoryString.split("|").length;i++)
{
sFirstCategory = sFirstCategoryString.split("|")[i];
sFirstCategoryValue = sFirstCategoryStringValue.split("|")[i];
//alert(sDefaultFirstCategory+" "+sFirstCategoryValue);
if (sDefaultFirstCategory == sFirstCategoryValue)
{
//alert("Aa");
sDefault=true;
//if (navigator.appName=="Microsoft Internet Explorer"){paramSeccondCategory.focus();}
}
else {sDefault=false;}
//alert("sDefault "+sDefault);
if (sDefault)
{
paramFirstCategory.options[i]=new Option(sFirstCategory,sFirstCategoryValue,true,true);
paramFirstCategory.options[i].selected=true;
}
else {
paramFirstCategory.options[i]=new Option(sFirstCategoryString.split("|")[i],sFirstCategoryStringValue.split("|")[i]);
}
}
}
if (navigator.appName=="Netscape"){
isNav=true
}
function FillSeccondCategory(paramFirstCategory, paramSeccondCategory, sDefaultSeccondCategory){
var sDefaultSeccondCategory, tempvar, tempvarvalue, sDefault

paramSeccondCategory.options.length=0
for(i=0;i<sSeccondCategoryArray[paramFirstCategory.selectedIndex].split("|").length;i++){
tempvar = sSeccondCategoryArray[paramFirstCategory.selectedIndex].split("|")[i];
tempvarvalue = sSeccondCategoryArrayValue[paramFirstCategory.selectedIndex].split("|")[i];

if(sDefaultSeccondCategory == tempvarvalue)
{
sDefault=true;
//if (navigator.appName=="Microsoft Internet Explorer"){paramSeccondCategory.focus();}
}
else {sDefault=false;}

if(sDefault)
{
paramSeccondCategory.options[i]=new Option(tempvar,tempvarvalue,sDefault,sDefault);
paramSeccondCategory.options[i].selected=true;
}
else {paramSeccondCategory.options[i]=new Option(tempvar,tempvarvalue);}
}
}
var sFirstCategoryString = "Select Category|IT Solutions|Marketing|Opportunities|Professional Services|The Branch"
var sFirstCategoryStringValue = "0|3|1|6|5|4"
var sSeccondCategoryArray = new Array()
var sSeccondCategoryArrayValue = new Array()
sSeccondCategoryArray[0]="Select Category"
sSeccondCategoryArrayValue[0]="0"

sSeccondCategoryArray[1]="Software|Web Site Design|Digital Mapping|Floorplan Software|Text Services|Pod Casts and Video Tours"
sSeccondCategoryArrayValue[1]="13|15|17|66|67|83"
sSeccondCategoryArray[2]="Photography|Virtual Tours|Surveyed Floorplans|Video Tours / Podcasts|Magazines|Property Portals|Mailers|Leaflet Distribution|Self-Sketch Floor Plans|Aerial Photography|Artist Impressions|Sale/Let Boards|Brochures / Stationary|Leaseplans"
sSeccondCategoryArrayValue[2]="1|2|3|61|55|10|54|50|59|35|62|45|47|81"
sSeccondCategoryArray[3]="Reseller Programs|Businesses For Sale|Franchise Opportunities|Recruitment"
sSeccondCategoryArrayValue[3]="60|28|29|30"
sSeccondCategoryArray[4]="Training and Courses|Surveyors|Conveyancing|Mortgage Services|Let Property Insurance|Home Information Packs|Inventory Services|Profesional Bodies|Tenant Checks|Property Auctions|Architects|Property Buyers|Credit Score Services"
sSeccondCategoryArrayValue[4]="23|24|25|51|63|65|75|76|77|78|79|80|84"
sSeccondCategoryArray[5]="Window Displays|Office Furniture|Signage|Trade Publications|Interior Design|Measuring Equipment|Events|Furniture and Furnishings|Telecoms and Internet"
sSeccondCategoryArrayValue[5]="18|20|22|58|70|71|72|73|74"


