/* STD_INCLUDE.JS */

/* ---------------------------------------------- DATA --------------------------- */

/* ---------------------------------------------- FUNCTIONS ---------------------- */

	//	Builds a 'mail to' string that is harder for some robots to harvest
	function doMail(mbox,po,args,strPrompt) {
		var txMail2 = "";
		var txAtSym = "%40";
		var txDotSym = "&2E";
		txMail2 = "<a href=\"";
		txMail2 += unescape("%6D%61") + unescape("%69%6C%74%6F") + unescape("%3A");
		txMail2 += mbox  + txAtSym + po;
		if(args != "") { txMail2 += "?" + args; }
		txMail2 += "\">" + strPrompt + "<\/a>";
		return(txMail2);
	}

	// Open a new 'standarised' window and load with the called URI
	function doNewWindow(newURL) {
		var newWindow = window.open(newURL,'With_A_Fly','dependent=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=600,height=375');
	}

	// Open a new 'standarised' window and load with the `Admin` page
	function doAdminWindow() {
		var newWindow = window.open('admin/index.asp','With_A_Fly','dependent=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=777,height=555');
	}

	// Control for 'paging display'
	function doStep(which) {
		//	DEBUG	//	alert("dostep(" + which + ")");
		document.myform.page.value = which;
		document.myform.submit();
	}
	
	// Hide 'Prev/Next' Controls
	function doHideControl(which) {
		objClick = document.getElementById("myTop" + which);
		objClick.style.visibility = "hidden";
		objClick = document.getElementById("myBottom" + which);
		objClick.style.visibility = "hidden";
	}

/* ---------------------------------------------- EOF ---------------------------- */
