var popWin = null;
var winCount = 0;
var strTrans

function Popup(winURL, iWidth, iHeight,sResize, strScroll,strStatus){
	winCount = winCount + 1
	winName = "popwin" ;
	if(!strScroll) strScroll="yes"
	if(!strStatus) strStatus="yes"
	if(iWidth) {
	winW=iWidth;
	winH=iHeight;
	}
	else {
	winW = (screen.width) ? (screen.width)*.85 : 0;
	winH = (screen.height) ? (screen.height)*.85 : 0;
	}
	winL = (screen.width) ? (screen.width-winW)/2 : 0;
	winT = (screen.height) ? (screen.height-winH)/2 : 0;
	
	closePopWin();
	(navigator.appCodeName == 'browser')?window.location.href=winURL:     
	popWin = window.open(winURL, winName, "WIDTH="+winW+",HEIGHT="+winH+",left="+winL+",top=20,resizable="+ sResize +",scrollbars=" + strScroll + ",status="+strStatus+",location=no,menubar=no,toolbar=no,directories=no");
}

function closePopWin(){
	if(navigator.appName != "Microsoft Internet Explorer" ||
	parseInt(navigator.appVersion) >=4)  //do not close if early IE
	if(popWin != null) if(!popWin.closed) popWin.close();
}

function Enlarge(sFile, sDesc) {

Popup('img_viewer.asp?img=' + sFile + '&sDesc=' + sDesc, 600, 550, 'no', 'no', 'no');
}

function Enlarge999(sFile, sDesc) {

Popup('http://' + self.location.hostname + '/BEN/img_viewer.asp?img=' + sFile + '&sDesc=' + sDesc, 600, 550, 'no', 'no', 'no');
}

function PopTerms() {Popup('http://' + self.location.hostname + '/MKM/site_info/pop_terms.htm', 600, 500, 'no', 'yes', 'no');}
function PopPrivacy() {Popup('http://' + self.location.hostname + '/MKM/site_info/pop_privacy.htm', 600, 500, 'no', 'yes', 'no');}
function PopHBE() {Popup('../../assistance/pop_hbe.htm', 600, 500, 'no', 'yes', 'no');}
function PopTermsQA() {Popup('../../assistance/pop_qa_terms.htm', 600, 500, 'no', 'yes', 'no');}
function PopFaqQA() {Popup('../../assistance/pop_qa_faq.htm', 600, 500, 'no', 'yes', 'no');}


