/**************************************************
*submitSearchForm
****************************************************/
function submitSearchForm(host,form) {
        var q = form.qs.value;
        if(q.indexOf('?') != -1) q = q.substring(0, q.indexOf('?'));
        q = q.replace(/</g,"&lt;").replace(/>/g,"&gt;");
        q = q.replace(/&nbsp;/g, "-");
        q = q.replace(/ /g, "-");
        q = q.replace(/http:\/\//g, "");
        q = q.replace(/https:\/\//g, "");
        q = q.replace(/\//g, "-");
        if(q.charAt(0) == '-') q = q.substring(1);
        if(q.charAt(q.length-1) == '-') q = q.substring(0, q.length - 1);
	//alert(q);
        window.location = "http://"+host+"/" + encodeURIComponent(q) + "/";
        return true;
}

