// remote scripting library // (c) copyright 2005 modernmethod, inc var started; var typing; var memory=null; var body=null; var oldbody=null; // Remove the typing barrier to allow call() to complete function Search_doneTyping() { typing=false; } // Wait 500ms to run call() function Searching_Go() { setTimeout("Searching_Call()", 500); } // If the user is typing wait until they are done. function Search_Typing() { started=true; typing=true; setTimeout("Search_doneTyping()", 500); // I believe these are needed by IE for when the users press return? if (window.event) { if (event.keyCode == 13) { event.cancelBubble = true; event.returnValue = true; } } } // Set the body div to the results function Searching_SetResult( request ) { if ( request.status != 200 ) { alert("Error: " + request.status + " " + request.statusText + ": " + request.responseText); return; } var result = request.responseText; //body.innerHTML = result; t = document.getElementById("searchTarget"); if ( t == null ) { oldbody=body.innerHTML; body.innerHTML= '