<!--
function setProdPage(possible_med_prod_prints)
	{
	//Findgift.com sends: (example for the Believe Framed Print Product)
	//www.thoribella.com/.../Zodiac/Sagittarius.html?prod=ZD09MT01FR03
	//                                                    012345678901
	//Use ?prod=ZD09MT00FR00 to indicate a print only product
	//Use ?prod=ZD09MT01FR00 to indicate a print and matted product
	
	g_setprod=getQueryVariable("prod"); // Load FindGift.com variable passed
	
	if (g_setprod=="") return;
	
	found = false;

	prtId=g_setprod.substring(0,4);
	prtNum=g_setprod.substring(2,4);
	
	if (g_setprod.substring(4,8)!="")
		matId=g_setprod.substring(4,8);
	else
		matId="MT00";
	matNum=matId.substring(2,4);
	
	if (g_setprod.substring(8,12)!="")
		frmId=g_setprod.substring(8,12);
	else
		frmId="FR00";
	frmNum=frmId.substring(2,4);
	
	CreamMatCost=5;
	BurgundyFrameCost=48;
	CharcoalFrameCost=75;
	WalnutFrameCost=75;
	
		for (i=0;i<g_possible_find_gift_prints.length-1;i++)
			{
			if (g_setprod==g_possible_find_gift_prints[i])
				found=true;
			}
		if (found)
			{
			if (d=document.getElementById("ChangeFrame"+prtNum))
				d.src = "../../../Images/" + g_setprod + ".jpg";
			}
		else
			if (matNum== "00")						 // No Mat wanted
				{
				DisplayPrintOnly(prtId,possible_med_prod_prints);
				}
			else
				{
				DisplayFrame(frmId,prtId);
				DisplayMat(matId);
				}

			if ((d=document.getElementById('selectmat')) && (matNum!= "00")) 	 // Mat wanted
				{
				d.options[0].selected =false;												 // Select Mat					
				d.options[parseInt(matNum)].selected =true;	 // Select Mat
				if (d=document.getElementById('tot'))
					{
					if (matNum=="01")
						d.value="$"+(parseInt(d.value.substring(1,6))+CreamMatCost)+".00";
					}
				}
			if ((d=document.getElementById('selectframe')) && 
				 (matNum!= "00") && (frmNum!="00"))  									 // Mat & Frame wanted
				{	
				d.options[0].selected =false;												 // Select Frame
				d.options[parseInt(frmNum)].selected =true; // Select Frame
				if (d=document.getElementById('tot'))
					{
					if (frmNum=="01")
						d.value="$"+(parseInt(d.value.substring(1,6))+CharcoalFrameCost)+".00";
					else
						if (frmNum=="02")
							d.value="$"+(parseInt(d.value.substring(1,6))+BurgundyFrameCost)+".00";	
						else
							d.value="$"+(parseInt(d.value.substring(1,6))+WalnutFrameCost)+".00";
					}
				}
	}
// -->