
function checkChange(text){
	var pattern = /-/g;
	var temp = text.search(pattern);
	return(temp);
}
var red = "<font color='#ff0000'>";
var grn = "<font color='#33cc33'>";
var cls = "</font>";

var uptick = "right\"><img src=\"http://app.quotemedia.com/quotetools/images/qm_up.gif\">&nbsp;";
var downtick = "right\"><img src=\"http://app.quotemedia.com/quotetools/images/qm_down.gif\">&nbsp;";
 





var qm_futures = {};
qm_futures.openDetail = function(s){
	var w = 530;
	var h = 360;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1';
	
	win = window.open("http://www.quotemedia.com/clients/futures/index_wmid101072.html?symbol=" + s, "FuturesQuote", winprops);

	if (parseInt(navigator.appVersion) >= 4) {
		win.focus();
	}
}

