function pH(x) { 
		var picsize="scrollbars=yes,resizable=yes,width="+ screen.width/2.5+ ",height="+screen.height + ",top=100"
		var fpic= picsize
		var rpic= picsize +",left="+screen.width/2

		var fname=""; var rname=""; var header = ""

	 var location = "http://www.gdprice.com/i/"
// var location ="c:/Documents and Settings/gdp/My Documents/My Pictures/"

	var i = x.length

	if (i==5) {  fname= location + x + ".JPG"; pausecomp(1250) ; newWindow = window.open(fname,x,fpic); newWindow.focus() }


 	if (i==6) { rname=parseInt(x,10); //  base 10, not hex
		if (rname>=1000) {header = "0"}
		if (rname>=100 && rname<1000) {header = "00"}
		if (rname<100) {header = "000"}
		if (rname<10) {header = "0000"}
var aname = header+rname; var bname= header+rname+"b"
	fname= location + aname + ".JPG"; rname= location + bname + ".JPG"; 
	pausecomp(1250) ; newWindow = window.open(fname,aname,fpic); newWindow.focus()

newWindow.document.write("<HTML><HEAD><img src="+'"'+fname+'"'+"><BR>"+"<A HREF="+'"'+rname+'"'+"> Click here for rear cover picture</A>" +" ~ Magnified image below <img src="+'"'+fname+'"'+" width = 600 height=960>")

	pausecomp(1250) ;  secondWindow = window.open(rname,bname,rpic); secondWindow.focus()

secondWindow.document.write("<HTML><HEAD><img src="+'"'+rname+'"'+"><BR>"+"<A HREF="+'"'+fname+'"'+"> Click here for front cover picture</A>" +" ~ Magnified image below <img src="+'"'+rname+'"'+" width = 600 height=960>")

		 }
}


function pausecomp(Amount)
	{ d = new Date() //today's date
		while (1)
	{
	mill=new Date() // Date Now
	diff = mill-d //difference in milliseconds
	if( diff > Amount ) {break;}
	}
	}



function openSecondWindow(rname,bname,rpic) { secondWindow = window.open(rname,bname,rpic); secondWindow.focus() }
