


///////////////////////////////////////////////////////////////////////////

//search//
function chklength(idx)
{
	var myname=idx;
	
	myname=myname.replace(/^\s*(\b.*\b|)\s*$/, "$1");
	return myname.length;
}
function keytest()
{
if ((event.keyCode > 32 && event.keyCode < 48) || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97)) 
{
	event.returnValue = false;
}
/*else if  (event.keyCode == 13 )
{
	alert("hello")
}

*/

}
function disallow()
{
if(document.searchformleft.SearchString.value.length<2 && window.event.keyCode==13)
{
	//if(window.event.keyCode==13)
	window.event.keyCode=0;
	alert("لا يسمح بالبحث بحرف واحد فقط");
}
}





/*function checkenter()
  {
	if(window.event.keyCode==13)
	{
	window.event.keyCode=0;
	}
  }*/
function fn_add1()
{	
var errval=0;
var str=new String(document.searchformleft.SearchString.value);
for(i=0;i<str.length-1;i++)
{
	if(str.charCodeAt(i)>=33 && str.charCodeAt(i)<=47) 
	errval=1
	if(str.charCodeAt(i)>=58 && str.charCodeAt(i)<=60)
	errval=1;
	if(str.charCodeAt(i)>=62 && str.charCodeAt(i)<=64)
	errval=1;
	if(str.charCodeAt(i)>=91 && str.charCodeAt(i)<=95)
	errval=1;
	if(str.charCodeAt(i)==123 || str.charCodeAt(i)==125)
	errval=1;
}
    
if(chklength(document.searchformleft.SearchString.value)==0)
{
	alert("الرجاء إدخال كلمة البحث");
	document.searchformleft.SearchString.focus();
	return false;
}	
else if(chklength(document.searchformleft.SearchString.value)==1)
{
alert("لا يسمح بالبحث بحرف واحد فقط");
return false;
}

if(errval==1)
{
alert("لا يسمح بالبحث بالرموز");
return false;
}
else
return true;
}
////////////////////////////////////////////////////////////////////////////////////////////





function ViewImage(ifile,ix,iy,ititle) { 
var win;
var sWidth;
var sHeight;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,left=100,top=60,toolbar=no,scrollbars=no");

win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body topmargin=0 leftmargin=0>");
win.document.write("<table border=0 cellpadding=0 cellspacing=0><tr><td width=100% valign=top>");
win.document.write("<img border=0 src="+ifile+"></td></tr></table>");
win.document.write("</body></html>");
win.document.close();
}

function Top()
{
var sTop = "";
sTop +="<td width='269' valign='top'>";
sTop +="<img border='0' src='/english/images/logo.gif'></td>";
sTop +="<td width='121' valign='top'><img border='0' src='/english/images/q_logo.gif'></td>";
sTop +="<td width='390' valign='top' height='92'>";

sTop +="<div style='margin-left:20px;'><table align='left' border='0' width='360' id='table1' cellspacing='0' cellpadding='0' dir='ltr' height='48'>";
sTop +="<tr>";
sTop +="<td align='center' valign='top'><div style='margin-top:15px;'><a href='/english/index.aspx'><img border='0' src='/english/images/home_icon.gif' alt='Home Page'></a></td>";
sTop +="<td align='center' valign='middle'><div style='margin-top:10px;'><img border='0' src='/english/images/separete.gif'></div></td>";

sTop +="<td align='center' valign='top'><div style='margin-top:11px;'><a href='/english/links/index.html'><img border='0' src='/english/images/tros.gif' alt='Important Links'></a></td>";
sTop +="<td align='center' valign='middle'><div style='margin-top:10px;'><img border='0' src='/english/images/separete.gif'></div></td>";

sTop +="<td align='center' valign='top'><div style='margin-top:15px;'><a href='/english/contact_us/index.html'><img border='0' src='/english/images/mobile.gif' alt='Contact Us'></a></td>";
sTop +="<td align='center' valign='middle'><div style='margin-top:10px;'><img border='0' src='/english/images/separete.gif'></div></td>";

sTop +="<td align='center' valign='top'><div style='margin-top:13px;'><a href='/english/site_map/index.html'><img border='0' src='/english/images/circle.gif' alt='Site Map'></a></td>";
sTop +="<td align='center' valign='middle'><div style='margin-top:10px;'><img border='0' src='/english/images/separete.gif'></div></td>";

sTop +="<td align='center' valign='top'><div style='margin-top:11px;'><!--a href='/english/guest_book/BrowseGuestBookresult.asp'\\--><img border='0' src='/english/images/paper.gif' alt='Guest Book'></a></td>";
sTop +="<td align='center' valign='middle'><div style='margin-top:10px;'><img border='0' src='/english/images/separete.gif'></div></td>";


sTop +="<td align='center' valign='top'><div style='margin-top:11px;'><a href='/arabic/index.aspx'><img border='0' src='/english/images/e.gif' alt='Arabic Site'></td>";




sTop +="</tr>";
sTop +="</table>";
sTop +="</td></tr>";

sTop +="<tr>";
sTop +="<td width='780' valign='top' colspan='3' height='51'><div align='center' style='padding-right:50px;'>";
sTop +="<table border='0' width='470' id='table4' cellspacing='0' cellpadding='0'>";
sTop +="<tr>";
sTop +="<td width='469' colspan='3' height='15'>";
sTop +="</td></tr>";
sTop +="<tr>";

sTop +="<td width='175' class='marquee'><font  class='p-text'>Last Update 03/03/2010</font></td>";

sTop +="<td width='21'><img border='0' src='/english/images/praket2.gif'></td>";
sTop +="<td width='427'  height='16' class=marquee><marquee  id='MyMarquee' direction='left' scrolldelay='150'>";
sTop +="000";
sTop +="</marquee></td>";
sTop +="<td width='21'><img border='0' src='/english/images/praket1.gif'></td>";

sTop +="</tr></table></div></td>";
	document.write(sTop);


getFile("/English/FetchMarquee.aspx");

}


