	// check when a delete button has been pressed	function checkDelete(msg)   {
		if (confirm(msg + "\n\nIf you do, all associated information will be removed.")) return true;
		else return false;
		}
	function checkDeleteLink(url, msg)   {
		if (confirm(msg + "\n\nIf you do, all associated information will be removed.")) {
			window.location = url;
			}
		}

	function MM_reloadPage(init) {  //reloads the window if Nav4 resized		if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}		else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();		}


	// trims a string	function trim(s)   {
		l=s.length;	b=0; x=0;
		while (x<l&&b==0) { if (s.charAt(x)!=" ")  { b=1; } x++; }
		if (b==0) s="";  
		else { 
			b=0; s=s.substr(x-1); x=s.length-1;
			while(x>=0&&b==0) { if (s.charAt(x)!=" ")  { b=1; } x--; }	
			s=s.substr(0,x+2);
			}
		return s;
		}

	// abuse form 
	function checkAbuseForm(theform)   {
		var msg="";
		email=theform.email.value;
		if (email==""||((email.indexOf("@") == -1)||email.indexOf(".") == -1)) msg = "Your email address is either missing or in an invalid format...\n";
		if (trim(theform.abusetext.value) == "") msg = msg + "Your abuse message is blank...\n";
		if (msg != "")   {
			alert(msg);
			return false;
			}
		else return true;
		}
		
	function checkJoinCrusoe(theform)   {
		var msg="";
		if (trim(theform.info.value) == "") msg = msg + "Your information is blank...\n";
		if (msg != "")   {
			alert(msg);
			return false;
			}
		else return true;
		}
		
	function checkCrusoeInfo(theform)   {
		var msg="";
		if (trim(theform.extracrusoedata.value) == "") msg = msg + "The additional details are blank...\n";
		if (msg != "")   {
			alert(msg);
			return false;
			}
		else return true;
		}


