   var ti=false;


	  



var  sTempStr1='<table width="768" cellpadding="17" align="center" onMouseOver="document.getElementById(\'tableM\').style.visibility=\'visible\';"><tr><td align="center"  class="cu"><table width="733" cellspacing="0" cellpadding="0"><tr><td width="733" height="372" align="center" background="/img/demo.jpg">Для получения доступа, пожалуйста авторизируйтесь<br><br><a href="/buy/" target="new" style="text-transform: none; color: #47AEF3;"><b>Как получить доступ?</b></a><br><br><br><img src="/img/0.gif" alt="" style="cursor: pointer;" width="233" height="101" border="0"  onClick="location.href=\'/demo/?p=m1\';"></td></tr></table></td></tr></table>';
	  
	  
   
 var jur='<table cellspacing="0" cellpadding="0" border="0"  width="999" height="500"><tr>';
jur=jur+'<td width="12" height="4" ><img src="/img/j/1-1.gif" width="12" height="4" alt="" border="0"></td>';
jur=jur+'<td height="4" style="background-image: url(/img/j/1-2.gif); background-repeat: repeat-x;"><img src="/img/j/1-2.gif" width="1" height="4" alt="" border="0"></td>';
jur=jur+'<td width="11" height="4"><img src="/img/j/1-3.gif" width="11" height="4" alt="" border="0"></td></tr>';
jur=jur+'<tr><td width="12" style="background-image: url(/img/j/2-1.gif); background-repeat: repeat-y;"><img src="/img/0.gif" width="12" height="587" alt="" border="0"></td>';
jur=jur+'<td valign="top">';
jur=jur+'<div id="jurn" style=" width: 939px; height: 490px; position: absolute; margin-left: 13px; margin-top: 60px; z-index: 999; overflow:auto;"></div>';
jur=jur+'<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"><tr>';
jur=jur+'<td width="50%" valign="top"><img src="/img/j/u.gif" alt="" width="82" height="30" hspace="13" vspace="8" border="0"></td>';
jur=jur+'<td width="50%" style="background-image: url(/img/j/2-2.gif); background-repeat: repeat-y;" valign="top"><img src="/img/j/o.gif" width="109" hspace="81" vspace="8" height="30" alt="" border="0"></td>';
jur=jur+'</tr><tr><td></td><td style="background-image: url(/img/j/2-2.gif); background-repeat: repeat-y;"><img src="/img/0.gif" width="12" height="541" alt="" border="0"></td></tr></table>';
jur=jur+'</td>';
jur=jur+'<td width="11" style="background-image: url(/img/j/2-3.gif); background-repeat: repeat-y;"><img src="/img/j/2-3.gif" width="11" height="1" alt="" border="0"></td>';
jur=jur+'</tr><tr>';
jur=jur+'<td width="12" height="6"><img src="/img/j/3-1.gif" width="12" height="6" alt="" border="0"></td>';
jur=jur+'<td height="6" style="background-image: url(/img/j/3-2.gif); background-repeat: repeat-x;"><img src="/img/j/3-2.gif" width="1" height="6" alt="" border="0"></td>';
jur=jur+'<td width="11" height="6"><img src="/img/j/3-3.gif" width="11" height="6" alt="" border="0"></td>';
jur=jur+'</tr></table>';
function OpJ(j)
{document.getElementById('tableT').innerHTML=jur;

//tableT.innerHTML=ShockwaveFlash;	




//jurn.style.height=tableT.style.height.replace('px','')-100;
//jurn.style.width=tableT.style.width.replace('px','')-60;

window.parent.frames("res").location.href='/j.asp?par='+par;


}


