//Хозяин дневника или нет
ptype=0;
if (auth == 1)
{
	if (curj==userid)
	{
		var utype=1;
	} 
	else
	{
		var utype=0;
	}
}