function getFirstThree(){ var str1 = new String("05/06/2018,13/04/2017,09/05/2016"); var str2 = new String("Captain Henk Tjabringa retired from Air Hong Kong,Command Upgrade January 2017,Command Upgrade May 2016"); var str3 = new String("4f3e0daa-6fa1-410f-9d07-7e9b0d747ea5,8dd6c9e4-f4af-442f-84e9-51c3b07296af,9f2ec30f-6f66-440d-9a3e-b9b1e9ecfea6"); 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());