﻿
    function Search(txtSearch)
    {
        if (txtSearch.value != "") 
        {
            var strAction = "/Soegeresultat.aspx?searchtext=" + txtSearch.value;
            window.location = strAction;
            return false; // Stopper form action
        }
    
    }
    
    function SearchKeyPressed(event, txtSearch)
    {
        if (event.keyCode == 13) // [Enter] has been pressed inside txtSearch
        { 
            Search(txtSearch);
            return false;
        }
    }

    function Play(file, playerName) {
        document.write("<div id=\"" + playerName + "\"><a href=\"http://www.macromedia.com/go/getflashplayer\">Get the Flash Player</a> to see this player.</div>");
        var s1 = new SWFObject("/FlashPlayer/mediaplayer.swf", "mediaplayer", "300", "20", "7");
        s1.addParam("allowfullscreen", "true");
        s1.addVariable("width", "300");
        s1.addVariable("height", "20");
        s1.addVariable("file", file);
        /*s1.addVariable("autostart", "true");*/
        s1.addVariable("provider", "rtmp");
        s1.write(playerName);
    }

function Play2(file, playerName) {
        document.write("<div id=\"" + playerName + "\"><a href=\"http://www.macromedia.com/go/getflashplayer\">Get the Flash Player</a> to see this player.</div>");
        var s1 = new SWFObject("/FlashPlayer/mediaplayer2.swf", "mediaplayer", "300", "20", "7");
        s1.addParam("allowfullscreen", "true");
        s1.addVariable("width", "300");
        s1.addVariable("height", "20");
        s1.addVariable("file", file);
        /*s1.addVariable("autostart", "true");*/
        s1.addVariable("provider", "rtmp");
        s1.write(playerName);
    }