//NEWS SCRIPT VERSION 1.3
//This is the java script that will handle all the news stuff
//This script is copyright by Stephan Soileau, and all rights
//are reserved.
//this is the news array
news = new Array(1);
//the number of news things
numnews = 0;

function newNews(Title,body,Name,Email,Date) {
        this.title = Title;
        this.body  = body;
        this.name  = Name;
        this.date  = Date;
        this.email = Email;
}
function AddNews(Title,body,Name,Email,date) {
        news[numnews] = new newNews(Title,body,Name,Email,date);
        numnews++;
}
function ListNews() {
        i = numnews;
		if(i > 1)
			 i = 1;
	while(i >= 0) {
	        document.write("<table border=1 cellspacing=3 cellpadding=3 bordercolor=#000000>");
	        document.write("<th bgcolor=#000000><font color=#CCCCCC>" + news[i].title + "</font></th><tr>");
                document.write("<td>" + news[i].body + "<br><hr>");
                document.write("<a href = mailto:" + news[i].email + ">" + news[i].name + "</a> " + news[i].date + "<br>");
                document.write("</td><tr>");
                document.write("</table><br>");
		i--;
        }
}
//so now here's the part where you add news
//format is AddNews(Title,Body,Name,Email,date);
//yay
//make sure you add new news under the old news.
AddNews("New Site up","Well this is the new lay out.I know I said a few days and it only took a few hours but hey no one ever comes here anyway so who cares? It'll still be a day or two on the new version of cpack so please wiat.Some parts of the site are still under construction so please be patient.","HotCheese","xyster@phreaker.net","June 18, 2003 1:31P.M. CST");
AddNews("New Tribes Pack","I got super bored and began work on a new tribes 1 script pack.It has yet to be named, but might wanna keep checking for more info on it.It should have all of the features of CPack, but be even faster.So we'll see what happens.","HotCheese","xyster@phreaker.net","August 03, 2003 12:31P.M. CST");
