﻿<!--
function Render(val)
{if(val=='Messenger')
{var val1='<%=Page.User.Identity.Name%>';var val2='<%=Page.User.Identity.IsAuthenticated%>';PageMethods.Messenger(val1,val2,OnCallSumComplete0,OnCallSumError1);}
else
PageMethods.ContactPersonel(OnCallSumComplete1,OnCallSumError1);}
function OnCallSumComplete1(result,txtresult,methodName)
{if(result!='')
window.open(result,'_blank','location=no,toolbar=no,titlebar=no,menubar=no,status=0,width=610,height=400,resizable=0,scrollbars=no');else
alert("تمامی کارشناسان مشغول هستند لطفا چند لحظه دیگر مراجعه کنید");}
function OnCallSumComplete0(result,txtresult,methodName)
{window.open(result,'_blank','location=no,toolbar=no,titlebar=no,menubar=no,status=0,width=610,height=400,resizable=0,scrollbars=no');}
function OnCallSumError1(error,userContext,methodName)
{if(error!==null)
{alert(error.get_message());}}
var i=0;var act,end;function play(o,count,width,margin)
{var obj=document.getElementById(o);if(obj==null)
return;if(i==0)
{i=1;end=width;setInterval("play('frame')",40);}
else
{if(obj.style.left=="-"+520+"px")
{act='add';}
else
if(obj.style.left=="0px")
act='sub';if(act=='add')
obj.style.left=parseInt(obj.style.left)+1+"px";else
obj.style.left=parseInt(obj.style.left)-1+"px";}}
-->
