
function bval(obj)
{   
	tit=obj.title;
	//alert(tit);
	clna=obj.className;
	if(clna=='defalt')
	{
		obj.value='';
		obj.className='defalt1';
	}

}
function rval(obj)
{   tit=obj.title;
	//alert(tit);
	clna=obj.value;
	if(clna=='')
	{	obj.value=tit;
		obj.className='defalt';
	}
}
function submitfrm(id)
{   

		clna=document.getElementById('keyword').className;
		frmyeari=document.getElementById('frmyear').selectedIndex;
		toyear1=document.getElementById('toyear').selectedIndex;
		//	alert(toyear1);
		if(clna=='defalt' && frmyeari==0 && toyear1==0 )
		{
			document.getElementById('keyword').value='';
			document.getElementById('keyword').focus();
			return false;
		}else
		{
			if(clna=='defalt')
			{
			document.getElementById('keyword').value='';
			}
			document.getElementById(id).submit();
		}	
}

function zAlert()
{
	
	
	document.getElementById('disablingDiv').style.display='block'	
		
	
}
function HzAlert()
{	
document.getElementById('disablingDiv').style.display='none'
document.getElementById("light").style.display="none";
}
function getObj(name)
{
	if (document.getElementById) // test if browser supports document.getElementById
	{
		obj = document.getElementById(name);		
	}
	else if (document.all) // test if browser supports document.all
	{
		obj = document.all[name];
		
	}
	else if (document.layers) // test if browser supports document.layers
	{
		obj = document.layers[name];
		
	}
	return obj;
}
function popupWindow(url) {
	
	win = window.open(url ,'opupWin','width=660,height=500,left=150,top=150,resizable,scrollbars=yes');
	win.focus();
}