﻿function DoSearch()
{
	window.location = "http://www.podcastspot.com/search?query=" + document.getElementById("ps_Siteright1_tbSearch").value;
}

function clickButtonSearch(e)
{  
    if(navigator.appName.indexOf("Netscape")>(-1))
    { 
        if (e.keyCode == 13)
        { 
            DoSearch();
            return false; 
        } 
    } 
    else if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
    { 
        if (event.keyCode == 13)
        { 
            DoSearch();
            return false; 
        } 
    }
    else
    {
        if (e.keyCode == 13)
        { 
            DoSearch();
            return false; 
        } 
    } 
} 

function DoSearch2(type)
{
	window.location = "http://www.podcastspot.com/search/" + type + "?query=" + document.getElementById("ps_mainContent_tbSearch").value;
}

function clickButtonSearch2(e, type)
{  
    if(navigator.appName.indexOf("Netscape")>(-1))
    { 
        if (e.keyCode == 13)
        { 
            DoSearch2(type);
            return false; 
        } 
    } 
    else if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
    { 
        if (event.keyCode == 13)
        { 
            DoSearch2(type);
            return false; 
        } 
    }
    else
    {
        if (e.keyCode == 13)
        { 
            DoSearch2(type);
            return false; 
        } 
    } 
} 