
// open a new popup window
function apri(url)		{
	// new windows
	var siteWindowVar=open(url,"popupwin","toolbar=no,status=no,menubar=no,scrollbars=yes"
						+",resizable=no,location=no,directories=no,width=550,height=320");
	if (NetscapeNavigator||browserVer>=4)	{	siteWindowVar.focus();	siteWindowVar.focus();	}
}

// open a windows (no menubar and location)
function newWinNoNav(url)		{
	// new windows
	var siteWindowVar=open(url,"newwin","toolbar=yes,status=no,menubar=no,scrollbars=yes"
						+",resizable=yes,location=no,directories=no,width=800,height=450");
	if (NetscapeNavigator||browserVer>=4)	{	siteWindowVar.focus();	siteWindowVar.focus();	}
}



// get element by ID (with browser check)
function getObj(objID){
	if (!document.getElementById)	return null;	// not compatible
	//else
	return document.getElementById(objID);
}

// show and hide DIV
function alternateShow(divToShow,divToHide) {

	// hide
	if (divToHide!=null&&divToHide.style!=null) {
		divToHide.style.display = "none";
	}

	// show
	if (divToShow!=null&&divToShow.style!=null) {
		divToShow.style.display = "block";
	}
}
