﻿function about()
{
//window.open("about.aspx");
window.showModalDialog("about.aspx" ,window,"dialogWidth:470px;dialogHeight:260px;status:no")
}
function adv_dialog()
{
//window.showModalDialog("adv_dialog.aspx" ,window,"dialogWidth:535.4px;dialogHeight:426.6px;status:no")
var width=535.4
var height=426.6

window.open("adv_dialog.aspx",null,"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");

}

function open_advert_way()
{
window.close()
    var width=700
    var height=590
    window.open("how_advertising.aspx",null,"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");

}

function change_postion()
{
    window.scrollTo(0,0)
}
function show_ramdan()
{
//window.showModalDialog("adv_dialog.aspx" ,window,"dialogWidth:535.4px;dialogHeight:426.6px;status:no")
var width=800
var height=600
window.open("show_ramdan.aspx",null,"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");

}

function show_quiz()
{
//window.showModalDialog("adv_dialog.aspx" ,window,"dialogWidth:535.4px;dialogHeight:426.6px;status:no")
var width=600
var height=500
window.open("quiz.aspx",null,"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");

}

function show_tagwid(path,width,height,name)
{
    //alert("hello");
     mywindow=window.open("TO_DAY_TAGWID\\show_tagwid.aspx?name="+ name +"&path="+path+"&width="+ width +"&height="+ height +"",path.substring(0,path.lastIndexOf('.')),"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
     if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح");

       }
     mywindow.moveTo(200,100);
}

function fun_show_story(path,width,height,name)
    {
       mywindow =window.open("show_story.aspx?name="+ name +"&path="+path+"&width="+ width +"&height="+ height +"",null,"height="+ 550 +",width="+ 670 +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
       if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
       mywindow.moveTo(200,100);
    }
    
    
     function rashid_show(path,width,height,name)
    {
    alert("aaaaaaaaaaaaa")
     mywindow =window.open("show_story.aspx?name="+ name +"&path="+path+"&width="+ width +"&height="+ height +"",null,"height="+ 550 +",width="+ 670 +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
      if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
       mywindow.moveTo(200,100);
    }

 function fullscreen(path,width,height,name)
    {
    //alert("hello");
       mywindow=window.open("fullscreen_fun_story.aspx?name="+ name +"&path="+path+"&width="+ width +"&height="+ height +"",null,"height="+ 550 +",width="+ 670+",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
       if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
       mywindow.moveTo(200,100);
    }
    
    
    ///////////////////////////////////////////////////////
    function game_show(path,width,height,name)
    {
    //alert(name);
    mywindow=window.open("show_game.aspx?name="+ name +"&path="+path+"&width="+ width +"&height="+ height +"",path.substring(0,path.lastIndexOf('.')),"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
    if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
    mywindow.moveTo(200,100);
    }
    function game_show2(path,width,height,name)
    {
    //alert("hello");علشان الالعاب الخاصة
    mywindow=window.open("show_game.aspx?name="+ name +"&path="+path+"&width="+ width +"&height="+ height +"",path.substring(0,path.lastIndexOf('.')),"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
    if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
    mywindow.moveTo(200,100);
    }
    
    
    ///////////////////////////////////////////////////////////////////////
     function fun_info(path,width,height,name)
    {
    //alert("hello");
       mywindow=window.open("show_inforamtion.aspx?name="+ name +"&path="+path+"&width="+ width +"&height="+ height +"",path.substring(0,path.lastIndexOf('.')),"height="+ 550 +",width="+ 670 +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
       if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
       mywindow.moveTo(200,100);
    }
    
     function fun_info2(path,width,height,name)
    {
    //alert("hello");
       mywindow=window.open("show_inforamtion.aspx?name="+ name +"&path="+path+"&width="+ width +"&height="+ height +"",path.substring(0,path.lastIndexOf('.')),"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
       if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
       mywindow.moveTo(200,100);
    }
    
     function pic_show(path,width,height,name)
    {
    //alert("hello");
       mywindow =window.open("show_story.aspx?name="+ name +"&path="+path+"&width="+ width +"&height="+ height +"",null,"height="+ 550 +",width="+ 670 +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
       if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
       mywindow.moveTo(200,100);
    }
    
    function load_story(path,name)
    { 
     var  w=487;
        var h=400
        var left = (screen.width/2)-(w/2);
        var top = (screen.height/2)-(h/2);
      mywindow=window.open("load_story.aspx?name="+ name +"&path="+path+"",null,"width="+ w +",height="+ h +" ,left="+ left +",top="+top+",status:no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
      if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

      }
       
    }
    
    ////////////////////////////education
     function education_show(path,width,height,parm,name)
    {
        //alert("hello");
       mywindow=window.open("show_education.aspx?name="+ name +"&parm="+ parm +"&path="+path+"&width="+ width +"&height="+ height +"",path.substring(0,path.lastIndexOf('.')),"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
       if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
       mywindow.moveTo(200,100);
    }    
    
        function education_show2(path,width,height,parm,name)
    {
        //alert("hello");
       mywindow=window.open("show_education.aspx?name="+ name +"&parm="+ parm +"&path="+path+"&width="+ width +"&height="+ height +"",path.substring(0,path.lastIndexOf('.')),"height="+ height +",width="+ width +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
       if(mywindow==null || typeof(mywindow)=="undefined")
       {
            alert("لكي تستطيع مشاهدة هذا الجزء من المحتوى  Pop-up Blocker برجاء فتح ");

       }
       mywindow.moveTo(200,100);
    }
    
    function mme_mail(master_id,sub_id)
{
    window.open("admin/cong_card_detail.aspx?master_id="+ master_id +"&sub_id="+ sub_id +"",null,"height="+ 700 +",width="+ 570 +",status=yes,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no");
}
