
function  isYou(date1,date2)
{
	arr_date1=date1.split(":");
    arr_date2=date2.split(":");
	
	now =new  Date();
	y=parseInt(now.getFullYear());
	m=parseInt(now.getMonth());
	d=parseInt(now.getDate());
	t_now=Date.UTC( y,m, d, parseInt(now.getHours())+1,parseInt(now.getMinutes()),0); 
	t1= Date.UTC( y,m, d,arr_date1[0],arr_date1[1],0);
	t2= Date.UTC( y,m, d,arr_date2[0],arr_date2[1],0);

	if(t2>=t_now && t1<=t_now)
	{
		return true;
	}
	else
	{
		return false;
	}
}

function checkMe()
{
	for(i=0;i<arr.length;i++)
	{
	  //  document.getElementById("time_div1").innerText=i;
		temp = arr[i].split("-");
		div_name = arr_div[i];
		divobj=document.getElementById(div_name);
		if(isYou(temp[0],temp[1])==true)
		{
			change_color1(divobj);
		}
		else
		{
			change_color2(divobj);
		}
	}
}

function change_color1(obj)
{
	obj.className="time_css1";
}

function change_color2(obj)
{
	obj.className="time_css2";
}