var imageWindow = 'shutdown'
//alert(imageWindow)

function checkMe() {
	if (imageWindow == 'opened') {
	//alert('going to close')
	msgWindow.close()
	}
}

function ShowMe(file,wname,title,desc,w,h,l,t) {
	if (imageWindow == 'opened') {
	//alert('going to close')
	msgWindow.close()
	}
		 h1 = h + 90
		 //alert(h1)
		 w1 = w + 0
	//alert(desc);
     msgWindow=open('',wname,'resizable=no,width=' +w1+ ',height=' +h1+ ',left=' +l+ ',top=' +t+ ',');
     fillerpage = file
     fillerpage += '?imglk=' +title+ '&wi=' +w+ '&he=' +h
   //  alert(fillerpage)
     msgWindow.location.href = fillerpage;
     if (msgWindow.opener == null) msgWindow.opener = self;
}
