//name this window:
	window.name='main';

	function newwin() {
		window.open(document.location);
	}

 	//font functions
	function fontup(){
		document.location="/users/customizer.php?font=1&from="+document.location;
	}
	function fontdown(){
		document.location="/users/customizer.php?font=-1&from="+document.location;
	}
	function valit(){
		if(document.searchnav.terms.value==""){return false;} else {return true;}
	}
	function closeMenu(){
		document.getElementById('menucont').style.visibility='hidden';
		document.getElementById('menucont').style.position='absolute';
		document.getElementById('menutd').style.width='0%';
	}
	function showMenu(){
		document.getElementById('menucont').style.visibility='visible';
		document.getElementById('menucont').style.position='relative';
		document.getElementById('menutd').style.width='5%'
	}
	function printopen() {
		var locdoc=document.location+"";
		if(locdoc.indexOf('#')!=-1){
			culprit=locdoc.indexOf('#');
			locdoc=locdoc.substring(0,culprit);
		}
		if(locdoc.indexOf('?')==-1){
			window.open(locdoc+"?print=1");
		} else {
			window.open(locdoc+"&print=1");
		}
	}
	function openDepfoot() {
		winfoot=window.open('/abacus/display.php', 'Abacus','height=300,width=340,scrollbars=yes,resizable=yes');
	}

