[Carradio\FIAT\PUNTO MID RHD BP9375 no cancheck]
Size(310,460);  

Form {

    	//HexDigit(Code,"Code",70,15,100,4);
    	ComboBox(CodeRequest,"CANCHECK ",70,42,50,"On","Off");
    	
	Group("Идентификация",5,65,300,60)	  
    {
        //Label(part," ",45,20); 		  
	//Label(sn," ",45,35); 			 
    }
    	Group("Информация",5,130,300,50)	 
    {
        Label(message," ",0,22);		 
    }
    	Group("Описание",5,185,300,200) 	 
    {
        Label(lb1,"Code calculator for FIAT :",0,15);
    	Label(lb2,"Model:   PUNTO MID RHD BP9375",32,30);
    	Label(lb3,"Sec. Type:  IMMO + CODE 1111-6666",32,45);
	Label(lb4,"Manufacturen: BLAUPUNKT.",32,60);
	Label(lb5,"Partnumer:  7 649 374 316",32,75);
    	Label(lb6,"MCU:  M990B0009C",32,90);
	Label(lb7,"EEPROM: 25LC160 smd",32,105);
    	Label(lb8,"Sec.loc.: EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,180);
    	Label(lb10,"Enter code:   ",32,135);
    }
	Picture(Logo,"fiat.bmp",210,0,0,0);
    {
        Label(msg," ",0,395);			 
    } 
}


OnShow {
	msg.Color = 0x1000FF;			 
        msg.Bold = 1;				 
	msg = "http://www.eeprom.lg.ua";	
        
	message.Bold = 1;  
    	var0 = 1;
	var10 = @0x14; var11 = @0x24; var12 = var11 ^ 0xFF;
    	if (var10 != var12) { var0 = 0;}	
    	if (var0 = 0)
    {
        message.Color = 0x1000FF;
        Message = "Неверный дамп ! ";
        //Code = 0;
    }
    else
    {
	message.Color = 0xFF0000;
    	message.Bold = 1;
    	message = "Дамп ОК. ";
	var1 = @0x10 & 0x0F;
	if(var1 = 0x0B) { CodeRequest = 1; }  
    	if(var1 = 0x0A) { CodeRequest = 0; } 
   }
}

OnApply {
	var0 = 1;
	var10 = @0x14; var11 = @0x24; var12 = var11 ^ 0xFF;
    	if (var10 != var12) { var0 = 0;}	
    	if (var0 = 0) { message.Color = 0x0000FF; message = "Неверный дамп !  Запись прекращена !"; }
    else
    	{
	if (CodeRequest = 1) { @0x10 = 0x8B; @0x20 = 0x74; @0x30 = 0xD1; }
    	if (CodeRequest = 0) { @0x10 = 0x8A; @0x20 = 0x75; @0x30 = 0xD0;}
	message.Color = 0xFF0000;
        message.Bold = 1;
       	message = "Запрос CANCHECK успешно изменён.";
    }
}
