function myNewSearch (input) {
if ( input != "" ) {
	if ( input.length > 1 ) {
		if ( input != "search text" ) {
			window.open(RELATIVE + "SCRIPTS/SEARCH.html" + "?" + input ,"searchWindow",
				"width=600,height=200,scrollbars=yes,resizable=yes,status=yes");
}}}}

window.name = "CCAmainWindow"


//this next function is used in the js code brought into MAIN.html. it creates stuff like:
//   <a href="PICTURE.HTM" 
//   onmouseover="return CSIShow('PrevBtn',1)" 
//   onmouseout="return CSIShow('PrevBtn',0)" 
//   onclick="this.href='CSIShow('PrevBtn',2);return CSButtonReturn()">
function myRollOver ( myTargetURL , myButtonName , myStuffToShowP )  { 
	document.write ('<a href="' + myTargetURL + '" '); 
	document.write ('onmouseover="return CSIShow(' + "'" + myButtonName + "'" + ',1)"');
	document.write ('onmouseout="return CSIShow(' + "'" + myButtonName + "'" + ',0)"');
	document.write ('onclick="');	
	document.write ('CSIShow(' + "'" + myButtonName + "'" + ',2);');
	document.write ('return CSButtonReturn()">');
	document.write (myStuffToShowP + '</a>');
}

function backSlash (inParm) {
	var outParm = inParm
	outParm = outParm.replace("\\","/");
	outParm = outParm.replace("\\","/");
	outParm = outParm.replace("\\","/");
	outParm = outParm.replace("\\","/");
	outParm = outParm.replace("\\","/");
	outParm = outParm.replace("\\","/");
	outParm = outParm.replace("\\","/");
	outParm = outParm.replace("\\","/");
	outParm = outParm.replace("\\","/");
	outParm = outParm.replace("\\","/");
	return ( outParm )
}

var inString = window.location.search.toUpperCase();			
//this prev is the search string
inString = inString.replace("?","");             				
//this prev removes the initial ? if there is one (indeed, removes all)

//next is the path to this file, allowing for anchor entries, searchs with slashes, case

var my_pathname = backSlash ( window.location.pathname )  //to get around microsoft's use of backslashes
var my_begin_path = window.location.href.substr(0,window.location.href.lastIndexOf(my_pathname))
var my_path_case = my_begin_path + my_pathname.substr(0,1+my_pathname.lastIndexOf("/"))
var my_path_up = my_path_case.toUpperCase()
//next is the file name with extension
var my_file_up = (my_pathname.substr(1+my_pathname.lastIndexOf("/"),999)).toUpperCase()
