// JavaScript Document

function goTip(to){
	currentTip += to;
	if(currentTip < 0) {
		currentTip = tipArray.length - 1;
	}else if(currentTip >= tipArray.length) {
		currentTip = 0;
	}
	textContent = tipArray[currentTip];
	//	document.all.tips = tipArray[currentTip];
	if(document.getElementById) {
		document.getElementById("tips").innerHTML = textContent;
	} else if (document.all) {
		document.all.tips.innerHTML = textContent;
	}
}

function openNewCat() {
	window.open("newcat.htm","size","toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes,left=300,top=300,screenx=300,screeny=300,width=300,height=150");
} 
