[Carradio\BLAUPUNKT\ACR 3251 RDS BP5500 v2]

Size(310,460);  

Form {
    	HexDigit(Code,"Code ",70,15,100,4);
	//ComboBox(CodeRequest,"Запрос кода",72,45,50,"Off","On");
    	//CheckBox(ResetCounter,"Обнулить счётчик попыток",82,80);
	
	Group("Информация",5,110,300,50)		 
    {
        Label(message," ",0,22);			 
    }
    	Group("Описание",5,165,300,220) 		 
    {
        Label(lb1,"Code calculator for  BLAUPUNKT :",0,15);
    	Label(lb2,"Model:  ACR 3251 RDS BP5500",32,30);
    	Label(lb3,"Sec. Type:  CODE 0000-9999",32,45);
	Label(lb4,"Manufacturen:  BLAUPUNKT.",32,60);
	Label(lb5,"Partnumer:  7 645 500 510 ( 513 ) ",32,75);
    	Label(lb6,"MCU: TMP47C847F-G435 (8925904045)",32,90);
	Label(lb7,"EEPROM:  24C016 smd ",32,105);
	Label(lb8,"Sec.loc.: EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"Enter code: кнопками FM, AF, TA, TS   подтв. >",32,135);
    }
	Picture(Logo,"blaupunkt.bmp",210,18,0,0);
    {
        Label(msg," ",0,395);				
    } 
}

OnShow {
	msg.Color=0x0000FF; msg.Bold=1;	msg="http://www.eeprom.lg.ua";		  
        
	var1 = @0x69 << 8;
	var2 = @0x68 ;
	code = var1 | var2 ;

	ResetCounter = 0;
	if ( @0x03!= 0x85 ) { ResetCounter = 1;}
	if ( ResetCounter = 1 ) { message.Color = 0x0000FF; message.Bold = 1; message = "Обнулите счётчик попыток !!!";	ResetCounter = 1; }
    else
	{
	message.Color = 0xFF0000; message.Bold = 1; message = "Счётчик попыток OK.";
	ResetCounter = 0;
	}
}

OnApply {
	if(ResetCounter = 1) { @0x03 = 0x85; @0x6A = 0x00;}
	message.Bold = 1; message.Color = 0xFF0000; message = "Счётчик попыток успешно изменён.";
    }