function func_form_validate(obj_form)
{
	//alert("here");
	var b_correct=true;
	if(obj_form.q.value == "")
	{
		alert("Please give keyword for search.");
		b_correct=false;
		obj_form.q.focus();
	}
	return b_correct;
}

function formatWithOffset(offset) 
{
	var time = new Date();
	time.setTime(time.getTime() + offset*60*60*1000);
	h = time.getUTCHours();
	h=((h < 10) ? "0" : "") + h;
	m = time.getUTCMinutes();
	m=((m < 10) ? "0" : "") + m;
	return(h + ':' + m);
}

function setWorldTimes() 
{
	var time = new Date()
	var DSTOffset;
	var DSTOffsetDLON;
	var DSTOffsetDLOFF;
	
	tsoffset = time.getTimezoneOffset()/60;
	
	DSTOffsetDLON  = 1; // for controlling New York and Seattle time
	DSTOffsetDLOFF = 0;

	if(fuseaction && fuseaction == "showhome")
	{
	//Time Zone

		document.getElementById("time").innerHTML = "Seattle &nbsp;<span class=\"clrTimeZoneBlue\">" + formatWithOffset(-8+DSTOffsetDLOFF) + "</span>&nbsp;&nbsp;New York &nbsp;<span class=\"clrTimeZoneBlue\">" + formatWithOffset(-5+DSTOffsetDLOFF) + "</span>&nbsp;&nbsp;London &nbsp;<span class=\"clrTimeZoneBlue\">" + formatWithOffset(DSTOffsetDLOFF) + "</span>&nbsp;&nbsp;Dubai &nbsp;<span class=\"clrTimeZoneBlue\">" + formatWithOffset(4+DSTOffsetDLOFF) + "</span>&nbsp;&nbsp; Bejing &nbsp;<span class=\"clrTimeZoneBlue\">" + formatWithOffset(8+DSTOffsetDLOFF) + " </span>&nbsp;&nbsp; Sydney &nbsp;<span class=\"clrTimeZoneBlue\">" + formatWithOffset(11+DSTOffsetDLOFF) + "</span>";

	//Time Zone ends
	}

	timer = setTimeout("setWorldTimes()",1000);
	return true;
}
