// =-=-=-=-=-=-= page utilities and display function isProductGreen(prodselix) { if (Product[prodselix].actsym.indexOf('G') >= 0) return 2; if (Product[prodselix].actsym.indexOf('g') >= 0) return 1; return 0; } function showProductACTSymbols(prodselix) { if (Product[prodselix].actsym.indexOf('A') >= 0) document.write( "\"ACT  "); else if (Product[prodselix].actsym.indexOf('a') >= 0) document.write( "\"ACT  "); if (Product[prodselix].actsym.indexOf('F') >= 0) document.write( "\"ACT  "); if (Product[prodselix].actsym.indexOf('C') >= 0) document.write( "\"ACT  "); if (Product[prodselix].actsym.indexOf('L') >= 0) document.write( "\"ACT  "); if (Product[prodselix].actsym.indexOf('P') >= 0) document.write( "\"ACT  "); } function showProductSpecs() { // show a listing of product specifications document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); document.write( ""); for (var j = 0; j < Product.length; j++) { var prodselix = j; // indirect as we may want to re-order the display later if (prodselix >= 0) { var prodname = Product[prodselix].name; var stdtext = Product[prodselix].standards; if (stdtext != "") { stdtext = stdtext.replace(/([^,])( )/g,"$1 "); } document.write( ""); document.write( ""); document.write( "" + "" + "" + "" + "" + ""); document.write( ""); document.write( ""); } } document.write( "
Yoma Textiles: Product Specifications
FabricPatternColor waysContentWidthRepeatDouble RubsStandards" + "" + "ACT Performance" + "" + "" + "" + "Green" + "" + "
"); document.write( ""); document.write( "" + prodname + ""); document.write( ""); document.write( "" + "#" + Product[prodselix].catnum + "" + Product[prodselix].colorways + "" + Product[prodselix].material + "" + Product[prodselix].width + " " + "" + ((Product[prodselix].repeat != "") ? Product[prodselix].repeat : "n/a") + ""+ ((Product[prodselix].dblrubs != "") ? Product[prodselix].dblrubs : "n/a") + ""+ stdtext + ""); showProductACTSymbols(prodselix); document.write( ""); if (isProductGreen(prodselix) > 0) { document.write( "\"green\""); } document.write( "
"); }