// Common functions used in the support center only;
// This is maintained separately from other site js because the
// Look/feel/underlying code of the support center pages
// is substantially different from the rest of the site.

function openTarget (form, features, windowName) {
  if (!windowName)
    windowName = 'formTarget' + (new Date().getTime());
  form.target = windowName;
  open ('', windowName, features);
}

function openw(url,x,y,sb,extra){
  if (!x){x=740;};
  if (!y){y=520;};
  if (sb) sbOn="yes"; else sbOn="no";
  if (!extra) extra=""; 
  window.open(url,'overture','width='+x+',height='+y+',scrollbars='+sbOn+extra);
}

function printw() {
  bV = parseInt(navigator.appVersion);
  if (bV >= 4) window.print();
}

function acctdemoMove(dest) {
  parent.frames[1].location = 'AcctDemo_Screen_'+dest+'.php';
  //window.parent.screen.location = 'AcctDemo_Screen_'+dest+'.php';
  self.location = 'AcctDemo_Content_'+dest+'.php';
}

function acctdemoOpenerLink(dest) {
  if (window.opener && !window.opener.closed) {
    window.opener.refreshPage(dest);
    window.close();
  }
}

function refreshPage(dest){
  document.location=dest;
}
