<!--
function FormatTextForCart (txt) 
//Function to force breaks in text data to display in cart when data has no spaces
	{
	var maxcnt=26;
	var temptxt = txt;
	var newtxt = "";
	var tempnewtxt = "";
	var morewords = true;
	var tempwrd="";
	var wrd = new Array();
	var i=0;

while	(morewords)											// Build word array
		{
		pos=temptxt.indexOf(" ");
		if (pos != -1) 									// Space character found
			{
			if (pos < maxcnt) 							
				{
				wrd[i] = temptxt.substring(0,pos);
				temptxt = temptxt.substring(pos+1,temptxt.length);
				i = i + 1;
				}
			else												// This word is more > 1 line's worth
				{
				tempwrd=temptxt.substring(0,pos);
				while (tempwrd.length != 0)
					{
					if (tempwrd.length<=maxcnt)
						{
						pos = tempwrd.length;
						wrd[i] = tempwrd.substring(0,pos);
						}
					else
						{
						pos = maxcnt;
						wrd[i] = tempwrd.substring(0,pos) + "-";
						}
					tempwrd = tempwrd.substring((pos),tempwrd.length);
					temptxt = temptxt.substring((pos),temptxt.length);
					i = i + 1;
					}
				}
			}
		else													// This is last word
			{
			tempwrd=temptxt;
			while (tempwrd.length != 0)
				{
				if (tempwrd.length<=maxcnt)
					{
					pos = tempwrd.length;
					wrd[i] = tempwrd.substring(0,pos);
					}
				else
					{
					pos = maxcnt;
					wrd[i] = tempwrd.substring(0,pos) + "-";
					}
				tempwrd = tempwrd.substring(pos,tempwrd.length);
				temptxt = temptxt.substring(pos,temptxt.length);
				i = i + 1;
				}
			morewords=false;
			}
		}
		for (i=0; i<wrd.length; i++)								// Format output
			{
			if ((tempnewtxt.length+1+wrd[i].length)<maxcnt) // if word fits on this line
				{
				if (i==0) 
					tempnewtxt = wrd[i];								// 1st word
				else
					tempnewtxt = tempnewtxt + " "  + wrd[i];	// Put space between words
				}
			else
				{
				newtxt = newtxt + tempnewtxt + "\n" + wrd[i];// New line b4 this word
				tempnewtxt = "";
				}
			}
		newtxt = newtxt + tempnewtxt;
		return newtxt;
		
	}													
// -->
