function getFirstThree(){ var str1 = new String("24/08/2018,16/08/2018,16/08/2018"); var str2 = new String("Robert Wells Upgrade,Graham Peacock Upgrade,Paul Laing Upgrade"); var str3 = new String("48b6d8c2-d12d-4493-a4bf-6f2af7fb58a5,23ae7aef-0998-4902-8d9c-0dbf5a4f722d,b45c724c-aaa4-471d-8b39-4d3440376fdb"); 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());