function showHide(targetName) {
    if( document.getElementById ) { // NS6+
        target = document.getElementById(targetName);
    } else if( document.all ) { // IE4+
        target = document.all[targetName];
    }
    if( target ) {
        if( target.style.display == "none" ) {
            target.style.display = "block";
        } else {
            target.style.display = "none";
        }
    }
} 
/*	MENU IMAGES	*/
if (document.images) {
	m = new Array();
	m_o = new Array();
	for ( i=1; i<=8; i++ ) {
		m[i] = new Image();
		m[i].src = "images/m"+i+".gif";
		m_o[i] = new Image();
		m_o[i].src = "images/m"+i+"_o.gif";
	}
}
function rollOn(imgobj,n) {
  if (document.images) 
	imgobj.src =  m_o[n].src;
}
function rollOff(imgobj,n) {
  if (document.images)
	imgobj.src = m[n].src;
}
/*	OPENCHANNEL NEW WINDOW	*/
function clicker(url){
 if(navigator.userAgent.indexOf("MSIE") == -1){
  newwindow=window.open(url,'Report','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=yes,width=825,height=700,top=1,left=1');
  newwindow.focus();
 }else{
  window.open(url,'Report','toolbar=no,width=806,height=775,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=no,top=1,left=1');
 }
}
/*	SUBCRIPTION CHECK	*/
function chkEmail(thEmail) {
	rex=/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]*@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/;
	validity = rex.test(thEmail);
	if (!validity) {
		alert('This is not a valid email format.');
		return false;
	} else {
		return true;
	}
}

/*	SOURCES IMAGES & TEXT	*/
if (document.images) {
	g = new Array();
	g_o = new Array();
	for ( i=1; i<=4; i++ ) {
		g[i] = new Image();
		g[i].src = "images/g"+i+".gif";
		g_o[i] = new Image();
		g_o[i].src = "images/g"+i+"_o.gif";
	}
}
function onSource(imgobj,n) {
  if (document.images) 
	imgobj.src =  g_o[n].src;
}
function offSource(imgobj,n) {
  if (document.images)
	imgobj.src = g[n].src;
}
function goSource(n) {
	document.getElementById('sourceBoite').style.display='block';
	document.getElementById('sourceLogo').innerHTML='<a href="http://'+sourcesLink[n]+'" target="_blank"><img src="images/g'+n+'_o.gif" /></a>';
	document.getElementById('sourceText').innerHTML=sourcesText[n];
}
sourcesText = new Array('','<p class="sourcesText">Campbell R. Harvey is the J. Paul Sticht Professor of International Business at the Fuqua School of Business, Duke University. He is also a Research Associate of the National Bureau of Economic Research in Cambridge, Massachusetts.</p><p>Professor Harvey obtained his doctorate at the University of Chicago in business finance. His undergraduate studies in economics were conducted at the University of Toronto. He has served on the faculties of the Stockholm School of Economics, the Helsinki School of Economics, and the Graduate School of Business at the University of Chicago. He has also been a visiting scholar at the Board of Governors of the Federal Reserve System. He was recently awarded an honorary doctorate from Svenska Handelsh&ouml;gskolan in Helsinki.</p>&nbsp;', '<p class="sourcesText">The web&#39;s best financial glossary with more than 6,000 terms and 20,000 internal hyperlinks, visitors won&#39;t have to go anywhere else to find what they are looking for. Each definition is clear and concise, perfect for both new investors and experienced professionals. The InvestorWords.com glossary has earned the respect of top financial companies and publications while still drawing raves from the average investor.</p>&nbsp;', '<p class="sourcesText">Owned by Equade Internet Ltd, Investopedia is &quot;The Investing Education Site&quot;. The website boasts what is the most comprehensive financial encyclopedia on the web, tutorials on nearly ever aspect of the market, weekly educational articles on numerous subjects, and an index of frequently asked investing questions.</p><p>Investopedia was founded by &quot;The Investing Guys&quot; (Cory Wagner and Cory Janssen) in second quarter &#39;99. The idea for an investing education site came along after realizing the huge number of people who either don&#39;t invest or invest blindly with financial planners without understanding of what happens to their money.</p>&nbsp;', '<p class="sourcesText">Global-Investor.com offers an integrated suite of online investment resources to financiers including:</p><ul class="sourceList"><li><em>Bookshop</em>: 4,000 investment titles in our online financial bookshop, from publishers large and small in the UK, USA, Hong Kong and Australia.</li><li><em>Courses & Conferences</em>: We database financial events from over 500 different organisers worldwide, classify them by subject, and provide quick links which allow users to go straight to the events in their subject area.</li><li><em>Incademy.com</em>: We create and manage online courses for education centres for major brokers and banks who then offer the courses to their clients and staff.</li><li><em>Financial Glossary</em>: Contains over 2,500 dictionary definitions of financial terms and acronyms covering the stock, option, futures and capital markets, as well as personal finance.</li></ul>&nbsp;');
sourcesLink = new Array('','www.duke.edu/~charvey/Classes/wpg/glossary.htm','www.investorwords.com','www.investopedia.com','www.global-investor.com');