﻿var status = "testing";
var path = "";

function getLink(id, win) {
    path = "http://analyst.deardorffassociates.com/pmi/linktrack.aspx?linkID=";
    var link = path + id;

    if (win == "new") {
        window.open(link, "PMI");
    } else {
        window.location.href = link;
    }
}

function popup(){
    var ical = document.getElementById("iCal");
    var subhead = document.getElementById("sh");
    var head = document.getElementById("headline");
    
    if (ical != null) {
        var theClass = (ical.className == "iCal") ? "iCal_show" : "iCal";
        ical.className = theClass;
        ical.style.top = "50%";
        ical.style.left = "50%";
        ical.style.margin = "-260px 0px 0px -250px";
    }
    
    if (head != null) {
        var theHeadClass = (head.className == "heads_show") ? "heads" : "heads_show";
        head.className = theHeadClass;
    }
    
    if (subhead != null) {
        var theSubHeadClass = (subhead.className == "heads_show") ? "heads" : "heads_show";
        subhead.className = theSubHeadClass;
    }
}