var chrPARAM0; // prevents error in version detection if (chrPARAM0==null) { // A version was released that did not need Parameters. That version is grandfather in here. var chrMONTHSARRAY = new Array(1,2,3,6,12,24,36); // Begin grandfathered version with no parameters; document.write(''); document.write('
Symbol(s): 
Duration: 

For more charting options or to look up symbols, click here.
'); } else { //Begin new version with parameters; var chrMONTHSARRAY = new Array(6,12,36,60); document.write('
'); document.write('
Now charting last 6 months of:
' + chrPARAM0 + '  ' + chrPARAM1 + '  ' + chrPARAM2 + '  ' + chrPARAM3 + '


Symbol: 
Duration: 
'); document.write('
'); } function chrCHANGEDISPLAY(){ document.images.chrDISPLAY.src = "http://charts.stockmaster.com/cgi-bin/c?ad=geocities-gadgetview&w=200&h=200&v=0&t=l&m=" + chrMONTHSARRAY[document.chrINPUT.chrDIR.selectedIndex] + "&s=" + document.chrINPUT.chrSYMBOLS.value; }