<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

  <head>
    <title>BKU Test</title>
    <style type="text/css">
	/*
      img {
        behavior: url("css/pngbehavior.htc");
      }
     */
    </style>
    <script language="javascript" type="text/javascript">
    <!--
      bkuuri='https://127.0.0.1:3496/https-security-layer-request';
      protocol='https:';
      if (location.protocol != 'https:') {
        bkuuri='http://127.0.0.1:3495/http-security-layer-request';
        protocol='http:';
      }
      var index = location.href.indexOf('/bku-erkennung_iframe.html');
      if( index != -1 )
        helperlocation = location.href.substr( 0, index );
      else
        helperlocation = protocol + '//' + 'demo.egiz.gv.at/bku-erkennung/v1.1';

      function setBKUAvailable(flag) {
        if (flag == true) {
          document.getElementById("statusimage").src = "img/sighw_green.gif";
        } else {
          document.getElementById("statusimage").src = "img/sighw_red.gif";
        }
      }
    -->
    </script>
  </head>

  <body style="background-color:transparent">
	<img id="statusimage" src="img/sighw_yellow.gif" style="width: 152px; height: 57px;" alt="status">
	<iframe name="iframeempty" width="0" height="0" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" src="bku-erkennung/bku-erkennung_empty.html" ></iframe>

    <script language="javascript" type="text/javascript">
	<!--
	  if (location.protocol == 'https:' || location.protocol == 'http:') {  // also keine lokalen Aufrufe
        document.write('<form name="bkucheckform" target="iframeempty" action="' + bkuuri +'" method="Post" enctype="application/x-www-form-urlencoded">');
        document.write('<input name="XMLRequest" type="hidden" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;NullOperationRequest xmlns=&quot;http://www.buergerkarte.at/namespaces/securitylayer/1.2#&quot;/&gt;" />');
        document.write('<input type="hidden" name="RedirectURL" value="'+ helperlocation + '/bku-erkennung/bku-erkennung_helper.html"/>');
        document.write('</form>');
        setBKUAvailable(false);
        document.bkucheckform.submit();
      }
    -->
    </script>
  </body>

</html>