
function cb_reset()
{var el=document.getElementsByName('dataSel');if(el==null)
return;for(var i=0;i<el.length;i++)
{switch(el[i].value)
{case'1':case'2':case'8':case'16':case'32':case'64':case'1048576':case'256':el[i].checked=true;break;default:el[i].checked=false;}}}
function cb_changed(e)
{var el=document.getElementsByName('dataSel');if(el!=null)
{var count=0;for(var i=0;i<el.length;i++)
{if(el[i].checked)
count++;if(count>8)
{alert('Please select at most eight data points');e.returnValue=false;if(e.preventDefault!=null)
e.preventDefault();return false;}}}
return true;}
function CustomizeView()
{var win=window.open('/quotes/customize.aspx','Customization','toolbar=0,status=0,menubar=0,width=600,height=420,scrollbars=1,resizable=1');}
function openLink(uuid,ticker)
{var link='http://video.msn.com/?mkt=en-us&brand=money&vid='+uuid+'&playlist=videoByTag:tag:money_top_investing:ns:MSNmoney_Gallery:mk:us:vs:1&from=MSNmoney_'+ticker+'&tab=s216';window.open(link,'','');}