home *** CD-ROM | disk | FTP | other *** search
- var g_TechArray = new Array();
- var g_SelectedTech = 0;
- var g_AllTechnologyText = "All";
- var g_selected = "selected";
-
- function MouseOver()
- {
- var FuncLabel;
-
- FuncLabel=window.event.srcElement;
- FuncLabel.className = "clsHI";
- }
-
- function MouseOut()
- {
- var FuncLabel;
-
- FuncLabel=window.event.srcElement;
- FuncLabel.className="clsNORM";
- }
-
- function sortFBData(skey)
- {
- try
- {
- var oNode = filters.XMLDocument.selectSingleNode("/xsl:stylesheet/xsl:template[@match=\"/TableEntries\"]/xsl:copy/xsl:apply-templates");
- if (oNode)
- {
- oNode.attributes(1).value = skey ;
- var vReturn = SampleTable.transformNodeToObject(filters.XMLDocument, SampleTableView.XMLDocument);
- }
- } catch(exception)
- {
- window.alert("Quick sort not supported on client\n must install msxml3.dll to enable this feature");
- }
- }
-
- function WriteColumnHeaders()
- {
- document.write("<th width=10><A href onclick=\"sortFBData('Technology')\" onmouseover='MouseOver()' onmouseout='MouseOut()'><Label title='Sort by : Technology'>Technology</Label></A></th>");
- document.write("<th width=10><A href onclick=\"sortFBData('SampleName')\" onmouseover='MouseOver()' onmouseout='MouseOut()'><Label title='Sort by : Sample'>Sample</Label></A></th>");
- document.write("<th width=10><A href onclick=\"sortFBData('Language')\" onmouseover='MouseOver()' onmouseout='MouseOut()'><Label title='Sort by : Language'>Language</Label></A></th>");
- document.write("<th><A href onclick=\"sortFBData('Description')\" onmouseover='MouseOver()' onmouseout='MouseOut()'><Center><Label title='Sort by : Description'>Description</Label></Center></A></th>");
- }
-
- function IsInArray(SrcArray, Value)
- {
- var ArrayLength = SrcArray.length - 1;
-
- while(ArrayLength >= 0)
- {
- if(SrcArray[ArrayLength--] == Value)
- return true;
- }
- return false;
- }
-
- function CalculateTechnologies()
- {
- try
- {
- var oNodeList = SampleTable.XMLDocument.selectNodes("/TableEntries/TableRow/Technology");
- var ii = 0;
- var jj = 0;
- var oNode;
-
- oNodeList.reset();
- g_TechArray[jj++] = g_AllTechnologyText;
- while(ii < oNodeList.length)
- {
- oNode = oNodeList.nextNode();
- if(!IsInArray(g_TechArray, oNode.text))
- g_TechArray[jj++] = oNode.text;
- ii++;
- }
- } catch(exception)
- {
- }
- }
- function FillInTechnologies()
- {
- CalculateTechnologies();
- var ArrayLength = 0;
- var varSelected = " ";
-
- while(ArrayLength < g_TechArray.length )
- {
- if(ArrayLength == 0)
- varSelected = g_selected;
- else
- varSelected = " ";
- document.write("<OPTION VALUE=" + ArrayLength + " " + varSelected + ">" + g_TechArray[ArrayLength]);
- ArrayLength++;
- }
- g_SelectedTech = 0;
- }
-
- var g_strTechnology="Technology";
-
- function FilterMembers(oTechnology)
- {
- try
- {
- g_SelectedTech = oTechnology.value;
-
- var oNode = filters.XMLDocument.selectSingleNode("/xsl:stylesheet/xsl:template[@match=\"/TableEntries\"]/xsl:copy/xsl:apply-templates[@select $ige$ \"TableRow\"]");
- if (oNode)
- {
- if(g_SelectedTech == 0)
- oNode.attributes(0).value = "TableRow";
- else
- oNode.attributes(0).value = "TableRow[Technology=\"" + g_TechArray[g_SelectedTech] + "\"]";
- sortFBData(oNode.attributes(1).value);
- }
- } catch(exception)
- {
- }
- }
-
-