  /*****
   * Dynamic Search Form
   *
   * Joel Dare 2008-07-02
   *****/

  // Use the Google Web Search
  function useWeb(){

     document.getElementById('searchtype').value = "web";
	 document.getElementById('kslsearch').style.textDecoration = "none";
	 document.getElementById('websearch').style.textDecoration = "underline";
	 document.getElementById('keysearch').style.textDecoration = "none";

    // Update the client for Google Web Search
    var cx = document.getElementById('cx');
    cx.value = 'partner-pub-3771868546990559:fhkopy-oe3c';

    // Update the node for Google web search
    //var nid = document.getElementById('nid');
    //nid.value = '595';

    // Update the story for Google web search
    //var sid = document.getElementById('sid');
    //sid.value = '3759564';
     
  }
  
  // Use KSL's Google Mini Search
  function useKsl(type){
   
	 if (type=="keyword")
	 {
		document.getElementById('searchtype').value = "keyword";
		document.getElementById('kslsearch').style.textDecoration = "none";
		document.getElementById('websearch').style.textDecoration = "none";
		document.getElementById('keysearch').style.textDecoration = "underline";
	 }
	 else {
		document.getElementById('searchtype').value = "kslcom";
		document.getElementById('kslsearch').style.textDecoration = "underline";
		document.getElementById('websearch').style.textDecoration = "none";
		document.getElementById('keysearch').style.textDecoration = "none";
	 }
 
 /*
 
    // Update the client for Google Custom Search
    var client = document.getElementById('client');
    client.value = 'default_frontend';

    // Update the node for Google Custom Search
    var nid = document.getElementById('nid');
    nid.value = '208';

    // Setup the output field
    var output = document.createElement('INPUT');
        output.id = "output";
        output.type = "hidden";
        output.setAttribute('name','output');
        output.value = 'xml_no_dtd';

    // Setup the site field
    var site = document.createElement('INPUT');
        site.id = "site";
        site.type = "hidden";
        site.setAttribute('name','site');
        site.value = 'default_collection';
        
    // Setup the proxystylesheet field
    var proxystylesheet = document.createElement('INPUT');
        proxystylesheet.id = "proxystylesheet";
        proxystylesheet.type = "hidden";
        proxystylesheet.setAttribute('name','proxystylesheet');
        proxystylesheet.value = 'default_frontend';
        
    // Setup the filter field
    var filter = document.createElement('INPUT');
        filter.id = "filter";
        filter.type = "hidden";
        filter.setAttribute('name','filter');
        filter.value = 'p';  
    
    // Append the new values
    var search = document.getElementById('search');
    search.appendChild(output);
    search.appendChild(site);
    search.appendChild(proxystylesheet);
    search.appendChild(filter);

*/

  }
