function PopUp(Url,WinName,Width,Height)
{
LeftPosition	= (screen.availWidth) ? (screen.availWidth-Width)/2 : 0;  //screen.width-700
TopPosition		= (screen.availHeight) ? (screen.availHeight-Height)/2 : 0;

PopUpWind = window.open(Url,WinName,'menubar=no,scrollbars=no,toolbar=no,directories=no,left='+LeftPosition+' , top='+TopPosition+', width='+ Width +',height=' + Height)
PopUpWind.focus()
}



function addToFav2()
{
   if (document.all)
      {
      window.external.AddFavorite (window.document.location,window.document.title)
      alert("تم اضافة هذة الصفحة إلى المفضلة بنجاح")
      }
    else
      alert("no thanks")
		
}

function addToFav() {
 title = window.document.title; 
 url = window.document.location;
	
	if (window.sidebar) 
	{ // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} 
	else if( window.external ) 
	{ // IE Favorite
		window.external.AddFavorite( url, title); 
	}
	else if(window.opera && window.print) 
	{ // Opera Hotlist
		return true; 
	}
    
		
		
 }

