
function GetTip(aTips, nLast) {
	var bFound = false;
	var nIndex = -1;
	var aTip = new Array(3);

	while (!bFound) {		
		nIndex = Math.round(Math.random() * (aTips.length - 1));	
		
		if (nIndex != -1 && nIndex != nLast) {
			bFound = true;			
		}	
	}
	
	aTip[0] = aTips[nIndex].substring(0, aTips[nIndex].indexOf('|'));
	aTip[1] = aTips[nIndex].substring(aTips[nIndex].indexOf('|') + 1, aTips[nIndex].length);	
	aTip[2] = nIndex;
	
	return aTip;
}

function DisplayTips(nNumber) {
	var aTips = new Array();
	var nLast = -1;
	var aTip = new Array(1);
	
	aTips[0] = "Harris Technology very quickly understand my problem. They know what I need ...|G. Porter, RMS";
	aTips[1] = "You're working with them, their not just trying to sell you something. It's a partnership, I use them ...|B. Browning, Subsdance";
	aTips[2] = "Harris make my job so much easier. They understand how our company works ...|Michelle, EMC";
	aTips[3] = "What I need when I go to a technology store, is I need confident, quick answers. That’s what I found with Harris Technology ...|S. Pelley, FB";
	aTips[4] = "Harris have got locations in North Sydney, North Ryde and Parramatta. It's not too far for me to pop over ...|T. Smith, Solving IT";
	aTips[5] = "They look after me, and they look after my clients, because the people I deal with are superb ...|P. Davis, TAS";
	
	for (i= 0; i < nNumber; i++) {
		aTip = GetTip(aTips, nLast);		
		
		document.write('<div class="Content" style="padding-bottom: 10px;"><p class="Only">"<i>' + aTip[0] + '</i>"</p><p style="margin: 0px;"><b>' + aTip[1] + '</b></p></div>');	
		
		if (i != nNumber - 1) {
			document.write('<div class="Divide"><img src="/images/common/div_column.jpg" alt="" /></div>');	
		}				
		
		nLast = aTip[2];
	}
}
