gecko-dev/xpfe/components/search/resources/search.js
1999-06-15 05:14:37 +00:00

41 lines
746 B
JavaScript

function loadPage(thePage)
{
var content="", results="";
if (thePage == "find")
{
content="find.xul";
results="findresults.xul";
}
else if (thePage == "internet")
{
content="internet.xul";
results="internetresults.xul";
}
else if (thePage == "mailnews")
{
content="about:blank";
results="about:blank";
}
else if (thePage == "addressbook")
{
content="about:blank";
results="about:blank";
}
if ((content != "") && (results != ""))
{
var contentFrame = document.getElementById("content");
if (contentFrame)
{
contentFrame.setAttribute("src", content);
}
var resultsFrame = document.getElementById("results");
if (resultsFrame)
{
resultsFrame.setAttribute("src", results);
}
}
return(true);
}