
<!--
function openSecwin(url, ww, wh, sb)
{
	if (sb == "") sb="no";
	winopts = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=";
	winopts = winopts + sb + ",width=";
	winopts = winopts + ww + ",height=" + wh;
	actURL = url;

	secWin=window.open(actURL,"secwin",winopts);

  	window.secWin.focus();

}



function replChars(entry) {
out = "\"";
add = "";
temp = "" + entry.value;

while (temp.indexOf(out)>-1) {
pos= temp.indexOf(out);
temp = "" + (temp.substring(0, pos) + add + 
temp.substring((pos + out.length), temp.length));
}
entry.value = temp;
}

function highlightOpt(stylepassed, tableEle)
{
	
	optionSelected = tableEle.parentElement;
	optionSelected.className=stylepassed;

}

function CheckForm () {

	//Check for a word to search
	if (document.frmSiteSearch.search.value==""){
		alert("Please enter at least one keyword to search");
		document.frmSiteSearch.search.focus();
		return false;
	}
	
	return true
}


function makeArray(n){
    this.length = n;
    for (i=1;i<=n;i++){
        this[i]=0;
    }
    return this;
}


function displayDate(){
    var this_month = new makeArray(12);
    this_month[0]  = "Jan";
    this_month[1]  = "Feb";
    this_month[2]  = "Mar";
    this_month[3]  = "Apr";
    this_month[4]  = "May";
    this_month[5]  = "Jun";
    this_month[6]  = "Jul";
    this_month[7]  = "Aug";
    this_month[8]  = "Sep"; 
    this_month[9]  = "Oct";
    this_month[10] = "Nov";
    this_month[11] = "Dec";
    var today = new Date();
    var day   = today.getDate();
    var month = today.getMonth();
    var year  = today.getYear();
    if (year < 1900){
        year += 1900;
    }
    return(this_month[month]+" "+day+", "+year);
}
//-->

