var dt;
	
window.onload=showTime();
function showTime()
{
 var now=new Date();

 //alert(now.getDay()); //day of the week integer
//alert(now.getDate()); //date of the month integer
//alert(now.getMonth());// month of the year
// alert(now.getYear())
  
var months = new Array(13);
   months[0]  = "يناير";
   months[1]  = "فبراير";
   months[2]  = "مارس";
   months[3]  = "أبريل";
   months[4]  = "مايو";
   months[5]  = "يونيو";
   months[6]  = "يوليو";
   months[7]  = "أغسطس";
   months[8]  = "سبتمبر";
   months[9]  = "أكتوبر";
   months[10] = "نوفمبر";
   months[11] = "ديسمبر";
     
  
 var days=new Array(7);
   days[0]="الأحد";
   days[1]="الأثنين"; 
   days[2]="الثلاثاء";
   days[3]="الأربعاء";
   days[4]="الخميس";
   days[5]="الجمعة";
   days[6]="السبت"; 
   //alert(days[3])  
       
  var day=days[now.getDay()];
  
  var month=months[now.getMonth()];

  var year=now.getYear();
  var dateString=day + " "+ now.getDate() +","+ month + "," + year


//time function
 var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
// add a zero in front of numbers<10
m=checkTime(m)
s=checkTime(s)
//document.getElementById("txt").innerHTML=dateString +" "+ h+":"+m+":"+s
t=setTimeout('showTime()',500)
// dateString ="";
// alert(dateString)
 return dateString +" "+ h+":"+m;
 
 }
 
 function checkTime(i)
{
if (i<10) 
  {i="0" + i}
  return i
}


var fsize=11;
function chgTxt(txtSize)
		{
			 //alert(txt)
			var a =document.getElementById("spTxt");
		//	if (a.className=="td" )
		//	{	
		//		a.className="td-big";
		//	}
		//	else if (a.className=="td-big")
		//	{
		//		a.className="td";
		//	}

			if(a.style.fontSize=="")
			{
				a.style.fontSize=11+"px";
						
			}
			else
			{
				//fsize=fsize+1;
				a.style.fontSize=txtSize+"px";
			}
			
		}


//print zahra
		function CheckIsIE() 
{ 
if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true;} 
else { return false; } 
} 


function PrintThisPage() 
{ 

if (CheckIsIE() == true) 
{ 
document.IframeName.focus(); 
document.IframeName.print(); 
} 
else 
{ 
window.frames['IframeName'].focus(); 
window.frames['IframeName'].print(); 
} 

} 


function Add_to_favorite()
{
if (window.sidebar) 
{ 
window.sidebar.addPanel(document.title, location.href,"");
}
 
else if (window.external) 
{
external.AddFavorite(location.href, document.title);
}


else 
 
// Display and alert box for any other browser.
{
alert("عفوا، متصفحك لا يدعم هذه الميزة." + 
"\nالرجاء إستخدام مؤشر الصفحة لإمكانية الرجوع الى الصفحة في أي وقت.");
}

}



function openwindow(strimg)
{
window.open(strimg,"hhhh");
}
function CheckIsIE() 
{ 
if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true;} 
else { return false; } 
}

//Funcion For Forms Show/Hide (ameer)

var state = 'none';

function showhide(layer_ref) {
	//alert(layer_ref);

	if (state == 'block') {
		state = 'none';
		}
	else {
		state = 'block';
	}
	if (document.all) { //IS IE 4 or 5 (or 6 beta)
		//eval( "document.all." + layer_ref + ".style.display = state");
		var a =document.getElementById(layer_ref).style.display=state;
	} 

}

<!-- contact us map
function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
window.open(theURL,winName,features);
}
//-->