function ShowDocDetail(URL)
{
	OpenWindow(URL);
	return false;

}

/* ---------------------------------------------------------------------------- */

function OpenMiniWindow(URL)
{

	window.open(URL, null, "width=300,height=300,left=200,top=80,status=yes,scrollbars=yes,resizable=yes");
	return false;
	
}

/* ---------------------------------------------------------------------------- */

function OpenWindow(URL)
{

	window.open(URL, null, "width=500,height=500,left=200,top=80,status=yes,scrollbars=yes,resizable=yes");
	return false;
	
}

/* ---------------------------------------------------------------------------- */

function ShowSentPayFishes()
{

	window.open('SentPayFishes.php', null, "width=800,height=500,left=200,top=80,status=yes,scrollbars=yes,resizable=yes");
	return false;
	
}

/* ---------------------------------------------------------------------------- */

function LoginIt(Sender)
{
	if(Sender.UserName.value == '')
	{
		alert('لطفا نام کاربري را وارد نماييد');
		Sender.UserName.focus();
		return false;
	}
	
	if(Sender.Password.value == '')
	{
		alert('لطفا واژه رمز را وارد نماييد');
		Sender.Password.focus();
		return false;
	}
	
	LoginPrint('در حال بررسي مشخصات...');

	return true;
}

/* ---------------------------------------------------------------------------- */

function LoginPrint(TheData)
{
	window.document.getElementById('LoginStatusText').innerHTML = TheData;
}

function ClearLoginStatus()
{
	window.document.getElementById('LoginStatusText').innerHTML = '';
}

/* ---------------------------------------------------------------------------- */

function EmailAddrValidate(EmailAddr)
{
	var re=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/;
	return re.test(EmailAddr);
}

/* ---------------------------------------------------------------------------- */

function EditRoot(RootID)
{
	var D = window.document;
	D.FrmRoot.TxtRootName.value = D.getElementById('Anchor_' + RootID).innerHTML;
	D.FrmRoot.TxtRootDesc.value = D.getElementById('Tr_' + RootID).title;
	D.FrmRoot.TxtRootID.value = RootID;

	D.FrmRoot.TxtRootName.focus();
	D.FrmRoot.TxtRootName.select();
	
	return false;
}

/* ---------------------------------------------------------------------------- */

