[Carradio\BLAUPUNKT\WIESBADEN RCM85 BP5730]
Size(310,460); 
Form { 	HexDigit(Code,"Code ",80,15,60,4);
	ComboBox(CardRequest,"Запрос карты",72,45,50,"Off","On");
	ComboBox(CodeRequest,"Запрос кода  ",73,75,50,"Off","On");	
	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:  WIESBADEN RCM85 BP5730",32,30);
    	Label(lb3,"Sec. Type:  SMARTCARD",32,45);
	Label(lb4,"Manufacturen:  BLAUPUNKT.",32,60);
	Label(lb5,"Partnumer:  7 645 730 010",32,75);
    	Label(lb6,"MCU:  MC68HC05B6 or MC68HC05B16",32,90);
	Label(lb7,"EEPROM:  no ",32,105);
	Label(lb8,"Sec.loc.:  MCU",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"Enter code: FM + 4,  code,  подтв. кн. ^",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"; 
        var10=0; if(@0x01=0xFF){var10=var10+1;} if(@0x02=0xFF){var10=var10+1;}	
    	if(var10=2){ message.Bold=1; message.Color=0x0000FF; message="Неверный дамп !"; Code=0;}
   	else { var1=@0x01; var1=var1<<8; var2=@0x02; code=var1|var2;
	var20=@0x05; var21=@0x15; var22=@0x25; var23=@0x35; var24=@0xF01; 
	CardRequest=1; if(@0x05=0x00){CardRequest=0;} if(@0x05=0xC0){CardRequest=1;}  
	CodeRequest=0; if(@0x03=0xF7){CodeRequest=0;} if(@0x03=0x40){CodeRequest=1;}
	message.Color=0xFF0000; message.Bold=1; message="Дамп OK."; } }
OnApply{var10=0; if(@0x01=0xFF){var10=var10+1;}	if(@0x02=0xFF){var10=var10+1;}	
    	if(var10=2){message.Color = 0x0000FF; message = "Неверный дамп !  Запись прекращена !"; Code=0;}
	else { @0x01=Code>>8&255; @0x02=Code&255; @0x11=Code>>8&255; @0x12=Code&255; @0x21=Code>>8&255; @0x22=Code&255;
	if(CodeRequest=0){@0x03=0xF7; @0x13=0xF7; @0x23=0xF7;} if(CodeRequest=1){@0x03=0x40; @0x13=0x40; @0x23=0x40;}
	if(CardRequest=1){@0x05=var20; @0x15=var21; @0x25=var22; @0x35=var23; @0xF1=var24; }
	if(CardRequest=0){@0x05=0x00; @0x15=0x00; @0x25=0x00; @0x35=0x00; @0xF1=0x00; }
	message.Color = 0xFF0000; message.Bold = 1; message = "Запрос карточки и кода успешно изменён."; } }
