function trimAll(sString) 
{
while (sString.substring(0,1) == ' ')
      {sString = sString.substring(1, sString.length);}

while (sString.substring(sString.length-1, sString.length) == ' ')
      {sString = sString.substring(0,sString.length-1);}
return sString;
}


function parse_author(Article_Author_P)
{
var Article_Author_P2="";
var Article_Author_P3="";

//-- Extract name from anchor tag if there.... 
var firstclose = Article_Author_P.indexOf(">");
if (firstclose != -1) {
   var lastopen = Article_Author_P.lastIndexOf("<");
   Article_Author_P = Article_Author_P.slice(firstclose+1, lastopen-1);
}

Article_Author_P = trimAll(Article_Author_P);
Article_Author_P = Article_Author_P.replace(".","");
Article_Author_P = Article_Author_P.replace(",","");
Article_Author_P = Article_Author_P.replace("'","");

var Article_Author_arr = Article_Author_P.split(" ");	
for (i=0; i<Article_Author_arr.length; i++)
{
	Article_Author_arr[i] = trimAll(Article_Author_arr[i]);
	Article_Author_P2 = Article_Author_P2 + Article_Author_arr[i];
}
var Article_Author_arr = Article_Author_P2.split(",");
for (i=0; i<Article_Author_arr.length; i++)
{
	Article_Author_arr[i] = trimAll(Article_Author_arr[i]);
	Article_Author_P3 = Article_Author_P3 + Article_Author_arr[i];
}

 return Article_Author_P3;	
}

function parse_date(Article_Date_str)
{
	var Article_Date_parse = Date.parse(Article_Date_str);
	return Article_Date_parse;
}