document.write("
");
document.write("
");
document.write("
");
document.write("csSearch by CGI scr"+"ipt.net
");
document.write("
");
document.write("
");
document.write("
");
document.write("
");
document.write("
");
document.write("
");
document.write("
");
document.write("
");
document.write("
");
document.write("var win=null;
");
document.write("function MyWindow\(mypage,myname,w,h,scroll,pos\){
");
document.write("var rndURL = \(1000*Math.random\(\)\);
");
document.write("if\(pos==\"random\"\){LeftPosition=\(screen.width\)?Math.floor\(Math.random\(\)*\(screen.width-w\)\):100;TopPosition=\(screen.height\)?Math.floor\(Math.random\(\)*\(\(screen.height-h\)-75\)\):100;}
");
document.write("if\(pos==\"center\"\){LeftPosition=\(screen.width\)?\(screen.width-w\)/2:100;TopPosition=\(screen.height\)?\(screen.height-h\)/2:100;}
");
document.write("else if\(\(pos!=\"center\" && pos!=\"random\"\) || pos==null\){LeftPosition=0;TopPosition=20}
");
document.write("settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
");
document.write("win=window.open\(mypage+'&rndURL='+rndURL,myname,settings\);
");
document.write("if\(win.focus\){win.focus\(\);}}
");
document.write("
");
document.write("function DoSearch\(\){
");
document.write("var mbool = \"AND\";
");
document.write("var mcase = \"Insensitive\";
");
document.write("if\(!document.cssearch.terms.value\){
");
document.write(" alert\(\"Error. Please enter something to search for\"\);
");
document.write(" return false;
");
document.write(" }
");
document.write("else{
");
document.write(" var URL = \"http://www.ncogtrains.com/cgi-scr"+"ipt/csSearch//csSearch.cgi?command=query&terms=\"+escape\(document.cssearch.terms.value\)+\"&mbool=\"+mbool+\"&mcase=\"+mcase;
");
document.write(" MyWindow\(URL,'query',600,400,'yes','center'\);
");
document.write(" return false;
");
document.write(" }
");
document.write("}
");
document.write("
");
document.write("
");
document.write("
");
document.write("
");