messageObj = new DHTML_modalMessage();	// We only create one object of this class
messageObj.setShadowOffset(5);	// Large shadow


function displayDetails( messageContent )
{
	messageObj.setHtmlContent(messageContent);
	messageObj.setSize(750,460);
	messageObj.setCssClassMessageBox(false);
	messageObj.setSource(false);	// no html source since we want to use a static message here.
	messageObj.setShadowDivVisible(false);	// Disable shadow for these boxes	
	messageObj.display();
	
	
}

function closeMessage()
{
	messageObj.close();	
}

function submitInquiry( formObj )
{
formObj.method = "get";
formObj.action = "inquire.html";
formObj.submit();
}




function getCollectionBox( folder, img, i_w, i_h, descr, price, pName, pID )
	{
	var collectionBox;
		collectionBox = "<table width='750' border=0 cellpadding='0' cellspacing='0' class='collectionBoxDetails'>";
		collectionBox += "<tr><td colspan='2' class='collectionBoxClose'><a class='collectionClose' href=\'#\' onclick=\'closeMessage();return false\'>X</a></td></tr>"
		collectionBox += "<tr><td width='525' rowspan='2' align='center'>"
		collectionBox += "<img src='imgs/collections/" + folder + "/" + img + "' width='" + i_w + "' height='" + i_h + "' border='0'></td>"
		collectionBox += "<td class='collectionBoxPanel_3' width='225' height='300'>" + descr + "</td></tr>"
		collectionBox += "<tr><td class='collectionBoxPanel_1'>"
		collectionBox += "<form name=\"collection\" action=\"inquire.html\" method=\"get\">"
		collectionBox += "<table class='collectionBoxPanel_2' border=0>"
		collectionBox += "<tr><td align='right' width='100'><b>Price:</b>&nbsp;</td><td width='125'>" + price + "</td></tr>"
//		collectionBox += "<tr><td colspan='2'><input type='hidden' name='productName' value='" + pName + "'></td></tr>"
		collectionBox += "<tr><td colspan='2'><input type='hidden' name='productID' value='" + pID + "'></td></tr>"
		collectionBox += "<tr><td colspan='2' style='font-size:8pt' align='center'>Click the button below to inquire if this item is in stock.</td></tr>"
		collectionBox += "<tr><td colspan='2' align='center' height='50'><input type='button' onclick='submitInquiry( this.form )' value='Inquire'><input type='button' value='Cancel' onclick=\'closeMessage()\'></td></tr></table>"
//		collectionBox += "<tr><td colspan='2' align='center' height='50'><input type='submit'  value='Inquire'><input type='button' value='Cancel' onclick=\'closeMessage()\'></td></tr></table>"
	
		collectionBox += "</td></tr></table></form>"

	return collectionBox;
	
	}


