Test

Dette er en test på påmeldingssystem:

 

<script type="text/javascript">// <![CDATA[
    // Define default registration url
    var regurl = 'http://neste.pameldingssystem.no/registration/';
    var idvalue = '2';
    // Fetch current url
    var url = window.location.href;
    // Next, split the url by the ? to retrive querystring
    var qparts = url.split("?");
    // Check if there is a querystring
    if (qparts[1] != undefined) {
        // Next, split the querystring by the & and find the name-value pairs (nvp)
        var params  = qparts[1].split("&");
        // Loop through the nvps to find the RegistrationID
        var i = 0;
        while (i < params.length) {
            // Split the parameter-value pair by the = and find the value of the id
            var idparam = params[i].split("=");
            if (idparam[0] == 'RegistrationID') {
                idvalue = idparam[1];
                break;
            }
            i++;
        }
        // Add id value and querystring to iframe url
        regurl += idvalue + '/?' + qparts[1];
    } else if (idvalue.length > 0) {
        regurl += idvalue + '/';
    }
    // Create the iframe
    document.write('<iframe frameborder="0" title="Empatix påmeldingssystem" src="' + regurl);
    document.write('" width="100%" height="1500" name="Empatix påmeldingssystem" id="empatixIframe">');
    document.write('</iframe>');
// ]]>
// ]]></script>

Comments are closed.