// Open popup window
function open_window(url, win_name, win_width, win_height, resize, scrollbars)
{
   newWindow=window.open(url, win_name, 'menubar=no,toolbar=no,resizable='+resize+',scrollbars='+scrollbars+',width='+win_width+',height='+win_height);
}

// Return Content Page Details when linking to a content page
function returnPageDetailsSearch(page_id, page_title)
{
  window.opener.document.theForm.hdnPageId.value = page_id;
  window.opener.document.theForm.txtPageName.value = page_title;
  window.opener.document.theForm.txtLinkTitle.value = page_title;
  window.close();
}


// Return Link Details when selecting it for a quicklink
function returnSelectedLinkQuickLink(link_id, link_title)
{
	window.opener.document.theForm.hdnLinkId.value = link_id;
	window.opener.document.theForm.txtLinkTitle.value = link_title;
	window.close();
}

// Function to 'activate' images.
function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
        }
}

// Function to 'deactivate' images.
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
        }
}
