[Carradio\SKODA\MUSIC SYSTEM 303 SKZAZ2  1U0 035 160B]

Size(310,470);  

Form {
    	HexDigit(Code,"Code ",70,15,100,4);
    	//CheckBox(ResetCounter,"Обнулить счётчик попыток",82,45);
	//ComboBox(CodeRequest,"Запрос кода",32,80,100,"Off","On");
	Group("Идентификация",5,75,300,45)		  
    {
        Label(part," ",65,20); 				// выводим part - это Serial Nomer carradio 
    }
	Group("Информация",5,120,300,50)		 
    {
        Label(message," ",0,22);			 
    }
    	Group("Описание",5,175,300,220) 		 
    {
        Label(lb1,"Code calculator for SKODA :",0,15);
    	Label(lb2,"Model:  MUSIC SYSTEM 303 SKZAZ2",32,30);
    	Label(lb3,"Sec. Type:  CODE 0000-1999",32,45);
	Label(lb4,"Manufacturen: TECHNISAT.",32,60);
	Label(lb5,"Partnumer:  1U0 035 160B ",32,75);
    	Label(lb6,"MCU:  M38869FFAHP ",32,90);
	Label(lb7,"EEPROM: 24C16",32,105);
	Label(lb8,"Sec.loc.: EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"Enter code: ",32,135);
    }
	Picture(Logo,"skoda.bmp",210,10,0,0);
    {
        Label(msg," ",0,405);				 
    } 
}

OnShow {
	msg.Color=0x0000FF;						 
        msg.Bold=1;							 
	msg="http://www.eeprom.lg.ua";				
        
	message.Bold = 1;  
    	Var0 = 1;
    	if(@0x300 != 0x53) { Var0 = 0;}	
    	if (Var0 = 0)
    {
        message.Color = 0x0000FF;
        Message = "Неверный дамп ! ";
        Code = 0;
    }
    else
    {
	var1=((@0x0C & 0x0F) << 12);
	var2=((@0x0D & 0x0F) << 8);
	var3=((@0x0E & 0x0F) << 4);
	var4=((@0x0F & 0x0F)  );	
        Code = var1 |var2 |var3 |var4;
	message.Color = 0xFF0000;
    	message.Bold = 1;
    	message = "  Дамп ОК. ";
	part = "Partnumber : "+#c.@0x2f4+#c.@0x2f5+#c.@0x2f6+" "+#c.@0x2f7+#c.@0x2f8+#c.@0x2f9+" "+#c.@0x2fa+#c.@0x2fb+#c.@0x2fc+#c.@0x2fd;
    }
}

OnApply {
	
}

