var code = null;
/* ------------------------------------------------------
function loadVariables
	simple function which stores variables
------------------------------------------------------ */
function loadVariables(fSec,fMin,fHour,fDay,fMonth,fYear,fPrice,fChange,fPercent) {
	//Load the time and date into an array for easy sorting to allow for different date formats
	this.timeArray = new Array(fSec,fMin,fHour,fDay,fMonth,fYear);
	//Retrieve the date
	this.getDate = retrieveDate;
	this.price = fPrice;
	this.getPrice = retrievePrice;
	this.change = fChange;
	this.perc = fPercent;
	this.getChange = retrieveChange;
	}
function retrievePrice() {
	return this.price;
	}
function retrieveChange() {
	
	var val = this.change;
	if (val>0) return "<img class='nobreak' src='/html/gws/includes/investor/graphics/general/arrow_up.gif' width='9' height='9'>+" + val;
	else if (val<0) return "<img class='nobreak' src='/html/gws/includes/investor/graphics/general/arrow_down.gif' width='9' height='9'>" + val;
	return "<img class='nobreak' src='/html/gws/includes/general/graphics/general/sp.gif' width='9' height='9'>" + val;
	}
/* ------------------------------------------------------
function retrieveDate
	parent: loadVariables
	returns the date in a variety of formats depending on the arguments passed
------------------------------------------------------ */
function retrieveDate() {
	var returnStr="";
	//Loop through each argument passed to this function
	for(var i=0; i<retrieveDate.arguments.length; i++) {
		//Check to see if the argument is not a string
		if (retrieveDate.arguments[i].constructor.toString().indexOf("String")==-1) {
			//Check to see if timeArray[argument value] exists
			if (this.timeArray[retrieveDate.arguments[i]]) {
				//Append the timeArray[argument value] to the returnString
				returnStr+=this.timeArray[retrieveDate.arguments[i]].toString();
				}
			}
		//If the argument is a String then append the value to the returnString
		else  {
			returnStr+=retrieveDate.arguments[i].toString();
			}
		}
	return returnStr;
	}














