function RestrictLength(controlname, maxLimit)
{
		
	if (document.getElementById(controlname).value.length > maxLimit)
	{	
		return false;
	}
}

function  CheckData_Null(strControlName,strMsg) 
{		
	if(document.getElementById(strControlName).value=="")
	{				
		alert (strMsg);
		document.getElementById(strControlName).focus();	
		return false;
	}	
	return true;
}

function button_save_extra_onclick()
{
	return true;
}

function button_new_extra_onclick()
{
	return true;
}

///textbox:0, combo:1, checkbox :2 , 3: hideen control
function ClearControl(strControlName,kindcontrol)
{
	if(kindcontrol==0)
	{
		document.getElementById(strControlName).value="";
	}
	if(kindcontrol==1)
	{
		document.getElementById(strControlName).value="";
	}
	if(kindcontrol==2)
	{
		document.getElementById(strControlName).checked=false;
	}
	if(kindcontrol==3)
	{
		document.getElementById(strControlName).value="";
	}
}
function Show_DIV(ctr)
{
	if (document.getElementById(ctr).style.display=='none')
	{
		document.getElementById(ctr).style.display='';
	}
	else
	{
		document.getElementById(ctr).style.display='none';
	}
	
}
