if (parent.document.getElementById('UserFrame') != null)
    parent.document.getElementById('UserFrame').style.height = document.body.scrollHeight ;
// Parent Title Change
function parentT(){parent.window.document.title = window.document.title;}
parentT();
// Resize Frame

function dynaframe() {
    if (parent.document.getElementById('UserFrame') != null) {
   
     
 
      var UFrameHeight = parent.document.getElementById('UserFrame').contentWindow.document.body.scrollHeight;
      parent.document.getElementById('UserFrame').style.height =UFrameHeight+"px" ;
       
       if (document.selection)
{    parent.document.getElementById('UserFrame').style.height = UFrameHeight+20 ;

    }
    else{
       parent.document.getElementById('UserFrame').style.height = UFrameHeight+20 ;  

    }
    }
}
if (window.addEventListener)
window.addEventListener("load", dynaframe, false)
else if (window.attachEvent)
window.attachEvent("onload", dynaframe)
 // End Resize
 var MyTitle = window.document.title;
 MyTitle = MyTitle.replace("ãÏíÑíÊ¡","");
 if (parent.document.getElementById('TitleFrame') != null)
	parent.document.getElementById('TitleFrame').innerHTML = MyTitle;
   //parent.document.getElementById('TitleFrame').innerHTML="در حال بار گذاری ...";

 $(document).ready(function () {

     $(".click_shomare_peygiry").click(function () {
         if ($(".shomare_peygiry").val() != "") {

             $.post("/ajaxuseer.aspx?paygirypaygiry=1", {
                 paygiry: $(".shomare_peygiry").val()
             }, function (u) {
                 window.parent.location.href = "http://" + window.location.hostname + "/paygiry_ok-utab";
             })
             
             $(".shomare_peygiry").css("background", "#fff");

         } else {
             $(".shomare_peygiry").css("background", "rgb(255, 242, 244)");

         }
     });
 });