function   prev(w)
{

xx=1000;

if (w==0)
{PREV.src='/demo/data/images/0.gif';
preV.style.visibility="hidden";
}else{

  MouseX = event.clientX;
  MouseY = 220;
  if (MouseX+400>xx)
  {preV.style.left = MouseX-400 + "px";
  }else{
        preV.style.left = MouseX + "px";
    }   
	   
	    preV.style.top = MouseY + "px";

PREV.src='/ns/data/Files/'+par+'/prev/'+w+'.gif';



preV.style.filter="blendTrans(duration=1)";
preV.filters.blendTrans.apply();
preV.style.visibility="visible";
preV.filters.blendTrans.play();
} 

}

 function menuUU(){

var sTempStr="";
var  iii=0;

UU19=19

if (parU=='m4') {UU19=16}

for(var i = 1; i <= uCount; i++){ 
iii++;
	ii=iii/2+' ';
	ii=ii.split('.');
	if (ii[1]=='5 ')
	{ts='tb';}
	else
	{ts='t';}


sTempStr=sTempStr+'<div  onClick=OpSm('+i+',0) style="cursor: pointer;" class="'+ts+'" onMouseOver=this.className="tH" onMouseOut=this.className="'+ts+'">'+u[i]+'</div>';




if (i==UU19) {
sTempStr=sTempStr+'</td><td valign="top" class="cu">';
iii=0;
}
}



sTempStr='<table width="768" cellpadding="10" align="center" onMouseOver="document.getElementById(\'tableM\').style.visibility=\'visible\';"><tr><td valign="top" class="cu">'+sTempStr+'</td></tr></table>';


//alert(sTempStr);

document.getElementById('tableM').innerHTML= sTempStr;	
 document.getElementById('tableM').style.visibility='visible'





   }

   
   function OpSm(q,a){


//alert(t);

//if (t)
//{


   
if (a=='') {a=0;}

aa=a;
qq=q;

TDD='';
TDD1='';
TDD2='';
tdt='';
tdb='';
tdr='';

tdt1='';

tdr1='';
styles='0';

   if (uu[q]) styles=uu[q].split(", ");
  
  lr=styles.length/2;

  for(i=0;i<lr;i++) 
  { 
  
y=styles[i].substring(0,38);
  
if (i+1<10)
{ia='0'+(i+1)}
else
{ia=i+1}

  TDD=TDD+"<td class='tdd1'>"+(ia)+"</td>";
  

  
  
  
  
  
  

if (a==i)
{
if (styles[i].substring(43,44)==1)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="g0" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';

}
else if (styles[i].substring(43,44)==0)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="r0" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';

}
else if (styles[i].substring(43,44)==3)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="a0" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="o0" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
}else{


if (styles[i].substring(43,44)==1)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="g" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else if (styles[i].substring(43,44)==0)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="r" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else if (styles[i].substring(43,44)==3)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="a" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else 
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="o" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
}
}

ii=i;

  for(i=ii;i<styles.length;i++) 
  { y=styles[i].substring(0,38);
if (i+1<10)


{ia="0"+(i+1)}
else
{ia=i+1}

  TDD=TDD+'<td class="tdd1">'+(ia)+'</td>';

if (a==i)
{
if (styles[i].substring(43,44)==1)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="g0" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else if (styles[i].substring(43,44)==0)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="r0" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else if (styles[i].substring(43,44)==3)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="aR0" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="o0" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
}else{


if (styles[i].substring(43,44)==1)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="g" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else if (styles[i].substring(43,44)==0)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="r" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else if (styles[i].substring(43,44)==3)  
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="aR" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
else 
{TDD1=TDD1+'<td valign="top" class="tdd2"><a href="#" onClick="OpSm('+q+','+i+');" class="o" id="t_'+i+'" onMouseOut="prev(0);" onMouseOver="prev(\''+y+'\');"><img src="/Images/0.gif" width="19" height="22" alt="" border="0" /></a></td>';
}
}
}	
  
  

  
  
  
  
  
  
  
  
  
  
  
  
  




y=styles[a].substring(0,38)
yy=y.substring(1, 3);




