
function launchpopupscroll(url, name, width, height,scroll) {
   winSet = "toolbar=no,location=no,directories=no,menubar=no,scrollbars="+scroll+",resizable=no,status=yes";
   winSet += ",width="+width +",height="+height+",left="+(screen.availWidth-width)/2+",top="+(screen.availHeight-height)/2;
   mypopwnd = window.open(url, name, winSet);
   mypopwnd.focus();
}

function launchpopup(url, name, width, height) {
   launchpopupscroll(url, name, width, height,"yes");
}

function launchnewpopupscroll(url, oldname, newname, width, height, scroll) {
   winSet = "toolbar=no,location=no,directories=no,menubar=no,scrollbars="+scroll+",resizable=no,status=yes";
   winSet += ",width="+width +",height="+height+",left="+(screen.availWidth-width)/2+",top="+(screen.availHeight-height)/2;
   myoldpopwnd = window.open(url, oldname, winSet);
   mynewpopwnd = window.open(url, newname, winSet);
   mynewpopwnd.focus();
   myoldpopwnd.close();
}

function launchnewpopup(url, oldname, newname, width, height) {
   launchnewpopupscroll(url, oldname, newname, width, height,"yes");
}

function launchsuccesspopup(url, name, width, height) {
   winSet = "toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,status=yes";
   winSet += ",width="+width +",height="+height+",left="+(screen.availWidth-width)/2+",top="+(screen.availHeight-height)/2;
   mypopwnd = window.open(url, name, winSet);
   mypopwnd.focus();
}

function launchpopunderscroll(url, name, width, height,scroll) {
   winSet = "toolbar=no,location=no,directories=no,menubar=no,scrollbars="+scroll+",resizable=no,status=yes";
   winSet += ",width="+width +",height="+height+",left="+(screen.availWidth-width)/2+",top="+(screen.availHeight-height)/2;
   mypopwnd = window.open(url, name, winSet);
   mypopwnd.blur();
   mypopwnd.opener.focus();
}

function launchpopunder(url, name, width, height) {
   launchpopunderscroll(url, name, width, height,"yes");
}

function launchwindow(url) {
   winSet = "toolbar=yes,location=no,directories=no,menubar=yes,scrollbars=yes,resizable=yes";
   mywnd = window.open(url, '', winSet);
}

function launchFullWindow(url) {
   winSet = "toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes";
   mywnd = window.open(url, '', winSet);
}

function launchPurchaseWindow(url) {
   launchPurchaseWindow(url, 'purchase');
}

function launchPurchaseWindow(url, name) {
   winSet = "toolbar=no,location=yes,directories=no,status=yes,scrollbars=yes,menubar=yes,resizable=yes";
   mywnd = window.open(url, name, winSet);
   mywnd.focus();
}

