/**
* Check used for inside an IFrame. If content of IFrame is parsed, browser supports client side parsing and sets
* an global javascript IFrame variable from hasParser = false to hasParser = true.
*
* XML used: /staticxml/static_xslt_parse_check.xml
* XSLT used: /xslt/xslt_parse_check.jsp
*
**/

function decideServerOrClientSideParsing(xslt)
{
   if (frames['xslt-parse-check'].hasParser)
   {
      document.getElementById('searchButton').href += "&parse_server_side=false&mainXslt=" + xslt;
   }
   else
   {
      document.getElementById('searchButton').href += "&parse_server_side=true&mainXslt=" + xslt;
   }
}