function openWindow(theURL,winName, features) { //v2.0
  	newwindow = window.open(theURL,winName,features);
	if (window.focus) {newwindow.focus()}
}

function CheckLength(maxLength) {

	var charLeft = maxLength - window.event.srcElement.value.length;
	
	document.getElementById("chars").innerHTML = "" + charLeft;	

	if (window.event.srcElement.value.length >= maxLength+1) {
		window.event.srcElement.value = window.event.srcElement.value.substring(0, maxLength);
		return false; 
	}
}

function trackclick(id) {
    if(document.images){ 
        (new Image()).src="trackclick.php?forumID="+id; 
    } 
    return true;
}
