// JavaScript Document -- print window functions//OPEN PRINT WINDOWfunction openPrint() {	//set html	var printHTML = "";	printHTML += "<HTML><HEAD><link rel=\"stylesheet\" href=\"styles.css\" /><TITLE>Print Window</TITLE></HEAD><BODY><div align=\"center\"><a href=\"javascript:window.close();\">close</a> | <a href=\"javascript:window.print()\">print</a><br/><h1>Lendable Linens Swatch Print</h1></div><table align=\"center\" width=\"498\" border=\"0\" cellspacing=\"4\" cellpadding=\"4\">";	var thisPath;	for(var j=1; j<4; j++){		var temp = "saveSet"+j;		var saveSetStr = readCookie(temp);		var saveSet = saveSetStr.split("/");		//print swatch group title if there is a swatch in the set.  if not, do nothin		if((saveSet[1] == 999) && (saveSet[3] == 999)&&(saveSet[5] == 999)&&(saveSet[7] == 999)) {		} else {			printHTML+="<tr><td>Saved Set ";			printHTML+=j;			printHTML+="</td></tr>"			}		for(var i=0; i<7; i++) {			if(saveSet[i+1] != 999) {				thisPath = generatePath(saveSet[i]);						printHTML+="<tr id=\"printBoxTR\"><td width=\"130\" rowspan=\"2\"><img src=\"images/"+saveSet[i]+"/swatch"+saveSet[i+1]+".jpg\" width=\"100\" height=\"100\" /></td><td width=\"368\" height=\"24\"><div style=\"background-color:#CCCCCC;\">"+thisPath[saveSet[i+1]].title+"<br/>"+thisPath[saveSet[i+1]].collection+"</div></td></tr><tr><td valign=\"top\">"+thisPath[saveSet[i+1]].description+"</td></tr>";			} else {printHTML+="";}			i++;		}	}	printHTML += "</table><div align=\"center\"><a href=\"javascript:window.close();\">close</a> | <a href=\"javascript:window.print()\">print</a></div></BODY></HTML>";		OpenWindow=window.open("", "newwin", "height=500, width=600,toolbar=yes,scrollbars=yes,menubar=no,resizable=1");	OpenWindow.document.write(printHTML);	OpenWindow.document.close();	self.name="main";}
