[Carradio\GRUNDIG\WKC 3880 RDS INFOMAT]
Size(310,460);  

Form {
    	HexDigit(Code,"Code ",70,15,100,4);
    	//CheckBox(ResetCounter,"Обнулить счётчик попыток",82,85);
	//ComboBox(CodeRequest,"IMMO ",65,50,50,"On","Off");
	
	
    	Group("Информация",5,120,300,40)	 
    {
        Label(message," ",30,17);		
    }
    	Group("Описание",5,165,300,220) 	 
    {
        Label(lb1,"Code calculator for GRUNDIG :",0,15);
    	Label(lb2,"Model:  WKC 3880 RDS INFOMAT",32,30);
    	Label(lb3,"Sec. Type:  CODE 0000-9999",32,45);
	Label(lb4,"Manufacturen: GRUNDIG.",32,60);
	Label(lb5,"Partnumer:  GR0608   9.18204 ",32,75);
    	Label(lb6,"MCU:  MC68HC11E9 or HC11A8 (WKC38X0 V2.2)",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: 1 - - - -,  ввод кн. 1-4 ,подтв. кн.FM. 3сек.",5,135);
	//Label(lb11,"               ",5,150);
    }
	Picture(Logo,"grundig.bmp",210,10,0,0);
    {
        Label(msg," ",0,395);				 
    } 
}

OnShow {
        msg.Color=0x0000FF;				
        msg.Bold=1;					
	msg="http://www.eeprom.lg.ua";		 
        
	var1 = @0x00; var2 = var1 ^ 0x5A; var3 = @0x02; 
	message.Bold = 1;  
    	var10 = 1;
    	if(var2 != var3) { Var10 = 0;}	
    	if (var10 = 0) {message.Color = 0x0000FF; message = "                Неверный дамп ! "; Code = 0;}  
    else
    {  
	var1 = 0; var2 = 0;
	var1 = @0x00; var2 = @0x03;
	var1 = var1 << 8;
	Code = var1 | var2 ;
	message.Color = 0xFF0000;
	message.Bold = 1;
	message = "                      Дамп OK."; 
    }
}

OnApply {
	
}
