function setIt(imgName)
{
for (i=0; i<document.images.length; i++)
	{
	if (document.images[i].name == imgName)
		{
		myIStuff=document.images[i].id
		imajWidth=myIStuff.slice(3,6)
		document.storage.imgWidth.value=imajWidth
		imajHeight=myIStuff.slice(6,9)
		document.storage.imgHeight.value=imajHeight
		}
	}
}
function openPopup(url,name,features,imgLoc,imgH,imgW,xText,cuImage,imageBase,imageExt)
{
document.storage.closeUp.value = cuImage
document.storage.theImage.value = imgLoc
document.storage.imgBase.value = imageBase
document.storage.imgExt.value = imageExt
imgW=document.storage.imgWidth.value
imgH=document.storage.imgHeight.value
document.storage.xtraText.value = xText
var loc = url
var imageW = parseInt(document.storage.imgWidth.value)+40
var imageH = parseInt(document.storage.imgHeight.value)+60
var newFeatures = features + ',' + ' width=' + imageW + ',' + ' height=' + imageH
popupWin=window.open(loc,name,newFeatures,xText,cuImage)
}
var popupWin = null
function hidePopup()
{
if ( popupWin != null )
	{
	popupWin.close()
popupWin = null
	}
}

