public static void addDeleteDzien(int ID)
{
	boolean flaga=true;
	for (int i=0 ; i<DniDelete[0] ; i++)
	{
		if(ID==DniDelete[i+2])
		{
			flaga=false;
			break;
		}
	}
	for( int i = 0; i<DniInsert[0] ; i++)
	{
		if(ID==DniInsert[i+2])
		{
			flaga=false;
			break;
		}
	}
	if(flaga)
	{
		//  Count          ArraySize
		if (DniDelete[0]+2 >=DniDelete[1]) 
		{
	        int[] tempArray = new int[DniDelete[1]];
	        for (int i = 0; i < DniDelete[1]; i++)
	        	tempArray[i] = DniDelete[i];
	        tempArray[1]+= 3;  
	        DniDelete = null;         
	        DniDelete = new int[tempArray[1]];
	        for (int i = 0; i < (tempArray[1] - 3); i++) {
	        	DniDelete[i] = tempArray[i];
	        }
	    }
		DniDelete[2+DniDelete[0]] = ID; 
	    //System.out.println("dodalem :"+tablica[2+tablica[0]]+"    count"+tablica[0]+"  arraysize"+tablica[1]);
		DniDelete[0]++;
	}
}