function rendermodeChanged(mode, action)
{
    if (mode == "google") {
        document.searchform.onsubmit = search;
        document.searchform.action = '';
    }
    else {
        document.searchform.onsubmit = "";
        document.searchform.action = action;
    }
}

function search()
{
    searchString = document.searchform.q.value;
    document.searchform.action = '';
    document.searchform.reset;
    window.open("http://www.google.com/search?hl=nl&btnG=Google+zoeken&lr=&q="+searchString);
}