function showHideSubCatDes(recid,ind)
{
	var recid = recid;
	var ind = ind;
	if(!recid)
		return false;

	var apMat = "Mat_"+ind;
	var apPro = "Pro_"+ind;
	var apInd = "Ind_"+ind;
	var apPra = "Pra_"+ind;

	var tdMat = "tdMat_"+ind;
	var tdPro = "tdPro_"+ind;
	var tdInd = "tdInd_"+ind;
	var tdPra = "tdPra_"+ind;

	a = document.getElementById(apMat);
	b = document.getElementById(apPro);
	c = document.getElementById(apInd);
	d = document.getElementById(apPra);

	p = document.getElementById(tdMat);
	q = document.getElementById(tdPro);
	r = document.getElementById(tdInd);
	s = document.getElementById(tdPra);

	a.style.display = 'none';
	b.style.display = 'none';
	c.style.display = 'none';
	d.style.display = 'none';

	/////////	DEFAULT SETTING ///////993333//C10000
	if(p)
	{
	p.style.backgroundColor = '#666666';
	p.style.borderLeft = '2px #999999 solid';
	p.style.borderBottom = '2px #666666 solid';
	p.style.borderRight = '';
	p.style.borderTop = '';
	}
	if(q)
	{
	q.style.backgroundColor = '#666666';
	q.style.borderLeft = '2px #999999 solid';
	q.style.borderBottom = '2px #666666 solid';
	q.style.borderRight = '';
	q.style.borderTop = '';
	}
	if(r)
	{
	r.style.backgroundColor = '#666666';
	r.style.borderLeft = '2px #999999 solid';
	r.style.borderBottom = '2px #666666 solid';
	r.style.borderRight = '';
	r.style.borderTop = '';
	}
	if(s)
	{
	s.style.backgroundColor = '#666666';
	s.style.borderLeft = '2px #999999 solid';
	s.style.borderBottom = '2px #666666 solid';
	s.style.borderRight = '';
	s.style.borderTop = '';
	}
	if(recid==apMat)
	{
		a.style.display = '';
		p.style.backgroundColor = '#990233';
		p.style.borderLeft = '';
		p.style.borderBottom = '';
		p.style.borderRight = '2px #999999 solid';
		p.style.borderTop = '2px #666666 solid';
	}
	if(recid==apPro)
	{
		b.style.display = '';
		q.className = 'tdHg';

		q.style.backgroundColor = '#990233';
		q.style.borderLeft = '';
		q.style.borderBottom = '';
		q.style.borderRight = '2px #999999 solid';
		q.style.borderTop = '2px #666666 solid';
	}
	if(recid==apInd)
	{
		c.style.display = '';
		r.className = 'tdHg';

		r.style.backgroundColor = '#990233';
		r.style.borderLeft = '';
		r.style.borderBottom = '';
		r.style.borderRight = '2px #999999 solid';
		r.style.borderTop = '2px #666666 solid';
	}
	if(recid==apPra)
	{
		d.style.display = '';
		s.className = 'tdHg';

		s.style.backgroundColor = '#990233';
		s.style.borderLeft = '';
		s.style.borderBottom = '';
		s.style.borderRight = '2px #999999 solid';
		s.style.borderTop = '2px #666666 solid';
	}
	return true;
}
function validation()
{
	loginname = document.getElementById('login');
	password = document.getElementById('password');
	if(loginname.value=="")
	{
		alert('Please Enter Username');
		return false;
	}
	if(password.value == "")
	{
		alert('Please Enter Password');
		return false;
	}
	return true;
}
