self.name = "main";
function openWin(width, height, imagewidth, imageheight, pic) {
        picWin = open("", "popup", "width=" + width + ",height=" + height + ",toolbar=no,directories=no,status=no,location=no,scrollbars=yes,resizable=no,menubar=no");
        picWin.document.open();
        picWin.document.clear();
        picWin.document.writeln("<html><head><title>Price Match</title></head><body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><table width=\"100%\" height=\"100%\" cellpadding=0 cellspacing=0 border=0><tr><td valign=\"middle\" align=\"center\"><img src=\"images/" + pic + ".gif\" width=\"" + imagewidth + "\" height=\"" + imageheight + "\" alt=\"images\"></td></tr></table></body></html>");
        picWin.document.close();
}


//set grahams special secret variables
var version = "1";
var work = false;

// browser test:
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) version = "3";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "4";
else version = "1";

// Does it work in n3/4 ?
if(version =="3") {
        work = true;
}

// Does it work in ie4 ?
if(version =="4") {
        work = true;
}

self.name = "index";
function WinOpen(URL,details) {
	if (work == true) {
	go = window.open("","info","toolbar=no,width=400,height=455,directories=no,status=no,location=no,scrollbars=no,resizable=no,menubar=no");
	if(go!=null) {
			if(go.opener == null) {
					go.opener = self;
			}
			go.location.href = URL+".asp?details=" + details;
				}
	}
}