//Netbanks Fast and Secure Internet Billing Solutions Script v1.0
var windowW=600
var windowH=500
var windowX = (screen.width/2)-(windowW/2);
var windowY = (screen.height/2)-(windowH/2);
var urlPop = "about:mozilla"
var urlPop2 = "http://www.netbanks.net/wait.htm"
var title =  "Netbanks Internet Billing Solutions"
var autoclose = true
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
var NFW
function nbs(){
if (!NFW || NFW.closed){
  if (beIE){
    NFW = window.open("","order","status=yes,fullscreen,scrollbars,scrolling=yes,"+s)     
    NFW.blur()
    window.focus()       
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
    var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=1 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=yes>"+
"<frame name='bottom' src='about:Pls.%20wait%20while%20we%20load%20the%20payment%20page' scrolling='no'>"+
"</frameset>"+
"</html>"
    NFW.document.open();
    NFW.document.write(frameString)
    NFW.document.close()
  } else {
    NFW=window.open(urlPop2,"order","scrollbars,scrolling=yes,"+s)
    NFW.blur()
    window.focus() 
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
  }   
  NFW.focus()   
  if (autoclose){
    window.onunload = function(){NFW.close()}
  }
      }
   else {
      NFW.focus();
      }

}
