﻿//--------------------------------- JScript File -------------------------------------//

// Script to disable IE popup
var newWin = null; 
function popUp(strURL, strWin, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 
 if (strType=="console") 
   strOptions="resizable,maximize=yes,height=" + strHeight + ",width=" + strWidth; 
 
 if (strType=="fixed") 
   strOptions="status,height=" + strHeight + ",width=" + strWidth; 
 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars," + "resizable,location,height="+ strHeight + ",width=" + strWidth;
 
 if (strType=="none")
   strOptions="resizable='no',height=" + strHeight + ",width=" + strWidth; 
 
 if (strType=="scroll")
   strOptions="resizable='no',scrollbars,height=" + strHeight + ",width=" + strWidth;
 
 if (strType=="inquire")
   strOptions="resizable,maximize,scrollbars, height=" + strHeight + ",width=" + strWidth;
     
 newWin = window.open(strURL, strWin, strOptions); 
 newWin.focus(); 
}

function popUp(strURL, strWin, strType, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions="";
 if (strType=="fullSize")
   strOptions="resizable,maximize,scrollbars,width="+ strWidth;;
     
 newWin = window.open(strURL, strWin, strOptions); 
 newWin.focus(); 
}


function popUp(strURL, strWin, strType) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions="";
 if (strType=="inquire")
   strOptions="resizable,maximize,scrollbars";
     
 newWin = window.open(strURL, strWin, strOptions); 
 newWin.focus(); 
}

/*
function backButtonOverride()
{
  // Work around a Safari bug
  // that sometimes produces a blank page
  setTimeout("backButtonOverrideBody()", 1);

}

function backButtonOverrideBody()
{
  // Works if we backed up to get here
  try {
    history.forward();
  } catch (e) {
    // OK to ignore
  }
  // Every quarter-second, try again. The only
  // guaranteed method for Opera, Firefox,
  // and Safari, which don't always call
  // onLoad but *do* resume any timers when
  // returning to a page
  setTimeout("backButtonOverrideBody()", 500);
}
*/

function closeWin()
{
    window.opener=null; 
    window.close(); 
    return false;
}



