
function checkKeywordCategory()
{
	var catId=Validation.Trim(document.getElementById('scat_id').value);	
/*
	var kw=  Validation.Trim(document.getElementById('keyword').value);
	if(kw=='' || kw=='Search')
	{
		document.getElementById('keyword').style.border="1px solid #FF0000";
		document.getElementById('keyword').style.background="#FFDDE7";
		return false;	
	}
	(kw !=''  && kw!='Search') && 
*/
	if( (catId==0 || catId == '') )
	{
		//document.getElementById('keyword').style.border="";
		//document.getElementById('keyword').style.background="";		
		document.getElementById('scat_id').style.border="1px solid #FF0000";
		document.getElementById('scat_id').style.background="#FFDDE7";
		return false;
	}
	//document.getElementById('keyword').style.border='';
	//document.getElementById('keyword').style.background="";	
	document.getElementById('scat_id').style.border='';
	document.getElementById('scat_id').style.background="";
	return true;
}
function checkKeywordCategory2()
{
	var city_id=Validation.Trim(document.getElementById('city_id2').value);	
	var keyword=Validation.Trim(document.getElementById('keyword').value);	
	if( ( city_id == '') )
	{
		if(keyword=='Search' || keyword==''){
		document.getElementById('city_id2').style.border="1px solid #FF0000";
		document.getElementById('city_id2').style.background="#FFDDE7";
		document.getElementById('keyword').style.border="1px solid #FF0000";
		document.getElementById('keyword').style.background="#FFDDE7";
		return false;
		}
	}
	document.getElementById('keyword').style.border="";
	document.getElementById('keyword').style.background="";
	document.getElementById('city_id2').style.border='';
	document.getElementById('city_id2').style.background="";
	return true;
}
