
/* Open the Information Window - simple call to index.php in the info directory. */

function openinfowin(aShopRef) {
	targetURL = "../forum/stores/info-sources/" + aShopRef  ;
	myWin = window.open(targetURL, 'info2', 'scrollbars=yes,resizable=yes,width=750,height=600' ) ;
	myWin.focus() ;
}

/* Open the Shop Illustration Window; identify the part, then write the entire window in Javascript */

function openwin(aShopRef) {
 		partWin=window.open('','info','scrollbars=yes,resizable=yes,width=650,height=400,left=200,top=200');
		winContent=writeContent(aShopRef) ;
		partWin.document.write(winContent);
		partWin.document.close() ;
        partWin.focus();
}

function writeContent(aShopRef) {
	var content = "<HTML><HEAD><TITLE>Shop Part " + aShopRef + "</TITLE>";
	content += '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">';
	content += '<link rel="stylesheet" href="../style.css" type="text/css">';
	content += "</head>"; 
	content += '<Body bgcolor="#FFFFFF" text="#000000">';
	content += '<table border="0"><tr><td>' ;
	content += aShopRef + "</td>" ;
	content += '<td><div align="right"><a href="javascript:window.close();" class="subsidemenu">[Close]</a></div></td>';
	content += "</tr><tr>" ;
	content += '<td colspan="2"><img src="../forum/stores/prod_images/' + aShopRef + '.jpg" alt=""></td>';
	content += "</tr></table></body></HTML>" ;	 
	return content ;
}
