﻿
 function cancelClick() 
 {
 }
// فتح نافذة الاستديو لإختيار الصور
function OpenPopup() 
{
    try
    {
        window.open("../Gallery.aspx","List","width=740, height=520, menubar=no, scrollbars=no, resizable=no");
        return false;
    }
    catch(err)
    {
        return false;
    }
}

// لإغلاق النوافذ
function ClosePop()
{
    try
    {
        window.close();
    }
    catch(err)
    {
        
    }
}

//تستخدم في إرسال مسار الصورة من صفحة الاستديو إلى صفحات الاضافة والتحكم
function GetRowValue(val)
{
    try
    {
        window.opener.document.getElementById('ctl00_ContentPlaceHolder1_txtfileName').value=val;
        window.close();
    }
    catch(err)
    {
        
    }
}




 function AdminGallery()
 {
     try
     {
	     var win = window.open('../AdminGallery.aspx', '','width=740, height=670, menubar=no, scrollbars=no, resizable=no');
	 }
    catch(err)
    {
        
    }
 }



    var Fsize =10;
    var lh = 17;
    function Increment()
    {
        try
        {
            
            Fsize=Fsize+1;
            
            if(Fsize<=17)
            {
            lh=lh+1;
            document.getElementById('detail').style.fontSize = Fsize +'pt';
            document.getElementById('detail').style.lineHeight=lh+'px';;
            }
            else
            {
                Fsize=17;
            }
        }
        catch(err)
        {
        }
    }
    
    function Decrement()
    {
        try
        {
            
            Fsize=Fsize-1;
            if(Fsize>=10)
            {
                document.getElementById('detail').style.fontSize = Fsize +'pt';
                document.getElementById('detail').style.lineHeight=lh+'px';;
                lh=lh-1;
                
            }
            else
            {
                Fsize=10;
            }
        }
        catch(err)
        {
        }
    }
    

function CallPrint(strid, loc)

{

 var prtContent = document.getElementById(strid);

 var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');


 WinPrint.document.writeln('<HTML><HEAD><title></title></HEAD>')
 WinPrint.document.writeln('<body bottomMargin="0"');
 WinPrint.document.writeln('leftMargin="0" topMargin="0" rightMargin="0">');
 
 if(loc == '0')
 {
    WinPrint.document.writeln('<img src="images/headerPrnt.gif" />')
 }
 else if(loc == '1')
 {
    WinPrint.document.writeln('<img src="../images/headerPrnt.gif" />')
 }
 else if(loc == '2')
 {
    WinPrint.document.writeln('<img src="../../images/headerPrnt.gif" />')
 }
 
 WinPrint.document.writeln('<br />')
 WinPrint.document.writeln('<br />')
 WinPrint.document.writeln('<div style="text-align: right; direction: rtl; font-family: Times New Roman (Arabic); font-size: 18pt;">')
 
 
 WinPrint.document.writeln(prtContent.innerHTML);
 
 WinPrint.document.writeln('</div></body></HTML>'); 
 WinPrint.document.close();

 WinPrint.focus();

 WinPrint.print();

 WinPrint.close();

 prtContent.innerHTML=strOldOne;

}

function CallPrint2(strid)

{
var str="<div style=\"overflow:hidden; text-align: right; height: 85px;\"><table cellpadding=\"3\" cellspacing=\"1\" style=\"width: 246px; font-weight:bold; float:left;\"><tr><td colspan=\"2\" style=\" border:solid 1px #333333; text-align: center;\"> طلب توظيف</td></tr><tr><td style=\"border:solid 1px #333333; width: 111px; text-align: center;\">الإصدار</td><td style=\" border:solid 1px #333333; text-align: center;\">01</td></tr><tr><td colspan=\"2\" style=\" border:solid 1px #333333;  background-color: #333333; color: #FFFFFF; text-align: center;\">UCAS 21-03</td></tr></table><img alt=\"\" src=\"../admincp/logo.png\" style=\"width: 215px; height: 54px;\" /><div style=\"width:200px; font-weight:bold; margin:5px 15px 0 0; font-family: Arial, Helvetica, sans-serif;\">قسم الموارد البشرية</div>";
 var prtContent = document.getElementById(strid);

 var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');


 WinPrint.document.writeln('<HTML><HEAD><title></title></HEAD>')
 WinPrint.document.writeln('<body bottomMargin="0"');
 WinPrint.document.writeln('leftMargin="0" topMargin="0" rightMargin="0" dir="rtl">');
 
 
 WinPrint.document.writeln(prtContent.innerHTML);
 
 WinPrint.document.writeln('</body></HTML>'); 
 WinPrint.document.close();

 WinPrint.focus();

 WinPrint.print();

 WinPrint.close();

 prtContent.innerHTML=strOldOne;

}


