﻿// JScript File

    function refreshMagazine(mod, func, target)
    {
        getContent([getParam('m', mod), getParam('f', func)], target);
        setTimeout('refreshMagazine(\'' + mod + '\', \'' + func + '\', \'' + target + '\')', 3500);
    }

//function searchInBase(form)
//{
//form.action = form.base.value + form.search.value;
//return true;
//}
  
    function activateElmt(elmt, inactiveText)
    {
        if (elmt.value == inactiveText)
        {
            elmt.className = 'inactive';
        }
        else
        {
            elmt.className = '';
        }
        return true;
    }

    function searchInBase(form)
    {
        if ((form.articlecode.value != '') && (form.articlecode.value != 'artikelcode'))
        {
            form.action = form.base.value + 'rp_publications.asp&srch_Method=7&srch_Articlecode=' + form.articlecode.value;
        }
        else
        {
            form.action = form.base.value + 'rp_keywords.asp&srch_Method=1&srch_Keyword=' + form.keyword.value;
        }
        return true;
    }

    function subscribe(form)
    {
        if ((form.lastname.value == '') && (form.lastname.value == 'achternaam'))
        {
            alert('U moet uw naam eerst invullen...');
            return false;
        }
        return true;
    }
