var divwin='';
function div_open()
{
	
	divwin=dhtmlwindow.open('divbox', 'div', 'somediv', 'Lexvidhi', 'width=850px,height=450px,left=100px,top=50px,resize=1,scrolling=0'); return false;
}


function div_admin_open()
{
	
	divwin=dhtmlwindow.open('divbox', 'div', 'somediv', 'Lexvidhi', 'width=850px,height=500px,left=100px,top=50px,resize=1,scrolling=0'); return false;
}



function div_open2()
{
	
	if(document.getElementById('cat_name').value=='Enter Practice Area')
	{
		
	divwin=dhtmlwindow.open('divbox', 'div', 'somediv', 'Lexvidhi', 'width=850px,height=450px,left=100px,top=150px,resize=1,scrolling=0'); return false;
	}
}

function get_val()
{
document.getElementById('cat_name').value=document.getElementById('cat_namep').value;
document.getElementById('cat_namep').focus();
divwin.hide(); return false
}
function put_val(val)
{
	var str='';
	if(document.getElementById('cat_namep').value=='')
	{		
	document.getElementById('cat_namep').value=val;
	} else
	{
		str=document.getElementById('cat_namep').value;		
		str=str+","+val;		
		document.getElementById('cat_namep').value=str;
	} 
}

function get_cancel()
{	
	document.getElementById('cat_namep').value='';
	divwin.hide(); return false
}

function div_progress()
{

	divwin=dhtmlwindow.open('divbox', 'div', 'progressdiv', 'Lexvidhi', 'width=500px,height=200px,left=200px,top=50px,resize=1,scrolling=0'); return false;
}
function progress_close()
{		
	divwin.hide(); return false
}
