<!--
function wJump(targ) {
    var newURL = targ;
    var x = 550;
    var y = 400;
    var secPrefix = "";
    var wcfg = "Height=" + y + ",width=" + x +
        ",status=no,location=no,menubar=no,toolbar=no,resizable=no,scrollbars=yes";
    newUrl = secPrefix + newURL;
    newWin = window.open(newURL, "new", config=wcfg);
    newWin.focus();
}

function openPopUpNew(URL) {
	newWindow = window.open(URL,"popup","scrollbars,HEIGHT=450,WIDTH=644, resizable=yes");
  	newWindow.focus();
}


function CountWordsLeft(myForm, field, count, no_words) {
    var text=field.value + " ";
    if(no_words>0)
    {
        var iwhitespace = /^[^A-Za-z0-9]+/gi; // remove initial whitespace
        var left_trimmedStr = text.replace(iwhitespace, "");
        var na = rExp = /[^A-Za-z0-9]+/gi; // non alphanumeric characters
        var cleanedStr = left_trimmedStr.replace(na, " ");
        var splitString = cleanedStr.split(" "); 
        var word_count = splitString.length -1;
        count.value=no_words-word_count;
    }
}

// -->

