function WriteYearOptions(YearsAhead){
	  Now = new Date();
	  NowDay = Now.getDate();
	  NowMonth = Now.getMonth();
	  NowYear = Now.getYear();

	  if (NowYear < 2000) NowYear += 1900;

	  line = "";
	  for (i=0; i<YearsAhead; i++)
	  {
		if((NowYear-i) > 1998)
		{
		  line += "<OPTION>";
		  line += NowYear - i;
		}
	  }
	  return line;
	}

	function filterIndustryGroup(form) {
		var index = form.gicssector.selectedIndex;
		var gicssector = form.gicssector.options[index].value
        if (gicssector == "00") {
 		  form.industrygroup.disabled = true;
          form.industrygroup.length=1;
          form.industrygroup.options[0].text="-- Select Industry Group --";
		  form.industrygroup.options[0].value="";
		  form.industry.disabled = true;
		  form.industry.length=1
		  form.industry.options[0].text="-- Select Industry --";
		  form.industry.options[0].value="";
        } else if (gicssector == "10") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=1;
		  form.industrygroup.options[0].text="Energy";
		  form.industrygroup.options[0].value="1010";
		  filterIndustry(form);
		} else if (gicssector == "15") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=1;
		  form.industrygroup.options[0].text="Materials";
		  form.industrygroup.options[0].value="1510";
		  filterIndustry(form);
		} else if (gicssector == "20") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=4;
		  form.industrygroup.options[0].text="All";
		  form.industrygroup.options[0].value="";
		  form.industrygroup.options[1].text="Capital Goods";
		  form.industrygroup.options[1].value="2010";
		  form.industrygroup.options[2].text="Commercial & Professional Services";
		  form.industrygroup.options[2].value="2020";
		  form.industrygroup.options[3].text="Transportation";
		  form.industrygroup.options[3].value="2030";
		  filterIndustry(form);
		} else if (gicssector == "25") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=6;
		  form.industrygroup.options[0].text="All";
		  form.industrygroup.options[0].value="";
		  form.industrygroup.options[1].text="Automobiles & Components";
		  form.industrygroup.options[1].value="2510";
		  form.industrygroup.options[2].text="Consumer Durables & Apparel";
		  form.industrygroup.options[2].value="2520";
		  form.industrygroup.options[3].text="Consumer Services";
		  form.industrygroup.options[3].value="2530";
		  form.industrygroup.options[4].text="Media";
		  form.industrygroup.options[4].value="2540";
		  form.industrygroup.options[5].text="Retailing";
		  form.industrygroup.options[5].value="2550";
		  filterIndustry(form);
		} else if (gicssector == "30") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=4;
		  form.industrygroup.options[0].text="All";
		  form.industrygroup.options[0].value="";
		  form.industrygroup.options[1].text="Food & Staples Retailing";
		  form.industrygroup.options[1].value="3010";
		  form.industrygroup.options[2].text="Food, Beverage & Tobacco";
		  form.industrygroup.options[2].value="3020";
		  form.industrygroup.options[3].text="Household & Personal Products";
		  form.industrygroup.options[3].value="3030";
		  filterIndustry(form);
		 } else if (gicssector == "35") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=3;
		  form.industrygroup.options[0].text="All";
		  form.industrygroup.options[0].value="";
		  form.industrygroup.options[1].text="Health Care Equipment & Services";
		  form.industrygroup.options[1].value="3510";
		  form.industrygroup.options[2].text="Pharmaceuticals, Biotechnology & Life Sciences";
		  form.industrygroup.options[2].value="3520";
		  filterIndustry(form);
		 } else if (gicssector == "40") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=5;
		  form.industrygroup.options[0].text="All";
		  form.industrygroup.options[0].value="";
		  form.industrygroup.options[1].text="Banks";
		  form.industrygroup.options[1].value="4010";
		  form.industrygroup.options[2].text="Diversified Financials";
		  form.industrygroup.options[2].value="4020";
		  form.industrygroup.options[3].text="Insurance";
		  form.industrygroup.options[3].value="4030";
		  form.industrygroup.options[4].text="Real Estate";
		  form.industrygroup.options[4].value="4040";
		  filterIndustry(form);
		 } else if (gicssector == "45") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=4;
		  form.industrygroup.options[0].text="All";
		  form.industrygroup.options[0].value="";
		  form.industrygroup.options[1].text="Software & Services";
		  form.industrygroup.options[1].value="4510";
		  form.industrygroup.options[2].text="Technology Hardware & Equipment";
		  form.industrygroup.options[2].value="4520";
		  form.industrygroup.options[3].text="Semiconductors & Semiconductor Equipment";
		  form.industrygroup.options[3].value="4530";
		  filterIndustry(form);
		 } else if (gicssector == "50") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=1;
		  form.industrygroup.options[0].text="Telecommunication Services";
		  form.industrygroup.options[0].value="5010";
		  filterIndustry(form);
		} else if (gicssector == "55") {
		  form.industrygroup.disabled = false;
		  form.industrygroup.length=1;
		  form.industrygroup.options[0].text="Utilities";
		  form.industrygroup.options[0].value="5510";
		  filterIndustry(form);
		}
	}

	function filterIndustry(form) {
		var index = form.industrygroup.selectedIndex;
		var industrygroup = form.industrygroup.options[index].value
		//alert("index: " + index+" industrygroup: "+industrygroup);
		if (industrygroup == "0000") {
		  form.industry.length=1;
		  form.industry.options[0].text="-- Select Industry --";
		  form.industry.options[0].value="";
		} else if (industrygroup == "1010") {
		  form.industry.disabled = false;
		  form.industry.length=3;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Energy Equipment & Services";
		  form.industry.options[1].value="101010";
		  form.industry.options[2].text="Oil, Gas & Consumable Fuels";
		  form.industry.options[2].value="101020";
		} else if (industrygroup == "1510") {
		form.industry.disabled = false;
		  form.industry.length=6;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Chemicals";
		  form.industry.options[1].value="151010";
		  form.industry.options[2].text="Construction Materials";
		  form.industry.options[2].value="151020";
		  form.industry.options[3].text="Containers & Packaging";
		  form.industry.options[3].value="151030";
		  form.industry.options[4].text="Metals & Mining";
		  form.industry.options[4].value="151040";
		  form.industry.options[5].text="Paper & Forest Products";
		  form.industry.options[5].value="151050";
		} else if (industrygroup == "20") {
		  form.industry.disabled = true;
		  form.industry.length=1;		  
		  form.industry.options[0].text="-- Select Industry --";
		  form.industry.options[0].value="";
		} else if (industrygroup == "2010") {
		  form.industry.disabled = false;
		  form.industry.length=8;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Aerospace & Defense";
		  form.industry.options[1].value="201010";
		  form.industry.options[2].text="Building Products";
		  form.industry.options[2].value="201020";
		  form.industry.options[3].text="Construction & Engineering";
		  form.industry.options[3].value="201030";
		  form.industry.options[4].text="Electrical Equipment";
		  form.industry.options[4].value="201040";
		  form.industry.options[5].text="Industrial Conglomerates";
		  form.industry.options[5].value="201050";
		  form.industry.options[6].text="Machinery";
		  form.industry.options[6].value="201060";
		  form.industry.options[7].text="Trading Companies & Distributors";
		  form.industry.options[7].value="201070";
		} else if (industrygroup == "2020") {
		  form.industry.disabled = false;
		  form.industry.length=1;
		  form.industry.options[0].text="Commercial Services & Supplies";
		  form.industry.options[0].value="202010";
		} else if (industrygroup == "2030") {
		  form.industry.disabled = false;
		  form.industry.length=6;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Air Freight & Logistics";
		  form.industry.options[1].value="203010";
		  form.industry.options[2].text="Airlines";
		  form.industry.options[2].value="203020";
		  form.industry.options[3].text="Marine";
		  form.industry.options[3].value="203030";
		  form.industry.options[4].text="Road & Rail";
		  form.industry.options[4].value="203040";
		  form.industry.options[5].text="Transportation Infrastructure";
		  form.industry.options[5].value="203050";
		} else if (industrygroup == "25") {
		  form.industry.disabled = true;
		  form.industry.length=1;		  
		  form.industry.options[0].text="-- Select Industry --";
		  form.industry.options[0].value="";
		} else if (industrygroup == "2510") {
		  form.industry.disabled = false;
		  form.industry.length=3;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Auto Components";
		  form.industry.options[1].value="251010";
		  form.industry.options[2].text="Automobiles";
		  form.industry.options[2].value="251010";
		} else if (industrygroup == "2520") {
		  form.industry.disabled = false;
		  form.industry.length=4;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Household Durables";
		  form.industry.options[1].value="252010";
		  form.industry.options[2].text="Leisure Equipment & Products";
		  form.industry.options[2].value="252020";
		  form.industry.options[3].text="Textiles, Apparel & Luxury Goods";
		  form.industry.options[3].value="252030";
		} else if (industrygroup == "2530") {
		  form.industry.disabled = false;
		  form.industry.length=3;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Hotels Restaurants & Leisure";
		  form.industry.options[1].value="253010";
		  form.industry.options[2].text="Diversified Consumer Services";
		  form.industry.options[2].value="253020";
		} else if (industrygroup == "2540") {
		  form.industry.disabled = false;
		  form.industry.length=1;
		  form.industry.options[0].text="Media";
		  form.industry.options[0].value="254010";
		} else if (industrygroup == "2550") {
		  form.industry.disabled = false;
		  form.industry.length=5;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Distributors";
		  form.industry.options[1].value="255010";
		  form.industry.options[2].text="Internet & Catalog Retail";
		  form.industry.options[2].value="255020";
		  form.industry.options[3].text="Multiline Retail";
		  form.industry.options[3].value="255030";
		  form.industry.options[4].text="Specialty Retail";
		  form.industry.options[4].value="255040";
		} else if (industrygroup == "30") {
		  form.industry.disabled = true;
		  form.industry.length=1;		  
		  form.industry.options[0].text="-- Select Industry --";
		  form.industry.options[0].value="";
		} else if (industrygroup == "3010") {
		  form.industry.disabled = false;
		  form.industry.length=1;
		  form.industry.options[0].text="Food & Staples Retailing";
		  form.industry.options[0].value="301010";
		} else if (industrygroup == "3020") {
		  form.industry.disabled = false;
		  form.industry.length=4;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Beverages";
		  form.industry.options[1].value="302010";
		  form.industry.options[2].text="Food Products";
		  form.industry.options[2].value="302020";
		  form.industry.options[3].text="Tobacco";
		  form.industry.options[3].value="302030";
		} else if (industrygroup == "3030") {
		  form.industry.disabled = false;		  
		  form.industry.length=3;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Household Products";
		  form.industry.options[1].value="303010";
		  form.industry.options[2].text="Personal Products";
		  form.industry.options[2].value="303020";
		} else if (industrygroup == "35") {
		  form.industry.disabled = true;
		  form.industry.length=1;		  
		  form.industry.options[0].text="-- Select Industry --";
		  form.industry.options[0].value="";		 
		} else if (industrygroup == "3510") {
		  form.industry.disabled = false;
		  form.industry.length=3;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Health Care Equipment & Supplies";
		  form.industry.options[1].value="351010";
		  form.industry.options[2].text="Health Care Providers & Services";
		  form.industry.options[2].value="351020";
		} else if (industrygroup == "3520") {
		  form.industry.disabled = false;
		  form.industry.length=3;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Biotechnology";
		  form.industry.options[1].value="352010";
		  form.industry.options[2].text="Pharmaceuticals";
		  form.industry.options[2].value="352020";
		} else if (industrygroup == "40") {
		  form.industry.disabled = true;
		  form.industry.length=1;		  
		  form.industry.options[0].text="-- Select Industry --";
		  form.industry.options[0].value="";	
		} else if (industrygroup == "4010") {
		  form.industry.disabled = false;
		  form.industry.length=3;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Commercial Banks";
		  form.industry.options[1].value="401010";
		  form.industry.options[2].text="Thrifts & Mortgage Finance";
		  form.industry.options[2].value="401020";
		} else if (industrygroup == "4020") {
		  form.industry.disabled = false;
		  form.industry.length=4;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Diversified Financial Services";
		  form.industry.options[1].value="402010";
		  form.industry.options[2].text="Consumer Finance";
		  form.industry.options[2].value="402020";
		  form.industry.options[3].text="Capital Markets";
		  form.industry.options[3].value="402030";
		} else if (industrygroup == "4030") {
		  form.industry.disabled = false;
		  form.industry.length=1;
		  form.industry.options[0].text="Insurance";
		  form.industry.options[0].value="403010";
		} else if (industrygroup == "4040") {
		  form.industry.disabled = false;		 
		  form.industry.length=4;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Real Estate";
		  form.industry.options[1].value="404010";
		  form.industry.options[2].text="Real Estate Investment Trusts";
		  form.industry.options[2].value="404020";
		  form.industry.options[3].text="Real Estate Management & Development";
		  form.industry.options[3].value="404030";
		} else if (industrygroup == "45") {
		  form.industry.disabled = true;
		  form.industry.length=1;		  
		  form.industry.options[0].text="-- Select Industry --";
		  form.industry.options[0].value="";	  
		} else if (industrygroup == "4510") {
		  form.industry.disabled = false;
		  form.industry.length=4;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Internet Software & Services";
		  form.industry.options[1].value="451010";
		  form.industry.options[2].text="IT Services";
		  form.industry.options[2].value="451020";
		  form.industry.options[3].text="Software";
		  form.industry.options[3].value="451030";
		} else if (industrygroup == "4520") {
		  form.industry.disabled = false;
		  form.industry.length=6;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Communications Equipment";
		  form.industry.options[1].value="452010";
		  form.industry.options[2].text="Computers & Peripherals";
		  form.industry.options[2].value="452020";
		  form.industry.options[3].text="Electronic Equipment & Instruments";
		  form.industry.options[3].value="452030";
		  form.industry.options[4].text="Office Electronics";
		  form.industry.options[4].value="452040";
		  form.industry.options[5].text="Semiconductor Equipment & Products";
		  form.industry.options[5].value="452050";
		} else if (industrygroup == "4530") {
		  form.industry.disabled = false;		  
		  form.industry.length=1;
		  form.industry.options[0].text="Semiconductors & Semiconductor Equipment";
		  form.industry.options[0].value="453010";
		} else if (industrygroup == "5010") {
		  form.industry.disabled = false;
		  form.industry.length=3;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Diversified Telecommunication Services";
		  form.industry.options[1].value="501010";
		  form.industry.options[2].text="Wireless Telecommunication Services";
		  form.industry.options[2].value="501020";
		} else if (industrygroup == "5510") {
		  form.industry.disabled = false;
		  form.industry.length=6;
		  form.industry.options[0].text="All";
		  form.industry.options[0].value="";
		  form.industry.options[1].text="Electric Utilities";
		  form.industry.options[1].value="551010";
		  form.industry.options[2].text="Gas Utilities";
		  form.industry.options[2].value="551020";
  		  form.industry.options[3].text="Multi-Utilities";
		  form.industry.options[3].value="551030";
		  form.industry.options[4].text="Water Utilities";
		  form.industry.options[4].value="551040";
  		  form.industry.options[5].text="Independent Power Producers & Energy Traders";
		  form.industry.options[5].value="551050";
		}
	}

	function updatesubcate(form) {
	  var index = form.rectype.selectedIndex;
	  var type = form.rectype.options[index].value
	  if (type == "01") {
		  form.subtype.length=12;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Intention to Make a Takeover Offer";
		  form.subtype.options[1].value="01001";
		  form.subtype.options[2].text="Bidder's Statement - Off-market bid";
		  form.subtype.options[2].value="01002";
		  form.subtype.options[3].text="Target's Statement - Off-market bid";
		  form.subtype.options[3].value="01003";
		  form.subtype.options[4].text="Bidder's Statement - Market bid";
		  form.subtype.options[4].value="01004";
		  form.subtype.options[5].text="Target's Statement - Market bid";
		  form.subtype.options[5].value="01005";
		  form.subtype.options[6].text="Off-market bid offer document to bid class holders";
		  form.subtype.options[6].value="01006";
		  form.subtype.options[7].text="Directors' Statement re Takeover";
		  form.subtype.options[7].value="01007";
		  form.subtype.options[8].text="Variation of Takeover Bid";
		  form.subtype.options[8].value="01008";
		  form.subtype.options[9].text="Takeover - Other";
		  form.subtype.options[9].value="01009";
		  form.subtype.options[10].text="Supplementary Bidder's Statement";
		  form.subtype.options[10].value="01010";
		  form.subtype.options[11].text="Supplementary Target's Statement";
		  form.subtype.options[11].value="01011";
	  }
	  else if (type == "02") {
		  form.subtype.length=11;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Form 603 - Becoming a substantial shareholder";
		  form.subtype.options[1].value="02001";
		  form.subtype.options[2].text="Form 604 - Change in substantial share holding";
		  form.subtype.options[2].value="02002";
		  form.subtype.options[3].text="Form 605 - Ceasing to be a substantial shareholder";
		  form.subtype.options[3].value="02003";
		  form.subtype.options[4].text="Beneficial ownership - Part 6C.2";
		  form.subtype.options[4].value="02004";
		  form.subtype.options[5].text="Takeover update - Section 689 Notice ";
		  form.subtype.options[5].value="02005";
		  form.subtype.options[6].text="Security holder details - Other";
		  form.subtype.options[6].value="02006";
		  form.subtype.options[7].text="Section 205G Notice - Director's Interests";
		  form.subtype.options[7].value="02007";
		  form.subtype.options[8].text="Initial Directors Interest Notice";
		  form.subtype.options[8].value="02008";
		  form.subtype.options[9].text="Change of Directors Interest Notice";
		  form.subtype.options[9].value="02009";
		  form.subtype.options[10].text="Final Directors Interest Notice";
		  form.subtype.options[10].value="02010";
	 }
	  else if (type == "03") {
		  form.subtype.length=19;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Annual Report";
		  form.subtype.options[1].value="03001";
		  form.subtype.options[2].text="Top 20 Shareholders";
		  form.subtype.options[2].value="03002";
		  form.subtype.options[3].text="Preliminary - Final Statement";
		  form.subtype.options[3].value="03003";
		  form.subtype.options[4].text="Half Yearly Report";
		  form.subtype.options[4].value="03004";
		  form.subtype.options[5].text="Annual Report - confirmation of despatch";
		  form.subtype.options[5].value="03005";
		  form.subtype.options[6].text="Trust 6 month accounts";
		  form.subtype.options[6].value="03006";
		  form.subtype.options[7].text="Trust 12 month accounts";
		  form.subtype.options[7].value="03007";
		  form.subtype.options[8].text="Loan securities on issue";
		  form.subtype.options[8].value="03008";
		  form.subtype.options[9].text="Half Yearly Audit Review";
		  form.subtype.options[9].value="03009";
		  form.subtype.options[10].text="Half Yearly Directors Statement";
		  form.subtype.options[10].value="03010";
		  form.subtype.options[11].text="Full Year Accounts";
		  form.subtype.options[11].value="03011";
		  form.subtype.options[12].text="Full Year Audit Review";
		  form.subtype.options[12].value="03012";
		  form.subtype.options[13].text="Full Year Directors' Statement";
		  form.subtype.options[13].value="03013";
		  form.subtype.options[14].text="Periodic Reports - Other";
		  form.subtype.options[14].value="03014";
		  form.subtype.options[15].text="Half Year Accounts";
		  form.subtype.options[15].value="03015";
		  form.subtype.options[16].text="Monthly Net Tangible Asset Backing";
		  form.subtype.options[16].value="03016";
		  form.subtype.options[17].text="Concise Financial Report";
		  form.subtype.options[17].value="03017";
		  form.subtype.options[18].text="Daily Fund Update";
		  form.subtype.options[18].value="03018";
	 }
	  else if (type == "04") {
		  form.subtype.length=6;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="First Quarter Activities Report";
		  form.subtype.options[1].value="04001";
		  form.subtype.options[2].text="Second Quarter Activities Report";
		  form.subtype.options[2].value="04002";
		  form.subtype.options[3].text="Third Quarter Activities Report";
		  form.subtype.options[3].value="04003";
		  form.subtype.options[4].text="Fourth Quarter Activities Report";
		  form.subtype.options[4].value="04004";
		  form.subtype.options[5].text="Quarterly Activities Report - Other";
		  form.subtype.options[5].value="04005";
	 }
	 else if (type == "05") {
		  form.subtype.length=6;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;            
		  form.subtype.options[1].text="First Quarter Cashflow Report";
		  form.subtype.options[1].value="05001";
		  form.subtype.options[2].text="Second Quarter Cashflow Report";
		  form.subtype.options[2].value="05002";
		  form.subtype.options[3].text="Third Quarter Cashflow Report";
		  form.subtype.options[3].value="05003";
		  form.subtype.options[4].text="Fourth Quarter Cashflow Report";
		  form.subtype.options[4].value="05004";
		  form.subtype.options[5].text="Quarterly Cashflow Report - Other";
		  form.subtype.options[5].value="05005";
	 }
	  else if (type == "06") {
		  form.subtype.length=14;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Renounceable Issue";
		  form.subtype.options[1].value="06001";
		  form.subtype.options[2].text="Bonus Issue";
		  form.subtype.options[2].value="06002";
		  form.subtype.options[3].text="Placement";
		  form.subtype.options[3].value="06003";
		  form.subtype.options[4].text="Issues to the Public";
		  form.subtype.options[4].value="06004";
		  form.subtype.options[5].text="Capital Reconstruction";
		  form.subtype.options[5].value="06005";
		  form.subtype.options[6].text="New Issue Letter of Offer & Acc. Form";
		  form.subtype.options[6].value="06006";
		  form.subtype.options[7].text="Alternation to issued capital";
		  form.subtype.options[7].value="06007";
		  form.subtype.options[8].text="Non-Renounceable Issue";
		  form.subtype.options[8].value="06008";
		  form.subtype.options[9].text="Issued Capital - Other";
		  form.subtype.options[9].value="06009";
		  form.subtype.options[10].text="Disclosure Document";
		  form.subtype.options[10].value="06010";
		  form.subtype.options[11].text="On-Market Buy-Back Scheme";
		  form.subtype.options[11].value="06011";
		  form.subtype.options[12].text="Daily Share Buy-Back Notice";
		  form.subtype.options[12].value="06012";
		  form.subtype.options[13].text="Appendix 3B";
		  form.subtype.options[13].value="06013";
	   }
	 else if (type == "07") {
		  form.subtype.length=4;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Asset Acquisition";
		  form.subtype.options[1].value="07001";
		  form.subtype.options[2].text="Asset Disposal";
		  form.subtype.options[2].value="07002";
		  form.subtype.options[3].text="Other";
		  form.subtype.options[3].value="07003";
	 }
	  else if (type == "08") {
		  form.subtype.length=8;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Notice of Annual Meeting";
		  form.subtype.options[1].value="08001";
		  form.subtype.options[2].text="Notice of Extraordinary Meeting";
		  form.subtype.options[2].value="08002";
		  form.subtype.options[3].text="Results of Meeting";
		  form.subtype.options[3].value="08003";
		  form.subtype.options[4].text="Proxy Form";
		  form.subtype.options[4].value="08004";
		  form.subtype.options[5].text="Alternation to Notice of Meeting";
		  form.subtype.options[5].value="08005";
		  form.subtype.options[6].text="Notice of Meeting - Other";
		  form.subtype.options[6].value="08006";
		  form.subtype.options[7].text="Notice of General Meeting";
		  form.subtype.options[7].value="08007";
	   }
	  else if (type == "09") {
		  form.subtype.length=14;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Suspension from Official Quotation";
		  form.subtype.options[1].value="09001";
		  form.subtype.options[2].text="Reinstatement to Official Quotation";
		  form.subtype.options[2].value="09002";
		  form.subtype.options[3].text="Removal from Official List";
		  form.subtype.options[3].value="09003";
		  form.subtype.options[4].text="Stock Exchange Query";
		  form.subtype.options[4].value="09004";
		  form.subtype.options[5].text="Notice Pending";
		  form.subtype.options[5].value="09005";
		  form.subtype.options[6].text="Change in Basis of Quotation";
		  form.subtype.options[6].value="09006";
		  form.subtype.options[7].text="Trading Halt";
		  form.subtype.options[7].value="09007";
		  form.subtype.options[8].text="Admission to Official List";
		  form.subtype.options[8].value="09008";
		  form.subtype.options[9].text="Commencement of Official Quotation";
		  form.subtype.options[9].value="09009";
		  form.subtype.options[10].text="Stock Exchange Announcement - Other";
		  form.subtype.options[10].value="09010";
		  form.subtype.options[11].text="CAP Cancellation";
		  form.subtype.options[11].value="09011";
		  form.subtype.options[12].text="CAP Correction";
		  form.subtype.options[12].value="09012";
		  form.subtype.options[13].text="End of Day";
		  form.subtype.options[13].value="09013";
	  }
	  else if (type == "10") {
		  form.subtype.length=6;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Dividend Books Closing";
		  form.subtype.options[1].value="10001";
		  form.subtype.options[2].text="Dividend Pay Date";
		  form.subtype.options[2].value="10002";
		  form.subtype.options[3].text="Dividend Rate";
		  form.subtype.options[3].value="10003";
		  form.subtype.options[4].text="Dividend Alternation";
		  form.subtype.options[4].value="10004";
		  form.subtype.options[5].text="Dividend - Other";
		  form.subtype.options[5].value="10005";
	  }
	  else if (type == "11") {
		  form.subtype.length=3;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Progress Report";
		  form.subtype.options[1].value="11001";
		  form.subtype.options[2].text="Progress Report - Other";
		  form.subtype.options[2].value="11002";
	  }
	  else if (type == "12") {
		  form.subtype.length=15;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Director Appoinment/Resignation";
		  form.subtype.options[1].value="12001";
		  form.subtype.options[2].text="Details of Company Address";
		  form.subtype.options[2].value="12002";
		  form.subtype.options[3].text="Details of Registered Office Address";
		  form.subtype.options[3].value="12003";
		  form.subtype.options[4].text="Details of Share Registry Address";
		  form.subtype.options[4].value="12004";
		  form.subtype.options[5].text="Trustee Appointment/Resignation";
		  form.subtype.options[5].value="12005";
		  form.subtype.options[6].text="Trust Manager Appointment/Resignation";
		  form.subtype.options[6].value="12006";
		  form.subtype.options[7].text="Company Secretary/Appointment/Resignation";
		  form.subtype.options[7].value="12007";
		  form.subtype.options[8].text="Company Administration - Other";
		  form.subtype.options[8].value="12008";
		  form.subtype.options[9].text="Change of Balance Date";
		  form.subtype.options[9].value="12009";
		  form.subtype.options[10].text="Trust Deed";
		  form.subtype.options[10].value="12010";
		  form.subtype.options[11].text="Articles of Association";
		  form.subtype.options[11].value="12011";
		  form.subtype.options[12].text="Constitution";
		  form.subtype.options[12].value="12012";
		  form.subtype.options[13].text="Responsible Entity Appointment/Resignation";
		  form.subtype.options[14].value="12013";
	   }
	  else if (type == "13") {
		  form.subtype.length=4;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Announcement of Call";
		  form.subtype.options[1].value="13001";
		  form.subtype.options[2].text="Notice of Call to Shareholders";
		  form.subtype.options[2].value="13002";
		  form.subtype.options[3].text="Notice of Call - Other";
		  form.subtype.options[3].value="13003";
	   }
	  else if (type == "14") {
		  form.subtype.length=9;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Other";
		  form.subtype.options[1].value="14001";
		  form.subtype.options[2].text="CAP Test";
		  form.subtype.options[2].value="14100";
		  form.subtype.options[3].text="Internal";
		  form.subtype.options[3].value="14002";
		  form.subtype.options[4].text="Appendix 16A";
		  form.subtype.options[4].value="14004";
		  form.subtype.options[5].text="Year 2000 Advice";
		  form.subtype.options[5].value="14005";
		  form.subtype.options[6].text="Open Briefing";
		  form.subtype.options[6].value="14006";
		  form.subtype.options[7].text="Overseas Listing";
		  form.subtype.options[7].value="14011";
		  form.subtype.options[8].text="Standard and Poor's Announcement";
		  form.subtype.options[8].value="14012";
	   }
	  else if (type == "15") {
		  form.subtype.length=3;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Chairman's Address - Other";
		  form.subtype.options[1].value="15001";
		  form.subtype.options[2].text="Chairman's Address to Shareholders";
		  form.subtype.options[2].value="15002";
	   }
	  else if (type == "16") {
		  form.subtype.length=3;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Letter to Shareholders - Other";
		  form.subtype.options[1].value="16001";
		  form.subtype.options[2].text="Letter to Shareholders";
		  form.subtype.options[2].value="16002";
	   }
	  else if (type == "17") {
		  form.subtype.length=4;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="ASX Query - Other";
		  form.subtype.options[1].value="17001";
		  form.subtype.options[2].text="ASX Query";
		  form.subtype.options[2].value="17002";
		  form.subtype.options[3].text="Response to ASX Query";
		  form.subtype.options[3].value="17003";
	   }
	  else if (type == "18") {
		  form.subtype.length=8;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Other";
		  form.subtype.options[1].value="18001";
		  form.subtype.options[2].text="Warrant-Issuer Report";
		  form.subtype.options[2].value="18002";
		  form.subtype.options[3].text="Warrant Disclosure Document";
		  form.subtype.options[3].value="18003";
		  form.subtype.options[4].text="Warrant - Acceptance";
		  form.subtype.options[4].value="18004";
		  form.subtype.options[5].text="Warrant Trust Deed";
		  form.subtype.options[5].value="18005";
		  form.subtype.options[6].text="Warrant Distribution";
		  form.subtype.options[6].value="18006";
		  form.subtype.options[7].text="Warrant Adjustment";
		  form.subtype.options[7].value="18004";
	   }
	  else if (type == "19") {
		  form.subtype.length=6;
		  form.subtype.options[0].text=" All ";
		  form.subtype.options[0].value="";
          form.subtype.options[0].selected = true;
		  form.subtype.options[1].text="Commitments Test Entity - First Quarter Report";
		  form.subtype.options[1].value="19001";
		  form.subtype.options[2].text="Commitments Test Entity - Second Quarter Report";
		  form.subtype.options[2].value="19002";
		  form.subtype.options[3].text="Commitments Test Entity - Third Quarter Report";
		  form.subtype.options[3].value="19003";
		  form.subtype.options[4].text="Commitments Test Entity - Fourth Quarter Report";
		  form.subtype.options[4].value="19004";
		  form.subtype.options[5].text="Other";
		  form.subtype.options[5].value="19005";
	   }
	 else {		
	   form.subtype.length=1;
	   form.subtype.options[0].text="";
	   form.subtype.options[0].value="";
	   form.subtype.options[0].selected = true;
	   }
	}

