[Carradio\BMW\RCC100-07 no immo]
Size(310,460);  

Form {
    	//HexDigit(Code,"Code ",70,15,100,4);
    	//CheckBox(ResetCounter,"Обнулить счётчик попыток",82,85);
	ComboBox(CodeRequest,"IMMO ",85,50,50,"On","Off");
	
//	Group("Идентификация",5,75,300,40) { Label(sn," ",60,18); }
	
    	Group("Информация",5,120,300,40)	 
    {
        Label(message," ",0,17);		 
    }
    	Group("Описание",5,165,300,220) 		 
    {
        Label(lb1,"Code calculator for BMW :",0,15);
    	Label(lb2,"Model:  RCC100-07",32,30);
    	Label(lb3,"Sec. Type:  IMMO",32,45);
	Label(lb4,"Manufacturen: PHILIPS.",32,60);
	Label(lb5,"Partnumer:   ",32,75);
    	Label(lb6,"MCU: ST10F168",32,90);
	Label(lb7,"EEPROM:  24C64 ",32,105);
	Label(lb8,"Sec.loc.:  EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"     Take 5V from pin8 of EEPROM, END to Chassis. ",5,135);
	Label(lb11,"     Disable CanCheck - Change Value as indicated.",5,150);
    }
	Picture(Logo,"bmw.bmp",210,10,0,0);
    {
        Label(msg," ",0,395);				 
    } 
}

OnShow {
        msg.Color=0x0000FF; msg.Bold=1; msg="http://www.eeprom.lg.ua";		  
        	  
    	Var0=1;
    	if(@0x12fc!=0xca) {Var0=0;}
    	if(@0x12fd!=0xfe) {Var0=0;}
    	if(@0x12fe!=0x05) {Var0=0;}
    	if(Var0=0){message.Bold=1; message.Color=0x0000FF; message="Неверный дамп !";}
	else
	{
	if(@0x12ff=0x01) {CodeRequest=1;}  
	if(@0x12ff=0x02) {CodeRequest=0;} 
//	sn="Serial No.:   "+#c.@0x7a+#c.@0x7b+#c.@0x7c+#c.@0x7d+#c.@0x7e+#c.@0x7f+#c.@0x80+#c.@0x81+#c.@0x82+#c.@0x83+#c.@0x84+#c.@0x85+#c.@0x86+#c.@0x87;
    	message.Bold=1; message.Color=0xFF0000; message="Дамп ОК.";
   }
}

OnApply {
	Var0=1;
    	if(@0x12fc!=0xca) {Var0=0;}
    	if(@0x12fd!=0xfe) {Var0=0;}
    	if(@0x12fe!=0x05) {Var0=0;}
    	if(Var0=0){message.Bold = 1; message.Color=0x0000FF; message="Неверный дамп !  Запись прекращена !";}
    else
    	{
	if(CodeRequest=0) {@0x12ff=0x02;}
    	if(CodeRequest=1) {@0x12ff=0x01;}
	message.Color=0xFF0000; message.Bold=1; message="Запрос  IMMO   успешно изменён.";
    }
}
