var documentjsPathWeka = "../../weka/js/documentjs/";
var documentjsPathStd = "../js/documentjs/";
var documentcssPath = "../../weka/css/documentcss/";
var jsPathStd = "../../standard/js/";
document.write("<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"" + documentjsPathWeka + "wmshiSpanningLinks.js\" TYPE=\"text/javascript\" CHARSET=\"ISO-8859-1\"></SCRIPT>");
document.write("<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"" + jsPathStd + "shiFunction.js\" TYPE=\"text/javascript\" CHARSET=\"ISO-8859-1\"></SCRIPT>")
var sSearch = self.location.search;
if((sSearch.toLowerCase().indexOf("hhvar=") > -1) || (sSearch.toLowerCase().indexOf("q=") > -1))
{
    document.write("<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"" + documentjsPathStd + "hilitviajs.js\" TYPE=\"text/javascript\" CHARSET=\"ISO-8859-1\"></SCRIPT>");
    document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + documentcssPath + "hilit.css\" CHARSET=\"ISO-8859-1\"/>");
}
var sCSS = "";
if(sSearch.toLowerCase().indexOf("css=small") > -1)
{
    sCSS = "_small";
    document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + documentcssPath + "WEKA"+sCSS+".css\" CHARSET=\"ISO-8859-1\"></link>");
}
else if(sSearch.toLowerCase().indexOf("css=big") > -1)
{
    sCSS = "_big";
    document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"" + documentcssPath + "WEKA"+sCSS+".css\" CHARSET=\"ISO-8859-1\"></link>");
}
function onDocLoad()
{
   if(sSearch.toLowerCase().indexOf("printyourself=1") > -1)
   {
       self.focus();
       self.print();
       return;
   }
   if (typeof(jshilitondocload) == "function")
       jshilitondocload(false);
   return;
}
function doLink(isbn, alias, colanchor, htmlanchor)
{
    // debugger;
    var oTopWindow = getWebAppTop();
    
    oTopWindow.document.SHIparamForm.isbn.value 		= isbn;
    oTopWindow.document.SHIparamForm.alias.value		= alias;
    oTopWindow.document.SHIparamForm.colanchor.value		= colanchor;
    oTopWindow.document.SHIparamForm.htmlanchor.value		= htmlanchor;
    oTopWindow.document.SHIparamForm.invalidatesession.value 	= "false";
    oTopWindow.document.SHIparamForm.submit();
}
function doWMWebLink(isbn, docReqFP)
{
    var oTopWindow = getWebAppTop();
    
    oTopWindow.document.SHIparamForm.isbn.value	= isbn;
    oTopWindow.document.SHIparamForm.fn.value		= docReqFP;
    oTopWindow.document.SHIparamForm.invalidatesession.value 	= "false";
    oTopWindow.document.SHIparamForm.submit();
}
function doSHIWebLink(docReqFP)
{
    var oTopWindow = getWebAppTop();
    
    oTopWindow.document.SHIparamForm.fn.value = docReqFP;
    oTopWindow.document.SHIparamForm.invalidatesession.value 	= "false";
    oTopWindow.document.SHIparamForm.submit();
}

