<!-- 
function newWindow(strPage, winWidth, winHeight){
    imageWind = window.open(strPage,'PopupWindow','resizable=yes,status=yes,scrollbars=yes,toolbar=no,Width=' + winWidth + ',Height=' + winHeight)
    imageWind.focus()
}

function textCounter(field,cntfield,maxlimit) {
    if (field.value.length > maxlimit) {// if too long...trim it! 
        field.value = field.value.substring(0, maxlimit);
    }
    else {
        cntfield.value = maxlimit - field.value.length;
    }
}

function FormSubmit(theForm) {

	var i;
	for (i=0; i<theForm.elements.length; i++) {
		if ((theForm.elements[i].type == 'submit') || (theForm.elements[i].type == 'button'))  {
			theForm.elements[i].disabled = true;
		}
	}
	theForm.submit();
	FormSubmit = fn_Nothing();
	return false;

}

function fn_Nothing() {
	return false;
}	

function rememberLogin(theForm) {
	var strMessage = "If you tick this box, you will not need to login to the site from this computer. \n\nDon't tick this unless you are the only person who has access to this computer. \n\nNOTE: You can disable this feature at any time by logging out."
    if (theForm.rememberlogin.checked) {
        if (!confirm(strMessage)) {
            theForm.rememberlogin.checked = false;
        }
    }
}

function textCounter(field,cntfield,maxlimit) {
    if (field.value.length > maxlimit) {// if too long...trim it! 
        field.value = field.value.substring(0, maxlimit);
    }
    else {
        cntfield.value = maxlimit - field.value.length;
    }
}


 -->
