﻿// JScript File

function goSearch( format, keyword)
{

    sFormat = new String(format);

    sKeyword = new String (keyword);
    url = format.replace("{0}", sKeyword);
    
    if (url != "") {
        if ((parseInt(navigator.appVersion) == 2) && (navigator.appName == "Microsoft Internet Explorer"))
                top.location = url;
        else top.document.location = url;
    }
}


function goSearchEncyclopedia( format, keyword)
{

    sFormat = new String(format);
    sKeyword = new String (keyword);
    
    // replacing spaces with +
    sKeyword = sKeyword.replace(" ", "+");
    
    // add query string parameter value keyword in url
    url = sFormat.replace("{0}", sKeyword);
    
 
    if (url != "") {
        if ((parseInt(navigator.appVersion) == 2) && (navigator.appName == "Microsoft Internet Explorer"))
                top.location = url;
        else top.document.location = url;
    }
}


