    String.prototype.trim = function() {
    	return( this.replace(/^\s*([\s\S]*\S+)\s*$|^\s*$/,'$1') ); 
	}
    
    if (! parent.frames[1]) {
        document.write(jsNotes)
    } else {
    if (parent.frames[1].document.forminput == null) {
        document.write(jsNotes)
    } else {
        var searchStr = parent.frames[1].document.forminput.inputstr.value;
        if (searchStr.trim() == "") {
           document.write(jsNotes)
        } else {
           document.write('<font face="Arial" size="-1"><a href="javascript:history.go(-1)"><strong><< Back</strong></font></a><p>');
           document.write(highlight(jsNotes,searchStr));
        }  
    }
}
