// Hazem Functions
<!--

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

<!--
function popUp(URL){ //v3.0
//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
//  if (restore) selObj.selectedIndex=0;

day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'fullscreen=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=400,left = 60,top = 60');");
}
function check()
{
	if(document.Search.Search.value=="")
	{
		alert("الرجاء إدخال كلمة البحث");
		Search.Search.focus();
		return false;
	}
}

<!--
function PopLinkRes(URL){ //v3.0
//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
//  if (restore) selObj.selectedIndex=0;

day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'fullscreen=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=400,left = 60,top = 60');");
}
function PopLink(URL){ //v3.0
//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
//  if (restore) selObj.selectedIndex=0;

day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'fullscreen=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=400,left = 60,top = 60');");
}
function MediaOpen(URL){ //v3.0
//  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
//  if (restore) selObj.selectedIndex=0;

day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'fullscreen=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=400,left = 60,top = 60');");
}
-->






