<!--
var TotalBox=0;
//==========================Delete Page ===============
function dodel(vrURL)
{

if(TotalBox != 0)
	{
		var ch =window.confirm("هل أنت متأكد أنك تريد حزف البيانات المحددة");
		
			if (ch)
				{
			var Conf = window.confirm("البيانات التي يتم حزفها لا يمكن إسترجاعها مرة أخر ، هل تريد الإستمرار ؟ ");
		
			if (Conf)
			{ 
		
			document.forms[0].action=vrURL;
			document.forms[0].submit();
		
		}
	}
	}
	else
	{
		window.alert("لتفيذ هذا الأمر يجب تحديد إخيار أحد العناصر من القائمة أولاَ");
	}
//_____________________ End Delete ____________________

function goSearch(vrURL)

{		
		document.FormSearch.TextSearch.value = document.all.searchText.value;
		document.FormSearch.action=vrURL;
		st=eval(document.FormSearch.submit());
}

//===================== Edit Page ========================

}

function EditPage(vrURL)
{
	if (TotalBox == 1)
	{
		document.forms[0].action=vrURL;
		document.forms[0].submit();
	}
	else
	{
		if (TotalBox == 0)
		{
		window.alert("لم تختار إي مستخدم للتعديل الرجاء إختيار واحد");
		}
		if (TotalBox > 1)
		{
		window.alert("عفواً..! لا يمكن تفيذ هذا الأجراء على أكثر من إخيار واحد فقط \n الرجاء التأكد من أنك أخترت واحد فقط من بنود القائمة لا أكثر");
		}
	}

}
//_____________________________ End Edit Page ___________________


//==========================Add New =============================
function goURL(vrPage)

{
	window.location= vrPage;
}

//__________________________ End Add New _______________________

function CheBox(BoxName)
{
	var st=eval("document.forms[0]."+BoxName+".checked");
	
	if (st)
	{		
			TotalBox++;
	}
	else
	{
		TotalBox <= 0 ? TotalBox =0 : TotalBox-- ;
		}
	document.forms[0].txNum.value= TotalBox;
}


//=========================== Row =====================

function goSubm(vrURL)

{
		document.forms[0].action=vrURL;
		document.forms[0].submit();
		
}
//-----------------------------------

function goback(vrURL)
	
{
	l=document.forms[0].elements.length;

	for (i=0;i<document.forms[0].elements.length ;i++)
	{	
	 n=document.forms[0].elements[i].name;
	 if(n.substring(0,3)=="Chx")
	 {
	 
	 st=eval("document.forms[0]."+n+".checked=false");
	 TotalBox =0;
	 
	 document.forms[0].txNum.value= TotalBox;
	 
	 document.forms[0].action=vrURL;
	 document.forms[0].submit();
	 }
	 
	 
    }
 
}
//------------------------------------------------
function unSelect()
	
{
	l=document.forms[0].elements.length;

	for (i=0;i<document.forms[0].elements.length ;i++)
	{	
	 n=document.forms[0].elements[i].name;
	 if(n.substring(0,3)=="Chx")
	 {
	 
	 st=eval("document.forms[0]."+n+".checked=false");
	 TotalBox =0;
	 document.forms[0].txNum.value= TotalBox;
	
	 }
	 
	 
    }
 
}

//--------------------------
//--------------------------
function OpenWin(url) {
	popupWin = window.open(url,'new_page','width=400,height=450,left=50,top=50')
}		
function OpenPic(url) 
{
	popupWin = window.open(url,'new_page','width=600,height=500,left=0,top=0')
}
function OpenVo(url) 
{
	popupWin = window.open(url,'new_page','width=320,height=360,left=40,top=40');
}	
	
//--------------------------------
function Chng(X)
	{
	html = "";
		html = "<center><font color='#000080'><b>";
		html += X;
		html += " </font></center>";
	vHead.innerHTML=html;
}


function Comn(X)
	{
	html = "";
	
	html = "<p align='left'><b><font color='#FFFFFF'>";
		html += X;
		html += " </b></center>";
	ComStr.innerHTML=html;
}


//==========================================================

function MO(xtd) 
{ 
xtd.style.backgroundColor = '#BAC7D4';
xtd.style.color = '#000080';
} 

function MOX(xtd) 
{ 
xtd.style.backgroundColor = '#0092CF';
xtd.style.color = '#FFFFFF';
} 

function MOI(xtd)
{ 
xtd.style.backgroundColor = '#FAFFDD';
xtd.style.color = '#FF9900';


}

function MU(xtd) 
{ 
xtd.style.backgroundColor = '';
xtd.style.color = '';

} 


//-->


