// Created: march 9, 2007
// Author:  Zishan Zulfiqar

window.onload   = Load;
window.onresize = Load;

if (/MSIE ([0-6]\.\d+)/.test(navigator.appVersion)){
   var ie6 = true;
}else if (/MSIE (\d\.\d+)/.test(navigator.appVersion)){
   var ie7 = true;
}else if(navigator.userAgent.indexOf('Gecko')!=-1){
   var moz = true;
}

function setMinHeight (obj, height, boolStretch) {
   if (typeof(boolStretch)=='undefined') boolStretch = false;
   
   if (!obj) return 0;//modifd by ezra, to prevent if obj is not exist; 200705
	
   if (/MSIE ([0-6]\.\d+)/.test(navigator.appVersion) || boolStretch==false)
      obj.style.height = height + 'px';
   else
      obj.style.minHeight = height + 'px';

}

function openWindow(URL,WIDTH,HEIGHT){
   var LEFT =(screen.width - WIDTH) / 2;
   var TOP = (screen.height - HEIGHT) / 2;
   var NEWWINDOW = open(URL,'Popup_NFB','scrollbars=yes,toolbar=no,location=no,status=no,resizable=no,width=' + WIDTH + ',height=' + HEIGHT + ',left=' + LEFT + ',top=' + TOP + '');
   NEWWINDOW.focus();
   return false;
}