﻿function OnSearchClick()
{
	var SearchText = document.getElementById("search_box").value;
    if (SearchText != "")
    {
        window.location = window.location.protocol + "//" + window.location.host +"/search.aspx?q=" + SearchText;
    }
}

function OnSearchFormSubmit( id )
{
	if( id == "search_box" )
	{
		OnSearchClick();
		return false;
	}

	return true;
}