media=styles[a].substring(39,42);
if (media=='swf')
{

if(par=='rG')
{
document.getElementById('tableT').style.background = "url(/img/gr_po.gif)";
//padding: 0px 89px 0px 89px; background-repeat: no-repeat; width: 100% height: 602px; background-image: url(/img/gr_po.gif); "

ShockwaveFlash='<div style="width: 828px; height: 602px;  position: absolute; margin-left: 88px; margin-top: 0px;" width="828" height="602"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" width="100%" height="100%" align="top" name="KM1" id="KM"><PARAM NAME=bgcolor VALUE ="#FFFFFF"><param name=movie  VALUE="/ns/data/Files/'+par+'/'+yy+'/'+y+'.swf"><param name=quality value=high><PARAM NAME=menu VALUE=false> <param name="wmode" value="opaque"><embed src="/ns/data/Files/'+par+'/'+yy+'/'+y+'.swf" quality=high wmode="opaque" bgcolor="#FFFFFF" swLiveConnect=true NAME=KM  width="100%" height="100%" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></div>';

}
else

{
 document.getElementById('tableT').style.background = "url(img/0.gif)";

	ShockwaveFlash='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" width="100%" height="100%" align="top" name="KM1" id="KM"><PARAM NAME=bgcolor VALUE ="#FFFFFF"><param name=movie  VALUE="/ns/data/Files/'+par+'/'+yy+'/'+y+'.swf"><param name=quality value=high><PARAM NAME=menu VALUE=false> <param name="wmode" value="opaque"><embed src="/ns/data/Files/'+par+'/'+yy+'/'+y+'.swf" quality=high wmode="opaque" bgcolor="#FFFFFF" swLiveConnect=true NAME=KM  width="100%" height="100%" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
}
}
    else if (media=='htm')
  {
  
   document.getElementById('tableT').style.backgroundcolor="#8CCCFF"; 
   document.getElementById('tableT').style.background = "url(/img/txtram.gif)";
  
  ShockwaveFlash='<div style="width: 940px; height: 602px;  position: absolute; margin-left: 29px; margin-top: 21px;"><iframe src="/ns/data/Files/'+par+'/'+yy+'/'+y+'.htm" name="media_htm" id="media_htm" width="940" height="556"align="middle" scrolling="no" frameborder="0"></iframe></div>';
  }


      else if (media=='jpg')
  {
  
if (par=='rG')
{ShockwaveFlash='<img src="/ns/IMGU/'+par+'/'+yy+'/'+y+'.gif" alt="'+name+'" border="0" onClick="dem0()">';}
else
{ ShockwaveFlash='<img src="/ns/IMGU/'+par+'/'+yy+'/'+y+'.png" alt="'+name+'" border="0" onClick="dem0()">';}
  }
  

  
//alert(ShockwaveFlash);



//tbB='<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td nowrap width="16" height="40" > &nbsp; &nbsp; </td><td width="120" align="left" valign="middle" nowrap style=" font-weight: bold;"></td><td valign="middle"  width="80"></td><td width="70" valign="middle" nowrap>';

tbB='<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="120" align="left" valign="middle" nowrap  class="t3"> <b>Выбор урока</b></td><td width="70" valign="middle" nowrap>';


if (q==1)
{
tbB=tbB+'<img src="/Images/menu/pr0.gif" alt="" width="21" height="19" hspace="4" border="0" align="absmiddle" >';
}
else
{
tbB=tbB+'<img src="/Images/menu/pr.gif" alt="Перейти на предыдущий урок" width="21" height="19" hspace="4" border="0" align="absmiddle" onMouseOver="this.src=\'/Images/menu/pr1.gif\'" onMouseOut="this.src=\'/Images/menu/pr.gif\'" onClick="OpSm('+(q-1)+',0)" >';
}


if (q==uCount)
{
tbB=tbB+'<img src="/Images/menu/nx0.gif" alt="" width="21" height="19" hspace="4" border="0" align="absmiddle" >';
}
else
{
tbB=tbB+'<img src="/Images/menu/nx.gif" alt="Перейти на следующий урок" width="21" height="19" hspace="4" border="0" align="absmiddle" onMouseOver="this.src=\'/Images/menu/nx1.gif\'" onMouseOut="this.src=\'/Images/menu/nx.gif\'" onClick="OpSm('+(q+1)+',0)" >';
}



