wrongflag=1;
tempsum=0;
if (IDOK==JCwater.DoModal())
{
switch (JCwater.m_editm)
{
case 1:m=3;p=1;break;
case 2:m=3;p=1;break;
case 3:m=3;p=1;break;
case 4:m=4;p=3;break;
case 5:m=7;p=4;break;
case 6:m=7;p=4;break;
case 7:m=7;p=4;break;
case 8:m=11;p=7;break;
case 9:m=11;p=7;break;
}
tempm=m;
n=m*tempn;
wfilename=JCwater.FileName;