//This file is for DYC-COM section
function chkPaper(n)
{
	var k,chkval,paper;
	k=n;
	for(i=0;i<k;i++)
	{
		if(document.frmDHTML.cPaper[i].checked)
		{		
			paper=document.frmDHTML.cPaper[i].value;
			parent.left_frame.chkElement(paper,"P");
			break;
		}
	}//for
}//chkpaper

//when border clicked this function is evoked
function chkBorder(nb)
{
	var kb,chkval,border;
	kb=nb;

	for(j=0;j<kb;j++)
	{
		if(document.frmDHTMLB.cBorder[j].checked)
		{		
			border=document.frmDHTMLB.cBorder[j].value;
			parent.left_frame.chkElement(border,"B");
			break;
		}
	}//for
}//chkborder

//when motif clicked this function is evoked
function chkMotif(nm)
{

	var km,motif;
	km=nm;

	for(l=0;l<km;l++)
	{
		if(document.frmDHTMLM.cMotif[l].checked)
		{		
			motif=document.frmDHTMLM.cMotif[l].value;
			parent.left_frame.chkElement(motif,"M");
			break;
		}
	}//for
	
}//chkmotif
