[Carradio\RENAULT\CTR 560]
Size(310,395);
Form { 	HexDigit(Code,"Code ",70,15,60,4);
    	CheckBox(ResetCounter,"Обнулить счётчик попыток",82,40);
	Group("Информация",5,60,300,40)   { Label(message," ",0,17);}
    	Group("Описание",5,100,300,220)    {
        Label(lb1,"Code calculator for RENAULT :",0,15);
    	Label(lb2,"Model:  CTR 560",32,30);
    	Label(lb3,"Sec. Type:  CODE 4dig",32,45);
	Label(lb4,"Manufacturen: AUTOSOUND.",32,60);
	Label(lb5,"Partnumer:  ASO560",32,75);
    	Label(lb6,"MCU:  D1719G570 ",32,90);
	Label(lb7,"EEPROM:  CXK1012  ( 128x8 )",32,105);
	Label(lb8,"Sec.loc.: EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"Enter code: ",32,135);    }
	Picture(Logo,"renault.bmp",250,10,0,0);  { Label(msg," ",0,330); } }
OnShow {msg.Color=0x0000FF; msg.Bold=1;	msg="http://www.eeprom.lg.ua";	
        var1=@0x40&0xF0; var2=@0x43&0xF0; var3=@0x46&0xF0; var4=@0x49&0xF0;
	var1=var1<<8; var2=var2<<4; var3=var3; var4=var4>>4;
	var10=0; if(@0x40=0xFF){var10=var10+1;} if(@0x43=0xFF){var10=var10+1;} if(@0x46=0xFF){var10=var10+1;} if(@0x49=0xFF){var10=var10+1;} 
	if(var10=4){message.Color=0x0000FF; message.Bold=1; message = "Неверный дамп !!!"; Code=0; }
	else { Code=var1|var2|var3|var4; ResetCounter=1; if(@0x54!=0x20){ResetCounter=0;}
	if(ResetCounter=0){message.Color=0x0000FF; message.Bold=1; message="Обнулите счётчик попыток !!!"; ResetCounter = 1;}
    else{message.Color=0xFF0000; message.Bold=1; message="Счётчик попыток OK.";	ResetCounter=0;}} }
OnApply {var10=0; if(@0x40=0xFF){var10=var10+1;} if(@0x43=0xFF){var10=var10+1;} if(@0x46=0xFF){var10=var10+1;} if(@0x49=0xFF){var10=var10+1;} 
	if(var10=4){message.Color=0x0000FF; message.Bold=1; message = "Неверный дамп !  Запись прекращена !"; Code=0; }
	else {if(ResetCounter=1){@0x54=0x20;}
	message.Color=0xFF0000; message.Bold=1; message="Счётчик попыток успешно изменён."; }}}