function PopupWindow(aUrl, w, h, sb, rs, tb, dir, st, mnu)
{
	if (!sb) sb = "yes"; if (!rs) rs = "yes"; if (!tb) tb = "no"; if (!dir) dir = "no"; if (!st) st = "no"; if (!mnu) mnu = "no";
	popupWin=window.open(aUrl,"PopupWin","scrollbars="+sb+",resizable="+rs+",toolbar="+tb+",directories="+dir+",status="+st+",menubar="+mnu+",width="+w+",height="+h+",resizable=yes");
	popupWin.self.focus();
	
}

function LogClickAction(advertisementid, prefixurl) {
    if (document.images) {
        var curDT = new Date();
        var curHr = curDT.getHours();
        var curMin = curDT.getMinutes();
        var curSec = curDT.getSeconds();

        if (prefixurl == null) prefixurl = "";
        if (advertisementid == null) advertisementid = "0";

        (new Image).src = prefixurl + "LogStat.aspx?id=" + advertisementid +
			"&" + curHr + curMin + curSec;
    }
    return true;
}

function TokenConnect(tokenurl) {
    if (document.images) {
        var curDT = new Date();
        var curHr = curDT.getHours();
        var curMin = curDT.getMinutes();
        var curSec = curDT.getSeconds();
        (new Image).src = tokenurl + "&" + curHr + curMin + curSec;
    }
    return true;
}