function getFile(XmlUrl) 
{  if (window.XMLHttpRequest) 
    {
        xmlhttp=new XMLHttpRequest();
        eval('xmlhttp.onreadystatechange=raw;');
        xmlhttp.open("GET", XmlUrl, true); 
        xmlhttp.send(null);
    } 

else if (window.ActiveXObject) 
{ 
    xmlhttp=new ActiveXObject('Microsoft.XMLHTTP'); 
    if (xmlhttp) 
    {
        eval('xmlhttp.onreadystatechange=raw;');
        xmlhttp.open('GET', XmlUrl, false);
        xmlhttp.send();
    }
}
}


function raw() 
{
if (xmlhttp.readyState==4)
{

if (xmlhttp.status==200)
 {
  document.getElementById("MyMarquee").innerHTML = xmlhttp.responseText;
  

 }

 }

 }


document.write("<link rel=stylesheet type=text/css href=/english/style.css>");

function Right()
{
var sRight = "";

sRight +="<table border='0' width='780' id='table5' cellspacing='0' cellpadding='0'>";

sRight +="<tr>";
sRight +="<td width='219'  height='450' valign='top'>";

sRight +="<table border='0' width='100%' id='table6' cellspacing='0' cellpadding='0'>";
sRight +="<tr>";

sRight +="<td width='220'><div align='center'>";

sRight +="<table border='0' width='180' id='table7' cellspacing='0' cellpadding='0'>";
sRight +="<tr>";
sRight +="<td height='0' colspan='3'></td>";
sRight +="</tr>";

sRight +="<tr>";
sRight +="<td height='30' width='18'><div style='margin-left:5px;'><img border='0' src='/english/images/black_arrow.gif'></div></td>";
sRight +="<td height='30' class='right_links_style' width='150' style='cursor:hand;'><a class='right' href='/english/about_us/index.html'>About Us</a>";
sRight +="</td>";
sRight +="<td height='30' width='15'><!--img border='0' src='/english/images/orange_arrow.gif'--></td>";
sRight +="</tr>";

sRight +="<tr>";
sRight +="<td width='18' ><div style='margin-left:5px;' ><img border='0' src='/english/images/black_arrow.gif'></div></td>";
sRight +="<td height='30' class='right_links_style' width='150' style='cursor:hand;'><a class='right' href='/english/branches/index.html'> Where we work</a>";
sRight +="</td>";
sRight +="</tr>";

sRight +="<tr>";
sRight +="<td height='30' width='18'><div style='margin-left:5px;'><img border='0' src='/english/images/black_arrow.gif'></div></td>";
sRight +="<td height='33' class='right_links_style' width='150' style='cursor:hand;'><a class='right' href='/english/news/index.aspx'>Latest news</a></td>";
sRight +="<td height='30' width='15'><!--img border='0' src='/english/images/orange_arrow.gif'--></td>";
sRight +="</tr>";

sRight +="<tr>";
sRight +="<td height='30' width='18'><div style='margin-left:5px;'><img border='0' src='/english/images/black_arrow.gif'></div></td>";
sRight +="<td height='30' onclick=window.location='#' style=cursor:hand; onmouseover=locateMenu('menu2',3,document.body.clientWidth) onmouseout=hideMenu('menu2') class='right_links_style' width='150'><a  class='right' href='/english/Projects/index.html'>What we do</a>";
sRight +="</td>";
sRight +="<td height='30' width='15'><img border='0' src='/english/images/orange_arrow.gif'></td>";
sRight +="</tr>";

sRight +="<tr>";
sRight +="<td height='30' width='18'><div style='margin-left:5px;'><img border='0' src='/english/images/black_arrow.gif'></div></td>";
sRight +="<td height='30' class='right_links_style' width='150' style='cursor:hand;' ><a class='right' href='/english/Cooperations/index.html' >Partnerships</a>";
sRight +="</td>";
sRight +="<td height='30' width='15'><!--img border='0' src='/english/images/orange_arrow.gif'--></td>";
sRight +="</tr>";



sRight +="<tr>";
sRight +="<td height='30' width='18'><div style='margin-left:5px;'><img border='0' src='/english/images/black_arrow.gif'></div></td>";
sRight +="<td height='30' class='right_links_style' width='150' onclick=window.location='#' style=cursor:hand; onmouseover=locateMenu('menu3',5,document.body.clientWidth) onmouseout=hideMenu('menu3'); style='cursor:hand;'><a  class='right' href='/english/Support/index.html'>Support our work</a>";
sRight +="</td>";
sRight +="<td height='30' width='15'><img border='0' src='/english/images/orange_arrow.gif'></td>";
sRight +="</tr>";


sRight +="<tr>";
sRight +="<td height='30' width='18'><div style='margin-left:5px;'><img border='0' src='/english/images/black_arrow.gif'></div></td>";
sRight +="<td height='30' class='right_links_style' width='150' onclick=window.location='#' style=cursor:hand; onmouseover=locateMenu('menu4',6,document.body.clientWidth) onmouseout=hideMenu('menu4'); style='cursor:hand;' ><a class='right' href='/english/media/index.html' >Publications</a>";
sRight +="</td>";
sRight +="<td height='30' width='15'><img border='0' src='/english/images/orange_arrow.gif'></td>";
sRight +="</tr>";

sRight +="<tr>";
sRight +="<td height='30' width='18'><div style='margin-left:5px;'><img border='0' src='/english/images/mail.gif'></div></td>";
sRight +="<td height='30' class='right_links_style' width='150' style='cursor:hand;'><a class='right' target='_blank' href='http://mail.qcharity.org/' >&nbsp;Staff E-Mail</a></td>";
sRight +="</td>";
sRight +="</tr>";
sRight +="</td>";
sRight +="<tr>";
sRight +="<td width='18' height=27>&nbsp;</td>";
sRight +="<td width='150'>&nbsp;</td>";
sRight +="<td width='15'>&nbsp;</td>";
sRight +="</tr>";

sRight +="<tr>";
sRight +="<td width='150'style=padding-top:15; colspan='3'>";
sRight +="<table border='0' cellpadding='0' cellspacing='0' width='183'>";
sRight +="<form name=searchformleft onsubmit='return fn_add1()' method=Post action=/english/search.asp><tr>";
sRight +="<td width='150'><INPUT onkeypress=disallow() TYPE='TEXT' NAME='SearchString' SIZE='17' class='text' MAXLENGTH='100' VALUE='' onkeypress=keytest() ></td>";
sRight +="<td width='33'><input type='submit' name=submit value='Search'></td>";
sRight +="</tr></form>";
sRight +="</table>";
sRight +="</td>";
sRight +="</tr>";
sRight +="<tr>";

sRight +="<td width='183' colspan='3'><div style='padding-top:3px; padding-left:3;text-align:right;'><object classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' id='obj3' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' border='0' width='185' height='75'>";
sRight +="<param name='movie' value='/English/flash/AnnualReport.swf'>";
sRight +="<param name='quality' value='High'>";
sRight +="<embed src='/English/flash/AnnualReport.swf'pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='obj3' width='185' height='75' quality='High'></object></a></td></tr>";

sRight +="<tr>";
sRight +="<td width='183' colspan='3'><div style='padding-top:5px; padding-left:3;'><a href='/english/Doc/The-Purifying-Zakah.doc' target='_blank'><img border='0' src='/english/banners/The-Purifying-Zakah.gif'></td>";
sRight +="</tr>";
sRight +="<tr>";
sRight +="<td width='183' colspan='3'><div style='padding-top:5px; padding-left:3;'><a href='/english/Doc/An-Orphan.doc' target='_blank'><img border='0' src='/english/banners/Orphans-smile.gif'></td>";
sRight +="</tr>";
sRight +="<tr>";
sRight +="<td width='183' colspan='3'><div style='padding-top:5px; padding-left:3;'><a href='/english/Doc/Zakah-recipients.doc' target='_blank'><img border='0' src='/english/banners/Those-who-are-most-benefici.gif'></td>";
sRight +="</tr>";

sRight +="<tr>";
sRight +="<td width='183' colspan='3' height='1'></td>";
sRight +="</tr>";
sRight +="<tr>";
//sRight +="<td width='183' colspan='3' valign='top'><div style='padding-top:-4px; padding-left:3;'><img border='0' src='/english/images/smile.gif'></td>";//
sRight +="</tr></table></div></td></tr></table>";
	document.write(sRight);
}

