//__initsoft
//ʼ
//һⶼԵñԪеıߺ
//************************************
//***********ַ*****************
//************************************
const SP		= "$$$$$";
const UseRegStr		= "(reg)";
//INIؼ
function ReplaceKey(s){
	if(s!=""){
		s=replace(s,"#13","\r");
		s=replace(s,"#10","\n");
		s=replace(s,"#space","");
		s=replace(s,"[S[[","");
		s=replace(s,"]]S]","");
	}
	return s;
}

//ַָ
function Split(SP1,source){
	var rs[0];
	var temp=source;
	var tmplen=1;
	var i;
	SetLength(rs, 1);
	for(i=pos(SP1, temp);i>0;i=pos(SP1,temp)){
		rs[tmplen-1]=ReplaceKey(copy(temp, 1, i - 1));
		deletestr(temp, 1, i+(length(SP1)-1));
		tmplen++;
		SetLength(rs, tmplen);
	}
	rs[tmplen-1]=ReplaceKey(temp);
	return rs;
}