function syncCompanyASX(oList, oForm) { var i, j; var companyList = oForm.fCompany; var asxList = oForm.fASX; var value = oList.options[oList.selectedIndex].value; for (i=0; i < companyList.options.length ; i ++) { if (companyList.options[i].value == value) { companyList.selectedIndex = i break; } } for (i=0; i < asxList.options.length ; i ++) { if (asxList.options[i].value == value) { asxList.selectedIndex = i } } } function publicationChange(oList, oForm) { var i,j; var value = oList.options[oList.selectedIndex].value; var companyList = oForm.fCompany; var channelId = oForm.fCategories; var channelName = oForm.channelName; if (value == -1) { channelName.value = ""; channelId.value = -1; return; } // value contains two ids, one for channel, the other for publication var ids = value.split("|"); channelName.value = ids[2]; channelId.value = ids[1]; } function searchChangeCategory(oList, oForm) { var i,j; var value = oList.options[oList.selectedIndex].value; var companyList = oForm.fCompany; var asxList = oForm.fASX; var marketList = oForm.fMarketSector; var publicationList = oForm.fPublication; var keywordsText = oForm.fKeywords; var publicationTag = document.getElementById("publicationTag"); if (publicationList.options != null) { while (publicationList.options.length != 0) { publicationList.options[0] = null; publicationList.size=0; } } newo = new Option("--- Please Select ---", -1, false, true); publicationList.options[0] = newo; publicationList.disabled = true; displayIn = 'inline'; publicationTag.innerHTML="
Publication
"; if (value == equitiesId){ publicationTag.innerHTML="Market Sector/Industry Type
"; } if (value == -1) { return; } buildPublication(publicationList, value, -1); publicationList.disabled = false; } function submitMetadataForm(oForm) { oForm.submit(); } function resetSearchForm(oForm, defaultMsg) { var companyList = oForm.fCompany; var asxList = oForm.fASX; var publicationList = oForm.fPublication; var catList = oForm.fCategories; var authorList = oForm.fAuthor; var keywordsTxt = oForm.fKeywords; var publicationTag = document.getElementById("publicationTag"); publicationTag.innerHTML="Publication
"; oForm.fPublishedDateTo.value=defaultMsg oForm.fPublishedDateFrom.value=defaultMsg catList.selectedIndex = 0 authorList.selectedIndex = 0 companyList.selectedIndex = 0 asxList.selectedIndex = 0 while (publicationList.options.length != 0) { publicationList.options[0] = null; publicationList.size=0; } newoption = new Option("--- Please Select ---", -1, false, true); publicationList.options[0] = newoption; publicationList.disabled = true keywordsTxt.value = "" } function resetMetadataForm(oForm) { oForm.fPublishedDate.value=""; oForm.channelName.value=""; oForm.fCategories.value=""; oForm.fPublication.selectedIndex = 0; oForm.fAuthor.selectedIndex = 0; oForm.fCompany.selectedIndex = 0; } function buildCompany(companyList, channelId, selectId) { for (i=0; i