tbB=tbB+'</td><td  valign="middle" nowrap><div class="key1" style="cursor: pointer; width: 87px;"  onMouseOver=this.className="key11" onMouseOut=this.className="key1" onClick="OpJ(1)"> </div></td>';




 tbB=tbB+'<td align="right" valign="middle" nowrap class="t3"> <b>Управление уроком&nbsp;&nbsp;&nbsp;</b></td><td width="100" align="center" valign="middle" nowrap>';


if (a==0)
{
//tbB=tbB+'<img src="demo/data/images/begin0.jpg" alt="" width="84" hspace="5" height="33" border="0" align="absmiddle">';
tbB=tbB+'<div class="ke0" style="width: 87px;"> </div></td><td  align="right" valign="middle"   nowrap  style="width: 70px;">';
tbB=tbB+'<img src="/Images/menu/pr0.gif" alt="" width="21" height="19" hspace="4" border="0" align="absmiddle">';
}
else
{
//tbB=tbB+'<img src="demo/data/images/begin.jpg" alt="Перейти на первую часть урока" width="84" hspace="5" height="33" border="0" align="absmiddle" onMouseOver="this.src=\'data/images/begin1.jpg\'" onMouseOut="this.src=\'data/images/begin.jpg\'" onClick="OpSm('+q+',0)" >';

tbB=tbB+'<div class="key2"  onClick="OpSm('+q+',0)" style="cursor: pointer; width: 87px;"> </div></td><td align="right" valign="middle" nowrap style="width: 70px;">';

tbB=tbB+'<img src="/Images/menu/pr.gif" alt="Перейти на предыдущую часть урока" width="21" height="19" hspace="4" border="0" align="absmiddle"  onMouseOver="this.src=\'/Images/menu/pr1.gif\'" onMouseOut="this.src=\'/Images/menu/pr.gif\'" onClick="OpSm('+q+','+(a-1)+')" >';
}

if (a==i-1)
{
tbB=tbB+'<img src="/Images/menu/nx0.gif" alt="" width="21" height="19" hspace="4" border="0" align="absmiddle" >';
}
else
{
tbB=tbB+'<img src="/Images/menu/nx.gif" alt="Перейти на следующую часть урока" width="21" height="19" hspace="4" border="0" align="absmiddle" onMouseOver="this.src=\'/Images/menu/nx1.gif\'" onMouseOut="this.src=\'/Images/menu/nx.gif\'" onClick="OpSm('+q+','+(a+1)+')" >';


}

tbB=tbB+'</td>';



tbB=tbB+'</tr></table>';

document.getElementById('menuWB').innerHTML=u[q];
window.document.title = name+u[q];



document.getElementById('pred').innerHTML=name;




document.getElementById('tableTDD').innerHTML='<table border="0"   cellspacing="0" cellpadding="0"><tr>'+TDD+'</tr><tr valign="top">'+TDD1+'</tr></table>';
document.getElementById('tableT').innerHTML=ShockwaveFlash;	

