function GetMonth(intMonth)
{
   	var MonthArray = new Array("January", "February", "March",
                               "April", "May", "June",
                               "July", "August", "September",
                               "October", "November", "December") 
   	return MonthArray[intMonth] 	  	 
}
function getDateStr()
{
   	var today = new Date()
   	var year = today.getYear()
   	if(year<1000) year+=1900
   	var todayStr = GetMonth(today.getMonth()) + " " + today.getDate()
   	todayStr += ", " + year
   	return todayStr
}

function Indices(indice)
{
	var symbol;

	if(indice == 'TSEAca')
	{	symbol = 'TSEAca';	}
	else if (indice == 'SPX')
	{	symbol = 'SPX';		}
	else if (indice == 'JXca')
	{	symbol = 'JXca';	}
	else
	{	symbol = 'COMP';	}

	document.images.indice.src="http://themoneyreporter.redinews.com/tools/C04?queryid=QG31627&symbol=" + symbol;
}

//Generic Open-Window function
function open_window_ex(url, title, height, width, options) {
    var path = url;
    var opts = '';
	if(options == null || options == "null")
		opts = 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=yes, resizable=yes';
    else
		opts = options;
		
	opts += ',width=' + width;
    opts += ',height=' + height;
    mywin=window.open(path,title,opts);
}

//Generic Open-Window function
function open_news(url, title, height, width, options) {
    var path = url;
    var opts = '';
	if(options == null || options == "null")
		opts = 'toolbar=1, location=1, directories=1, status=1, menubar=1, scrollbars=yes, resizable=yes';
    else
		opts = options;
		
	opts += ',width=' + width;
    opts += ',height=' + height;
    mywin=window.open(path,title,opts);
}
