<!--
function fnCopyToClipBoard(area, button) {

    bResult = window.clipboardData.setData("Text",area.innerText);
alert("لقد تم نقل النص الى المؤقتة");
//bCopy.innerHTML = document.all.Image81.SRC = '/01buttons/db-copy3.gif';
//"<img border='0' src='./01buttons/db-copy3.gif'  alt='تم النسخ فى الذاكرة المؤقتة'>"
}
function fnEmailStaff(filename)
{	//var filename = "/email/?section=" + icat + "&did=" + did;
	window.open(filename, 'EmailStaff', 'height=600,width=700,status=1,toolbar=1,menubar=0,location=0, resizable=1, scrollbars=1');
}

function openwindow(filename){
		window.open(filename, 'misc', 'height=500,width=400,status=1,toolbar=0,menubar=0,location=0, resizable=0, scrollbars=1');

}

function fnEmail(filename)
{	//var filename = "/email/?section=" + icat + "&did=" + did;
	window.open(filename, 'Email', 'height=400,width=400,status=1,toolbar=1,menubar=0,location=0, resizable=1, scrollbars=1');
}

function fnPrint(filename)
{	//var filename = "/print/default.asp?did=" + did;
	window.open(filename ,'اطبع','height=600,width=700,status=1,toolbar=1,menubar=0,location=0, resizable=1, scrollbars=1');
}

function fnSimilar(did)
{	var filename = "/similar/?did=" + did;
	window.open(filename,'Similar','height=600,width=700,status=1,toolbar=1,menubar=0,location=0, resizable=1, scrollbars=1');
}
//NewWindow(this.href,'comments_form','750','575','yes');return false"> 
function fnComment(filename)
{	//var filename = "comment.asp?section=" + icat + "&did=" + did ;
	window.open(filename,'Comment','height=615,width=690,status=1,toolbar=1,menubar=0,location=0, resizable=1, scrollbars=1');
}
function fnSave() {
    document.execCommand("SaveAs");
}


//form tags to omit in NS6+:, "onClick"

var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}


function openWindow(url) {
popupWin = window.open(url,'Name','top=100,left=200,resizable=no,scrollbars=no,menubar=no')
}
function valid(form) {
 if (form.search.value == '') { 
		alert('الرجاء ادخال عبارة البحث');
		form.search.focus();
      return false;  
    }
	}//oncontextmenu='return false;'
//-->