document.mPopUp = function(sURL,sName,sFeatures,x,y,w,h){
  // generic window pop up function   _tb
  //  -can be tested for without throwing an error  " if(document.mPopUp) ocument.mPopUp(); 
  //  -supports passed parameters
  //  -intent is to be completely cross browser friendly
  
  this.x = (x || 25)  // new window's position and dimensions
  this.y = (y || 25)
  this.w = (w || 450)
  this.h = (h || 550)
  
  if(!sName) sName = 'NScompare'
  
  if(!sFeatures){
    sFeatures = 'menubar = 0'
  }

  if(sFeatures.indexOf('top')==-1)        sFeatures += ',top = '+this.y
  if(sFeatures.indexOf('left')==-1)       sFeatures += ',left = '+this.x
  if(sFeatures.indexOf('screenY')==-1)    sFeatures += ',screenY = '+this.y
  if(sFeatures.indexOf('screenX')==-1)    sFeatures += ',screenX = '+this.x
  if(sFeatures.indexOf('width')==-1)      sFeatures += ',width = '+this.w
  if(sFeatures.indexOf('height')==-1)     sFeatures += ',height = '+this.h
  if(sFeatures.indexOf('resizable')==-1)  sFeatures += ',resizable = 1'
  if(sFeatures.indexOf('scrollbars')==-1) sFeatures += ',scrollbars = 1'
  if(sFeatures.indexOf('toolbar')==-1)    sFeatures += ',toolbar = 0'

  var mWin = window.open(sURL,sName,sFeatures)
  return mWin
}

