function getFirstThree(){ var str1 = new String("13/04/2017,09/05/2016,12/10/2015"); var str2 = new String("Command Upgrade January 2017,Command Upgrade May 2016,WIA Event"); var str3 = new String("8dd6c9e4-f4af-442f-84e9-51c3b07296af,9f2ec30f-6f66-440d-9a3e-b9b1e9ecfea6,3457807b-f494-4967-8bdb-57ee544fa906"); var styles = new Array("newstabledeco", "newstabledeco", "newstabledecoEnd"); var str = ""; if (str1 != ""){ var dates = str1.split(","); var titles = str2.split(","); var ids = str3.split(","); for (var i=0; i"; str += ""; str += " "; str += ""+dates[i]+"
"; str += titles[i]+"
"; str += "Read more...
"; str += " "; str += ""; str += ""; } str +="" } return str; } //document.write(getFirstThree());