function changeTitle(text)
{
	document.getElementById("boxtitle").innerHTML = text;
}
	
function addNews(pagehref,pagetitle,text,date)
{
	pagehref = "index.php?page=" + pagehref;
	document.getElementById("newsbox").innerHTML += "<span class='newsdate'>" + date + "</span><BR><A HREF='" + pagehref + "'class='newslink'>" + pagetitle + "</A><BR>" + text + "<BR><hr width='70%' class='newshr' noshade>";
}

function addTitle(title)
{
document.getElementById("newsbox").innerHTML += '<div align="center" style="font-size:10pt;font-weight:bold;font-variant: small-caps;text-decoration:underline" id="boxtitle2">' + title +'</div>';
}

function addHTML(html2)
{
	document.getElementById("newsbox").innerHTML += html2;
}

function addLinks(pagehref,pagetitle)
{
	if(pagehref.indexOf("http://") == -1)
	{pagehref = "index.php?page=" + pagehref;}
	document.getElementById("newsbox").innerHTML += "<A HREF='" + pagehref + "' class='newslink'>" + pagetitle + "</A><BR>";
}

//style='width:100%;background:#3cb371;'
//need to turn whole bar into table, with rows to enable blocks for each link.

function hotscripts(id)
{
addHTML('<BR><form action="http://www.hotscripts.com/cgi-bin/rate.cgi" method="POST"><strong>Rate our script</strong><BR><input type="hidden" name="ID" value="'+id+'"><input type="hidden" name="external" value="1"><BR><select name="rate" size="1"><option value="5" selected>Excellent!</option><option value="4">Very Good</option><option value="3">Good</option><option value="2">Fair</option><option value="1">Poor</option></select><BR><input name="submit" type="submit" value="Vote"><BR><BR><strong>at <a href="http://www.hotscripts.com/Detailed/'+id+'.html" class="newslink">hotscripts.com</a>!</strong></form>');
}

function gamesBox()
{

}

function pageTitle(text)
{
	document.getElementById("titlebox").innerHTML = text;
}

