var body = document.getElementsByTagName('body'); //body[0].setAttribute('onload', 'bcfn_PopulatePulldown(document.getElementById("bcSymPulldown"), "fut")'); var futures = new Array(); futures['null'] = "Select A Commodity"; futures['DX'] = "U.S. Dollar Index" futures['DX'] = "U.S. Dollar Index" futures['B6'] = "British Pound" futures['B6'] = "British Pound" futures['D6'] = "Canadian Dollar" futures['D6'] = "Canadian Dollar" futures['J6'] = "Japanese Yen" futures['J6'] = "Japanese Yen" futures['S6'] = "Swiss Franc" futures['S6'] = "Swiss Franc" futures['E6'] = "Euro FX" futures['E6'] = "Euro FX" futures['A6'] = "Australian Dollar" futures['A6'] = "Australian Dollar" futures['M6'] = "Mexican Peso" futures['M6'] = "Mexican Peso" futures['N6'] = "New Zealand Dollar" futures['N6'] = "New Zealand Dollar" futures['T6'] = "South African Rand" futures['T6'] = "South African Rand" futures['L6'] = "Brazilian Real" futures['L6'] = "Brazilian Real" futures['BP'] = "British Pound (P)" futures['CD'] = "Canadian Dollar (P)" futures['JY'] = "Japanese Yen (P)" futures['SF'] = "Swiss Franc (P)" futures['EC'] = "Euro FX (P)" futures['AD'] = "Australian Dollar (P)" futures['MQ'] = "Mexican Peso (P)" futures['NE'] = "New Zealand Dollar (P)" futures['RA'] = "South African Rand (P)" futures['BR'] = "Brazilian Real (P)" futures['CL'] = "Crude Oil" futures['CL'] = "Crude Oil" futures['CL'] = "Crude Oil" futures['CL'] = "Crude Oil" futures['HO'] = "Heating Oil" futures['HO'] = "Heating Oil" futures['HO'] = "Heating Oil" futures['HO'] = "Heating Oil" futures['RB'] = "Gasoline RBOB" futures['RB'] = "Gasoline RBOB" futures['RB'] = "Gasoline RBOB" futures['RB'] = "Gasoline RBOB" futures['NG'] = "Natural Gas" futures['NG'] = "Natural Gas" futures['NG'] = "Natural Gas" futures['NG'] = "Natural Gas" futures['CB'] = "ICE Brent Crude Oil" futures['CB'] = "ICE Brent Crude Oil" futures['CB'] = "ICE Brent Crude Oil" futures['CB'] = "ICE Brent Crude Oil" futures['ZK'] = "Ethanol" futures['ZK'] = "Ethanol" futures['ZK'] = "Ethanol" futures['ZK'] = "Ethanol" futures['ZB'] = "T-Bond" futures['ZB'] = "T-Bond" futures['UD'] = "Ultra T-Bond" futures['UD'] = "Ultra T-Bond" futures['ZN'] = "10 Year T-Note" futures['ZN'] = "10 Year T-Note" futures['ZF'] = "5 Year T-Note" futures['ZF'] = "5 Year T-Note" futures['ZT'] = "2 Year T-Note" futures['ZT'] = "2 Year T-Note" futures['SR'] = "10-Year Swaps" futures['SR'] = "10-Year Swaps" futures['SA'] = "5-Year Swaps" futures['SA'] = "5-Year Swaps" futures['ZQ'] = "30 Day Fed Funds" futures['ZQ'] = "30 Day Fed Funds" futures['GE'] = "Eurodollar" futures['GE'] = "Eurodollar" futures['US'] = "T-Bond (P)" futures['UL'] = "Ultra T-Bond (P)" futures['TY'] = "10 Year T-Note (P)" futures['FV'] = "5 Year T-Note (P)" futures['TU'] = "2 Year T-Note (P)" futures['NI'] = "10-Year Swaps (P)" futures['NJ'] = "5-Year Swaps (P)" futures['FF'] = "30 Day Fed Funds (P)" futures['ED'] = "Eurodollar (P)" futures['ZW'] = "Wheat" futures['ZW'] = "Wheat" futures['ZW'] = "Wheat" futures['ZC'] = "Corn" futures['ZC'] = "Corn" futures['ZC'] = "Corn" futures['ZS'] = "Soybeans" futures['ZS'] = "Soybeans" futures['ZS'] = "Soybeans" futures['ZM'] = "Soybean Meal" futures['ZM'] = "Soybean Meal" futures['ZM'] = "Soybean Meal" futures['ZL'] = "Soybean Oil" futures['ZL'] = "Soybean Oil" futures['ZL'] = "Soybean Oil" futures['ZO'] = "Oats" futures['ZO'] = "Oats" futures['ZR'] = "Rough Rice" futures['ZR'] = "Rough Rice" futures['KE'] = "KCBT Wheat" futures['KE'] = "KCBT Wheat" futures['MW'] = "Spring Wheat" futures['MW'] = "Spring Wheat" futures['RS'] = "Canola" futures['RS'] = "Canola" futures['WH'] = "Wheat (P)" futures['CH'] = "Corn (P)" futures['SH'] = "Soybeans (P)" futures['SM'] = "Soybean Meal (P)" futures['BO'] = "Soybean Oil (P)" futures['OH'] = "Oats (P)" futures['RR'] = "Rough Rice (P)" futures['KW'] = "KCBT Wheat (P)" futures['ES'] = "Mini S&P 500 Index" futures['ES'] = "Mini S&P 500 Index" futures['NQ'] = "E-Mini Nasdaq" futures['NQ'] = "E-Mini Nasdaq" futures['YM'] = "Mini-Sized Dow" futures['YM'] = "Mini-Sized Dow" futures['RJ'] = "E-Mini Russell 2000" futures['RJ'] = "E-Mini Russell 2000" futures['EW'] = "E-Mini S&P Midcap" futures['EW'] = "E-Mini S&P Midcap" futures['SP'] = "S&P 500 Index" futures['ND'] = "Nasdaq 100" futures['DJ'] = "Dow Industrials" futures['ZD'] = "Dow Industrials (E)" futures['PC'] = "E-Mini SmallCap 600" futures['CI'] = "Continuous CRB Index" futures['VI'] = "S&P 500 VIX" futures['LE'] = "Live Cattle" futures['LE'] = "Live Cattle" futures['LE'] = "Live Cattle" futures['GF'] = "Feeder Cattle" futures['GF'] = "Feeder Cattle" futures['GF'] = "Feeder Cattle" futures['HE'] = "Lean Hogs" futures['HE'] = "Lean Hogs" futures['HE'] = "Lean Hogs" futures['DL'] = "Class III Milk" futures['DL'] = "Class III Milk" futures['LC'] = "Live Cattle (P)" futures['LC'] = "Live Cattle (P)" futures['LC'] = "Live Cattle (P)" futures['FC'] = "Feeder Cattle (P)" futures['FC'] = "Feeder Cattle (P)" futures['FC'] = "Feeder Cattle (P)" futures['LH'] = "Lean Hogs (P)" futures['LH'] = "Lean Hogs (P)" futures['LH'] = "Lean Hogs (P)" futures['DA'] = "Class III Milk (P)" futures['DA'] = "Class III Milk (P)" futures['GC'] = "Gold" futures['GC'] = "Gold" futures['GC'] = "Gold" futures['SI'] = "Silver" futures['SI'] = "Silver" futures['SI'] = "Silver" futures['HG'] = "High Grade Copper" futures['HG'] = "High Grade Copper" futures['HG'] = "High Grade Copper" futures['PL'] = "Platinum" futures['PL'] = "Platinum" futures['PA'] = "Palladium" futures['PA'] = "Palladium" futures['YG'] = "Mini-Sized Gold" futures['YG'] = "Mini-Sized Gold" futures['YI'] = "Mini-Sized Silver" futures['YI'] = "Mini-Sized Silver" futures['CT'] = "Cotton #2" futures['CT'] = "Cotton #2" futures['OJ'] = "Orange Juice" futures['OJ'] = "Orange Juice" futures['KC'] = "Coffee" futures['KC'] = "Coffee" futures['SB'] = "Sugar #11" futures['SB'] = "Sugar #11" futures['CC'] = "Cocoa" futures['CC'] = "Cocoa" futures['SD'] = "Sugar #16" futures['SD'] = "Sugar #16" futures['LS'] = "Lumber" futures['LS'] = "Lumber" var stocks = new Array(); stocks['null'] = "Select A Stock"; stocks['AAPL'] = "Apple, Inc."; stocks['RIMM'] = "Research In Motino"; stocks['INTC'] = "Intel Corp."; stocks['WMT'] = "WalMart Stores"; stocks['KO'] = "CocaCola Co."; stocks['XOM'] = "Exxon Mobil"; stocks['INFY'] = "Infosys Technologies"; stocks['RDY'] = "Dr. Reddy's Lab"; stocks['TTM'] = "Tata Moters Inc."; stocks['TCL'] = "Tata Comm."; stocks['SLT'] = "Sterlite Ind. Ltd."; stocks['SAY'] = "Satyam Commputer Serv."; stocks['IBN'] = "Icici Bk. Ltd."; stocks['HDB'] = "John Hancock Tax Adv."; function bcfn_CheckDomain() { var d = bcfn_GetDomain(); if ((d == 'barchart') || (d == 'jaypeefutures') || (d == 'jaypeeusa') || (d == 'gate39media')) return true; else return false; } function bcfn_GetDomain() { var s = document.domain; s = s.toLowerCase(); if (s.substring(0, 7) == 'http://') { s = s.substring(7); } var ary1 = s.split('/'); var ary2 = ary1[0].split('.'); var d = ''; if ((ary2[ary2.length - 1] == 'com') || (ary2[ary2.length - 1] == 'org') || (ary2[ary2.length - 1] == 'net') || (ary2[ary2.length - 1] == 'edu') || (ary2[ary2.length - 1] == 'gov')) { if (ary2.length > 1) d = ary2[ary2.length - 2]; } else { if (ary2.length > 2) d = ary2[ary2.length - 3]; } return d; } function bcfn_GetQuote2(text, pulldown, futstk){ var sym; if(text != ""){ sym = text; }else{ sym = pulldown; } var loc; for(i = 0; i < futstk.length; i++){ if(futstk[i].checked){ if(futstk[i].value == 'fut'){ loc = 'http://www.jaypeeusa.com/TradingTools/QuotesCharts.aspx'; }else if(futstk[i].value == 'stk'){ loc = 'http://www.jaypeeusa.com/TradingTools/equities.aspx'; } } } document.location.href = loc + "?page=quote&sym=" + sym; } function bcfn_FormClear(){ document.getElementById('bcSymText').value = ''; } function bcfn_PopulatePulldown(pulldown, type){ if(type == 'fut'){ var selectlist = futures; }else{ var selectlist = stocks; } while(pulldown.hasChildNodes()){ pulldown.removeChild(pulldown.lastChild); } for(temp in selectlist){ var optn = document.createElement("OPTION"); optn.innerHTML = selectlist[temp]; optn.value = temp; pulldown.appendChild(optn); } } if (bcfn_CheckDomain()) { document.write("
\n"); document.write(" \n"); document.write(" \n"); document.write(" \n"); document.write(" \n"); document.write(" \n"); document.write(" \n"); document.write(" \n"); document.write(" \n"); document.write(" \n"); document.write("
\n"); document.write(" \n"); document.write(" \n"); document.write(" \n"); document.write(" \n"); document.write(" "); document.write("
\n"); document.write(" Futures   Stocks\n"); document.write("
\n"); document.write("
\n"); bcfn_PopulatePulldown(document.getElementById("bcSymPulldown"), "fut"); } else { document.write('
!!!Unauthorized Access!!!
'); }