//delineate function by Artie Kuhn//artie@artiekuhn.com////feed in text and a delineator and will return an array containing the elements as "textarray"	function delineate (text,delineator) {		textarray=new Array();		startcut=0;		var stop=false;		for (i=0; !stop; i++) {			endcut=text.indexOf(delineator);			if (endcut!=-1) {				snippet=text.substring(startcut,endcut);				text=text.substring(endcut+1,text.length);				textarray[i]=snippet			} else {				textarray[i]=text.substring(endcut+1,text.length);				stop=true			}		}		return(textarray);	}//BELOW IS TEST TEXT, REMOVE BEFORE USING!!//delineate("test|test2|test3", "|");//alert(textarray);