
function pnBrowser() 
{
	this.appVersion = navigator.appVersion;

	this.isNS = (document.layers) ? true:false;
	this.isIE = (document.all) ? true:false;

	this.idxMSIE = this.appVersion.indexOf("MSIE");
	this.version = (this.isNS || (this.idxMSIE < 0) ) ? parseFloat(this.appVersion) : parseFloat(this.appVersion.substring(this.idxMSIE+4));
}

var browser = new pnBrowser();
var docObjName = (browser.isIE)? "document.all." : "document.";

function pnRoll(imgName)
{
	var i;
	var imgSrc;
	var newImgSrc;

	eval ('imgSrc='+docObjName+imgName+'.src');
	newImgSrc=imgSrc;
	i = imgSrc.indexOf('_g');
	if (i != -1) { newImgSrc=imgSrc.substr(0,i)+'_o'+imgSrc.substr(i+2); }
	else
	{
	i = imgSrc.indexOf('_o');
	if (i != -1) { newImgSrc=imgSrc.substr(0,i)+'_g'+imgSrc.substr(i+2); }
	}
	eval (docObjName+imgName+'.src="'+newImgSrc+'"');
}



function pnCloseWin()  { parent.close(); }

function ReturnToCaller(url) {
    if (url)
      parent.opener.location.href=url;
    parent.opener.focus();
    parent.close();
}



function askData(msg,url) {
var agree=confirm(msg);
if (agree)
window.location.href=url;
}

