﻿/// <reference name="MicrosoftAjax.debug.js" />

function setPopup() {
  theForm.target = "_blank";
  window.setTimeout("resetPopup();", 500);
}

function resetPopup() {
  var pathParts = window.location.pathname.split("/");
  theForm.action = pathParts[pathParts.length-1];
  theForm.target = "";
}

if (typeof(Sys) !== "undefined") {
  Sys.Application.notifyScriptLoaded();
}