// JavaScript Document
<!--
function setMat(val,pid,valitn,possible_med_prod_prints)
	{	//Begin mat processing: can't order frame w/o mat & display mat selection
	if (val == "Mat: None")				
		{ 	//Begin processing of no mat selected								
		g_mat_selected = 0;				
		if ((g_frame_selected==0) && (g_mat_selected==0))
			{	//Begin display print only
			DisplayPrintOnly(pid,possible_med_prod_prints);	
			}	//End display print only
		else
			{	//Begin display the default mat
			DisplayMat("MT00"); 
			}	//End display the default mat
		}	//End processing of no mat selected									
	else							
		{ 	//Begin display the mat selected						
		g_mat_selected = 1;							
		DisplayMat(valitn.value); 				
		}	//End display the mat selected								
	}	//End mat processing: can't order frame w/o mat & display mat selection	
// -->