[Carradio\VW\PREMIUM AUDIO PE-9839W01 VWZ9Z7]

Size(280,360);  

Form {

    	HexDigit(Code,"Code",70,15,70,4);
    	//CheckBox(ResetCounter,"Обнулить счётчик попыток",65,45);
    	
	Group("Информация",5,60,270,40)	 
    {
        Label(message," ",0,18);		 
    }
    	Group("Описание",5,100,270,190) 	 
    {
        Label(lb1,"Code calculator for VW :",0,15);
    	Label(lb2,"Model: PREMIUM AUDIO PE-9839W01 VWZ9Z7",12,30);
    	Label(lb3,"Sec. Type:  CODE 0000-1999",32,45);
	Label(lb4,"Manufacturen:  CLARION.",32,60);
	Label(lb5,"Partnumer:  1HM 035 186D",32,75);
    	Label(lb6,"MCU: D75517GF372",32,90);
	Label(lb7,"EEPROM:  93С46 ",32,105);
    	Label(lb8,"Sec.loc.: EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,170);
    	Label(lb10,"Enter code:  MODE+SCAN, code, MODE+SCAN ",10,135);
    }
	Picture(Logo,"vw.bmp",200,5,0,0);
    {
        Label(msg," ",0,295);			
    } 
}

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

OnApply {

}