function updateField(CategObj, FieldObj) {
   var category = CategObj.options[CategObj.selectedIndex].text;
   if (category == "Corporate Details") {
      //FieldObj.length = 27;
      FieldObj.length = 34;
      FieldObj.options[0].text = "All of Corporate Details";
      FieldObj.options[1].text = "Company Name";
      FieldObj.options[2].text = "Former Names";
      FieldObj.options[3].text = "ABN";
      FieldObj.options[4].text = "ACN";
      FieldObj.options[5].text = "Trading Status";
      FieldObj.options[6].text = "Delisted Date";
      FieldObj.options[7].text = "Principal Activity";
      FieldObj.options[8].text = "Head Office City";
      FieldObj.options[9].text = "Head Office State";
      FieldObj.options[10].text = "Registered Office City";
      FieldObj.options[11].text = "Registered Office State";
      FieldObj.options[12].text = "Share Registry";
      FieldObj.options[13].text = "ASX Home Exchange";
      FieldObj.options[14].text = "Overseas Exchange";
      FieldObj.options[15].text = "Accounts Close";
      FieldObj.options[16].text = "Annual General Meeting";
      FieldObj.options[17].text = "Latest Annual Report Lodgement Date";
      FieldObj.options[18].text = "Latest Preliminary Final Lodgement Date";
	  FieldObj.options[19].text = "Latest Interim Report Lodgement Date";
      FieldObj.options[20].text = "Auditors";
      FieldObj.options[21].text = "Auditor Sign-Off Partner";
      FieldObj.options[22].text = "Solicitors";
      FieldObj.options[23].text = "Bankers";
      FieldObj.options[24].text = "Responsible Entity";
      FieldObj.options[25].text = "Incorporated";
      FieldObj.options[26].text = "Dividend Reinv. Plan";
      FieldObj.options[27].text = "DRP Features";
      FieldObj.options[28].text = "No. of Employees";
      FieldObj.options[29].text = "Index Participation";
      FieldObj.options[30].text = "Market Capitalisation";
      FieldObj.options[31].text = "GICS Sector";
      FieldObj.options[32].text = "GICS Industry Group";
      FieldObj.options[33].text = "GICS/Metals & Mining";
   } else if (category == "Business Summary") {
      FieldObj.length = 1;
      FieldObj.options[0].text = "All of Business Summary";
   }else if (category == "Directors & Management") {
      FieldObj.length = 5;
      FieldObj.options[0].text = "Full Name";
      FieldObj.options[1].text = "Position Name";
      FieldObj.options[2].text = "Date Appointed";
      FieldObj.options[3].text = "Date Resigned";
      FieldObj.options[4].text = "Profile";
   } else if (category == "Directors & Management - Current") {
      FieldObj.length = 5;
      FieldObj.options[0].text = "Full Name";
      FieldObj.options[1].text = "Position Name";
      FieldObj.options[2].text = "Date Appointed";
      FieldObj.options[3].text = "Date Resigned";
      FieldObj.options[4].text = "Profile";
   } else if (category == "Directors - Previous") {
      FieldObj.length = 4;
      FieldObj.options[0].text = "Full Name";
      FieldObj.options[1].text = "Position Name";
      FieldObj.options[2].text = "Date Appointed";
      FieldObj.options[3].text = "Date Resigned";
   } else if (category == "Company History & Listing Details") {
      FieldObj.length = 5;
      FieldObj.options[0].text = "Company History";
      FieldObj.options[1].text = "Listing Details";
      FieldObj.options[2].text = "ASX Listing Date";
      FieldObj.options[3].text = "Offer Proceeds";
      FieldObj.options[4].text = "Float Underwriter";
   } else if (category == "Operational History") {
      FieldObj.length = 1;
      FieldObj.options[0].text = "All of Op. History";
   } else if (category == "Capital History") {
      FieldObj.length = 1;
      FieldObj.options[0].text = "All of Capital History";
   } else if (category == "Dividends") {
      FieldObj.length = 4;
      FieldObj.options[0].text = "Dividend Type";
      FieldObj.options[1].text = "Franked %";
      FieldObj.options[2].text = "Books Close Date";
      FieldObj.options[3].text = "Pay Date";
   } else if (category == "Top 20 Shareholders") {
      FieldObj.length = 2;
      FieldObj.options[0].text = "Name";
      FieldObj.options[1].text = "% Of Shares Held";
   } else if (category == "Substantial Shareholders") {
      FieldObj.length = 2;
      FieldObj.options[0].text = "Shareholder Name";
      FieldObj.options[1].text = "% Shares Held";
   } else if (category == "Distribution of Shareholders") {
      FieldObj.length = 1;
      FieldObj.options[0].text = "Total Number of Share Holders";
   } else if (category == "Directors Interests") {
      FieldObj.length = 6;
      FieldObj.options[0].text = "Directors Name";
      FieldObj.options[1].text = "Direct Shs";
      FieldObj.options[2].text = "Indirect Shares";
      FieldObj.options[3].text = "Options";
      FieldObj.options[4].text = "Note Comment";
      FieldObj.options[5].text = "Convertibles";
   } else if (category == "Extracts From Company Reports") {
      FieldObj.length = 1;
      FieldObj.options[0].text = "Extracts From Company Reports";
   } else if (category == "Controlled Entities") {
      FieldObj.length = 2;
      FieldObj.options[0].text = "Entity Name";
      FieldObj.options[1].text = "Country of Incorporation";
   } else if (category == "Segmental Information") {
      FieldObj.length = 2;
      FieldObj.options[0].text = "Geographic Segmentals";
      FieldObj.options[1].text = "Industry Segmentals";
   } else if (category == "Annoucement - Signal G") {
      
      FieldObj.length = 2;
      FieldObj.options[0].text = "Date";
      FieldObj.options[1].text = "Content";      
   } else if (category == "Financial Data") {      
      FieldObj.length = 4;
      FieldObj.options[0].text = "Revenue Excluding Interest";
      FieldObj.options[1].text = "Net Profit after Tax";
      FieldObj.options[2].text = "Total Assets";
      FieldObj.options[3].text = "Net Assets";      
   } else if (category == "Takeover Offers") {
      /*FieldObj.length = 11;
      FieldObj.options[0].text = "All Takeover Offer";
      FieldObj.options[1].text = "Offeror";
      FieldObj.options[2].text = "Date Announced";
      FieldObj.options[3].text = "Consideration";
      FieldObj.options[4].text = "Status";
      FieldObj.options[5].text = "Bidders Statement";
      FieldObj.options[6].text = "Targets Statement";
      FieldObj.options[7].text = "Closing Date";
      FieldObj.options[8].text = "Final Close Date";      
      FieldObj.options[9].text = "Date Unconditional";
      FieldObj.options[10].text = "Notes";  */    
	  FieldObj.length = 1;
      FieldObj.options[0].text = "Takeover Full Report";
      FieldObj.options[1].text = "";
   }
   FieldObj.selectedIndex = [0];
}
