﻿// JScript File
function popupImg(img, l, t, w, h, bloc, bscroll, bmbar, btbar, bresize) {
var windowprops = "location=" + bloc + ",scrollbars=" + bscroll + ",menubar=" + bmbar + ",toolbar=" + btbar + ",resizable=" + bresize + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;

var URL = "" + img;
window.name = '_main';
popup = window.open(URL,"MenuPopup",windowprops);
}

// JScript File
function popupImg2(img, l, t, w, h) {
var windowprops = "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes" +
",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;

var URL = "" + img;
popup = window.open(URL,"MenuPopup",windowprops);
}

// onClick="popupImg('pageToDisplay', left, top, width, height)"

function hide(popwindow) {
	if (popwindow == one) {
	document.all.one.style.display = "none"
	}else {
	document.all.two.style.display = "none"
	}
}
function show(popwindow) {
	if (popwindow == one) {
	document.all.one.style.display = "block"
	}else {
	document.all.two.style.display = "block"
	}
}

function imgPopup2(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
var s1 ="<TITLE>Image</TITLE>"
var s15=""
var s2 ="<body bgcolor='#e16202'><CENTER><IMG SRC='"+mypage+"'>"
var s3 ="<FORM><br /><INPUT TYPE='BUTTON' VALUE='Close Window'"+ " onClick='self.close()'>"
var s4 ="</FORM></body>"
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+true+''
win = window.open(mypage, myname, winprops)
win.document.write(s1+s15+s2+s3+s4)
win.document.close()
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}