
function popWin(theUrl, winName, theParams){
	if (!winName)
		winName="popwin"

	if (!theParams)
		{
		// set up the parameters
		theParams  = "width=600,height=400"
		+",toolbar=no,location=no,directories=no,status=no"
		+",menubar=yes,scrollbars=no,resizable=no"
		// +",outerwidth=600,outerheight=400"
		}

	// make the call to create the new window
	myNewPopUp = open(theUrl,winName,theParams);
	if (myNewPopUp.opener == null) myNewPopUp.opener = window;
	myNewPopUp.opener.name = "Opener";
	myNewPopUp.focus();
	return (!myNewPopUp);
}

function iswap(theImg, oldExt, newExt){
        if (!document.images) return false;
        theImg.oldSrc = theImg.src;
        if (!oldExt)
			oldExt = theImg.oldSrc.substring(theImg.oldSrc.lastIndexOf('.'),theImg.oldSrc.length);
        if (!newExt)
			newExt = '-over' + oldExt;
        theImg.src = theImg.oldSrc.substring(0,theImg.oldSrc.lastIndexOf(oldExt)) + newExt;
		}

function ifix(theImg){
        if (!document.images) return false;
        if (theImg.oldSrc) theImg.src=theImg.oldSrc;
        }