document.getElementById('tableB').innerHTML=tbB;
 document.getElementById('tableM').style.visibility='hidden'
 
 //alert(t);
 


}
   
   
  
  
  
  
  
   function dem0()
   {
  document.getElementById('tableM').innerHTML= sTempStr1;	
 document.getElementById('tableM').style.visibility='visible'
  }
  
  
  

 
   

 function KM_DoFSCommand(command, args) {








if ((command=="eng") && 		(args=='0'))  {MEHY('menu_eng')}
if ((command=="math") && 		(args=='0'))  {MEHY('menu_math')}
if ((command=="rus") && 		(args=='0'))  	{MEHY('menu_rus')}
if ((command=="int") && 		(args=='0'))  {par='int';  init('int'); OpSmI(1);}//{MEHY('menu_int')}
if ((command=="mir") && 		(args=='0'))  	{MEHY('menu_mir')}
if ((command=="game") && 	(args=='0'))  	{par='game';  init('game'); OpSmI(1);}




if ((command=="m") && 		(args=='1'))  {par='m1'; init('m1'); OpSm(1,0); menuUU()}
if ((command=="m") && 		(args=='2'))  {par='m2'; init('m2'); OpSm(1,0); menuUU()}
if ((command=="m") && 		(args=='3'))  {par='m3'; init('m3'); OpSm(1,0); menuUU()}
if ((command=="m") && 		(args=='4'))  {par='m4'; init('m4'); OpSm(1,0); menuUU()}

if ((command=="r") && 		(args=='1'))  {par='r1'; init('r1'); OpSm(1,0); menuUU()}
if ((command=="r") && 		(args=='2'))  {par='r2'; init('r2'); OpSm(1,0); menuUU()}
if ((command=="r") && 		(args=='3'))  {par='r3'; init('r3'); OpSm(1,0); menuUU()}
if ((command=="r") && 		(args=='4'))  {par='r4'; init('r4'); OpSm(1,0); menuUU()}


if ((command=="o") && 		(args=='1'))  {par='o1'; init('o1'); OpSm(1,0); menuUU()}
if ((command=="o") && 		(args=='2'))  {par='o2'; init('o2'); OpSm(1,0); menuUU()}
if ((command=="o") && 		(args=='3'))  {par='o3'; init('o3'); OpSm(1,0); menuUU()}
if ((command=="o") && 		(args=='4'))  {par='o4'; init('o4'); OpSm(1,0); menuUU()}

if ((command=="r") && 		(args=='G'))  {par='rG'; init('rG'); OpSm(1,0); menuUU()}




if ((command=="e") && (args=='1'))  {par='e1'; init('e1'); OpSm(1,0);}

if ((command=="math") && (args=='1'))  {par='m1'; init('m1'); OpSm(1,0);}
if ((command=="math") && (args=='2'))  {par='m2'; init('m2'); OpSm(1,0);}
if ((command=="rus") && (args=='G'))  {par='rG'; init('rG'); OpSm(1,0);}

if ((command=="rus") && (args=='1'))  {par='r1'; init('r1'); OpSm(1,0);}
if ((command=="rus") && (args=='2'))  {par='r2'; init('r2'); OpSm(1,0);}

if ((command=="mir") && (args=='1'))  {par='o1'; init('o1'); OpSm(1,0);}
if ((command=="mir") && (args=='2'))  {par='o2'; init('o2'); OpSm(1,0);}



//if (jern) {OpJ(1);}


document.getElementById('vp').style.visibility='hidden';



if (t)
{

// для уроков математики и руского языка
var q0=y+".swf-0";
var q1=y+".swf-1";
var q2=y+".swf-2";




if (document.getElementById('tableT').innerHTML!='')
{


if (command=='[SWFResult01]')
{
StrComputer='';



if (args==rightanswer)
{







document.getElementById('t_'+aa).className='r0';

uu[qq]=uu[qq].replace(q2, q0);
uu[qq]=uu[qq].replace(q1, q0);


window.parent.frames("res").location.href='/res.asp?StrComputer='+StrComputer+'&par='+parU+'&u='+qq+'&n='+aa+'&w=0';

//alert('res.asp?StrComputer='+StrComputer+'&par='+parU+'&u='+qq+'&n='+aa+'&w=0')

}else{
document.getElementById('t_'+aa).className='g0';

uu[qq]=uu[qq].replace(q2, q1);
uu[qq]=uu[qq].replace(q0, q1);


window.parent.frames("res").location.href='/res.asp?StrComputer='+StrComputer+'&par='+parU+'&u='+qq+'&n='+aa+'&w=1';

//alert('res.asp?StrComputer='+StrComputer+'&par='+parU+'&u='+qq+'&n='+aa+'&w=1')




}

}

}


} //if (t)


}   



function onArrowKeyPress() {



}
   function mimgClose()
{
mimg.style.visibility='hidden';
mimgX.style.visibility='hidden';
tableMI.style.visibility='hidden';
tableM.innerHTML='';
tableMI.innerHTML='';



}
