$(document).ready(function(e){
jQuery.fn.center = function () {
    this.css("position","absolute");
    this.css("left", (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft() + "px");
    return this;
}
//$('.footer').center();

$('#txtSearch').keypress(function(e)
        {
            code= (e.keyCode ? e.keyCode : e.which);
            if (code == 13) {
				e.preventDefault();
				location.href = 'search_' + $('#txtSearch').attr('value') + '.html';
			}
            //e.preventDefault();
        });
});
function SearchKeyword()
{
	var searchKeyword = $('#txtSearch').attr('value');
    if(searchKeyword != "")
		location.href = 'search_' + searchKeyword + '.html';
        //location.href = 'Search_Results.html?search='+searchKeyword;
}

