[Carradio\MERCEDES\BENZ SOUND 1000  DB1019]
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," ",0,17);		 
    }
    	Group("Описание",5,165,300,220) 		 
    {
        Label(lb1,"Code calculator for MERCEDES :",0,15);
    	Label(lb2,"Model:  BENZ SOUND 1000",32,30);
    	Label(lb3,"Sec. Type:  CODE 0000-9999",32,45);
	Label(lb4,"Manufacturen: GRUNDIG.",32,60);
	Label(lb5,"Partnumer:  DB1019   9.18338",32,75);
    	Label(lb6,"MCU:  D17003AGFE14 ",32,90);
	Label(lb7,"EEPROM: 24C016 smd = 24C01",32,105);
	Label(lb8,"Sec.loc.:  EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"Enter code: ",5,135);
	//Label(lb11,"               ",5,150);
    }
	Picture(Logo,"mercedes.bmp",210,10,0,0);
    {
        Label(msg," ",0,395);				 
    } 
}

OnShow {
	msg.Color=0x0000FF;			 
        msg.Bold=1;				 
	msg="http://www.eeprom.lg.ua";		
        
    	var1 = @0x071; 				 
	var2 = @0x072; 				 
	var3 = @0x07A;
			
	var10 = 1;  
    	if ( var1 != var3 ) { var10 = 0;}	 
	if ( var10 = 0 ) { message.Bold = 1; message.Color = 0x0000FF; message = "Неверный дамп ! "; Code = 0; }
    else
    {
	var1 = var1 << 8;
	Code = var1 | var2 ;

	message.Color = 0xFF0000;
    	message.Bold = 1;
    	message = "Дамп ОК. ";
   }    
}

