[Carradio\VW\PREMIUM 7 6CD MP3  VWZ5Z7]

Size(270,410);  

Form {
	CheckBox(CodeRequest,"Без кода",65,25);
		
	Group("Информация",5,65,260,50)		 
    {
        Label(message," ",0,22);		 
    }
    	Group("Описание",5,120,260,220) 	 
    {
        Label(lb1,"Code calculator for VW :",0,15);
    	Label(lb2,"Model: PREMIUM 7 6CD MP3  VWZ5Z7",32,30);
    	Label(lb3,"Sec. Type:  CODE 4dig",32,45);
	Label(lb4,"Manufacturen: MATSUSHITA.",32,60);
	Label(lb5,"Partnumer:  CQ-EV1463G 1K0 035 180G",32,75);
    	Label(lb6,"MCU:  M32CM30833FJGP + SAA7724H/105",32,90);
	Label(lb7,"EEPROM: S330 = 93C66",32,105);
	Label(lb8,"Sec.loc.: EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"Enter code:  ",10,135);
    }
	Picture(Logo,"vw.bmp",180,10,0,0);
    {
        Label(msg," ",0,345);			 
    } 
}

OnShow {
	msg.Color=0x0000FF; msg.Bold=1;	msg="http://www.eeprom.lg.ua";
        
	var0=0;
	if(@0x1C!=0x57){var0=1;}
	if(@0x1D!=0x56){var0=1;}
	if(@0x1E!=0x35){var0=1;}
	if(@0x1F!=0x5A){var0=1;}
	if(@0x20!=0x37){var0=1;}
	if(@0x21!=0x5A){var0=1;}
	if(@0x22!=0x32){var0=1;}
	if(var0=1){ message.Bold=1; message.Color=0x0000FF; message="Неверный дамп !!!"; }
    else
    	{
	CodeRequest=1 ;
	if(@0x1B!=0x0C) { CodeRequest=0; } 
	message.Bold=1; message.Color=0xFF0000; message="Дамп ОК.";    
        }
}

OnApply {
	if(CodeRequest=0) { @0x1B=0x0D; @0x11B=0x0D; }
	if(CodeRequest=1) { @0x1B=0x0C; @0x11B=0x0C; }
	message.Color=0xFF0000; message.Bold=1;	message="Запрос кода изменён.";
}