function Bottom()
{
var sBottom = "";
sBottom +="<table border='0' width='640' cellspacing='0' cellpadding='0'>";
sBottom +="<tr>";
sBottom +="<td align=center height=5></td>";
sBottom +="</tr>";
sBottom +="<tr>";
sBottom +="<td width=80></td>";
sBottom +="<td align=center><a class=bottom href='/english/about_us/index.html'>About Us</a></td>";
sBottom +="<td width=1 align=center><img src=/english/images/image1.gif></td>";
sBottom +="<td align=center><a class=bottom href='/english/branches/inside_qatar/index.html'>Where we work</a></td>";
sBottom +="<td width=1 align=center><img src=/english/images/image1.gif></td>";
sBottom +="<td align=center><a class=bottom href='/english/news/index.aspx'>Latestnews</a></td>";
sBottom +="<td width=1 align=center><img src=/english/images/image1.gif></td>";
sBottom +="<td align=center><a class=bottom href='/english/projects/index.html'>What we do</a></td>";
sBottom +="<td width=1 align=center><img src=/english/images/image1.gif></td>";
sBottom +="<td align=center><a class=bottom href='/english/Cooperations/index.html'>Partnerships</a></td>";
sBottom +="<td width=1 align=center><img src=/english/images/image1.gif></td>";
sBottom +="<td align=center><a class=bottom href='/english/Support/index.html'>Support our work</a></td>";
sBottom +="<td width=1 align=center><img src=/english/images/image1.gif></td>";
sBottom +="<td align=center><a class=bottom href='/english/media/index.html'>Publication</a></td>";
sBottom +="<td width=1 align=center><img src=/english/images/image1.gif></td>";
sBottom +="<td align=center><a class=bottom href='http://mail.qcharity.org/'>Staff Email</a></td>";
sBottom +="</tr>";
sBottom +="</table>";
sBottom +="<table border='0' width='100%' cellspacing='0' cellpadding='0'>";
sBottom +="<tr>";
sBottom +="<td width=80></td>";
sBottom +="<td colspan='13' align=center><font class=p_bottom>Copyright © 2010 - <a class=bottom1 href='http://www.qcharity.org'>Qatar Charity</a> - All Right Reserved </font></td>";
sBottom +="</tr>";
sBottom +="<tr>";
sBottom +="<td width=80></td>";
sBottom +="<td colspan='13' align=center><a target='_blank' href='http://www.afkaronline.com'><img src='/english/images/afkarlogo.gif' border=0></a></td>";
sBottom +="</tr>";
sBottom +="</table>";
document.write(sBottom);



}

document.write("<script language=javascript src=/Code/code.js></script>");


