<!-- 
function openWindow(theURL,winName,features) { // Open Pop Up
  window.open(theURL,winName,features);
}

function expandCollapse() { // expand/collapse layers
	for (var i=0; i<expandCollapse.arguments.length; i++) {
		var element = document.getElementById(expandCollapse.arguments[i]);
		element.style.display = (element.style.display == "none") ? "block" : "none";
	}
}

/*
  forum functions
  found and used graciously from: http://www.iceteks.com/articles.php/javascript/1
*/

//Variables for controlling opening and closing tags (function tag)
var b = 2;
var i = 2;
var u = 2;
var q = 2;
var c = 2;
var url = 2;
var email = 2;
var img = 2;

//Function for creating tags
function tag(v, tagadd, newbut, tagclose, oldbut, name) {
    if (eval(v)%2 == 0) {
        eval("window.document.editform."+name+".value = newbut;");
        var text = window.document.editform.text.value;
        window.document.editform.text.value = text + tagadd;
        window.document.editform.text.focus();
    } else {
        eval("window.document.editform."+name+".value = oldbut;");
        var text = window.document.editform.text.value;
        window.document.editform.text.value = text + tagclose;
        window.document.editform.text.focus();
    }
    eval(v+"++;");
}

//Function to confirm reset
function confirm_reset () {
	if(confirm("Click 'OK' to completely remove all text entered.\n\n Or click 'Cancel' to continue working on your post.")) {
		window.document.editform.text.value = '';
        window.document.editform.text.focus();
		return true;
	}
	else {
		return false;
	}
}

//Check the form submission for errors
function checkForm() {
	var text = document.editform.text;
	
	// Check to make sure post length is sensible
	if (text.value.length < 10) {
		alert("Message is too short (min. 10 characters)\n\n" + "Please go back and try again.");
		return false;
	}
	else {
		return true;
	}
}
//-->
