﻿function onInvoke(sender, args) {
    args.get_webRequest().get_headers()['securityTicket'] = SECURITY_TICKET;
}

var newwindow;
function poptastic(url) {
    newwindow = window.open(url, 'name', 'height=505,width=750');
    if (window.focus) { newwindow.focus() }
}