﻿

//method that takes an id of a div to update, and contentid
function getRelatedResourcesForContent(divId, contentId) {
    if (Ajax.getTransport()) {
        new Ajax.Updater($(divId), '/Resources/GetRelatedResources.aspx', { method: 'get', parameters: { CssClass: css, ContentID: contentId} });
    }
}

function getQueryString(key) {
    qs = window.location.search.substring(1);
    coll = qs.split("&");
    for (i = 0; i < coll.length; i++) {
        param = coll[i].split("=");
        if (param[0] == key) {
            return param[1];
        }
    }
}
