var newwin;
function launchwin(winurl,winname,winfeatures) {
    newwin = window.open(winurl,winname,winfeatures);
}

function jumpNow(theForm) {
                theForm.submit();
                return (true);
}
function checkLength(maxlen, inp, statusField){
    inp.onchange = inp.onkeyup;
    if (inp.value.length > maxlen) {
        statusField.value="Warning: " + (inp.value.length - maxlen) + " characters over the limit";
        return false;
    } 
    statusField.value= "" + (maxlen - inp.value.length) + " characters remaining";
    return true;
}

function dhtmlReplaceTextarea(fieldName, height, contextPath) {
    CKEDITOR.replace( fieldName,
        {
            toolbar : 'Basic'          
        });
}

function detectBrowserForCKEditor()
{
var browser=navigator.appName;
if (browser=="Microsoft Internet Explorer")
  {
  alert("Internet Explorer is not compatible with using the CKEditor on adding or editing the news item on this page.\nPlease close the browser and add or edit the news item using Firefox or Safari.");
  }
}