var message="Function Disabled!";
function clickIE() 
{
	if (document.all)
	{
		(message);
		return false;
	}
}

function clickNS(e)
{
	if(document.layers||(document.getElementById&&!document.all))
	{
		if (e.which==1||e.which==2||e.which==3)
		{
			(message);
			return false;
		}
	}
}

if (document.layers)
{
	document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
}
else
{
	document.onmouseup=clickNS;document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false") 

function disableselect(e)
{
	return false
}

function reEnable()
{
	return true;
}

document.onselectstart=new Function ("return false")
if (window.sidebar)
{
	document.onmousedown=disableselect
	document.onclick=reEnable
}

function popupratings()
{
	open("","new","scrollbars=yes,toolbar=0,locationbar=0,statusbar=0,width=576,height=516");
}
function popupsubreview()
{
	var left = (screen.width-576)/2;
	var top = (screen.height-700)/2;	
	open("","new","scrollbars=yes,toolbar=0,locationbar=0,statusbar=0,width=576,height=705,left=100,top=50");
}
function popupeditfirm(name)
{
		document.formfirmdetail.action="jdaddfirm.php?name=#"+name;
		document.formfirmdetail.clswafirm_firmid.value=0;
		document.formfirmdetail.clswabranch_branchid.value=0;
		document.formfirmdetail.clswafirm_hdnsubmited.value="";
		document.formfirmdetail.submit();
}
function popupmainbranch()
{
	open("","new","scrollbars=yes,toolbar=0,locationbar=0,statusbar=0,width=280,height=216");
}
function addbranch()
{
	document.formfirmdetail.clswafirm_hdnaction.value="addoffice";
	document.formfirmdetail.clswabranch_branchid.value=0;
	document.formfirmdetail.clswafirm_hdnsubmited.value=1;
	document.formfirmdetail.action="jdaddfirm.php";
	document.formfirmdetail.submit();
}
function navigatepage(clslistname,pageno)
{
	document.getElementById(clslistname+"_currentpage").value=pageno;
	document.formfirmdetail.submit();
	return;
}