function mouseX(n){return n=window.event||n,n.pageX?n.pageX:n.clientX?n.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft):null}function mouseY(n){return n=window.event||n,n.pageY?n.pageY:n.clientY?n.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop):null}function popHelpEdit(n,t,i,r){var f=screen.height/2-i/2,u=screen.width/2-r/2;openWindowInner(n,t,i,r,"top="+f+",left="+u+",scrollbars=yes,resizable=yes,personalbar=no,menubar=no")}function popTextEdit(n){return openWindowInner(n,"name",350,300,"scrollbars=no,resizable=no,personalbar=no,menubar=no"),!1}function openWindow(n,t,i,r){openWindowInner(n,t,i,r,"status=yes")}function openContentWindow(n,t,i,r){openWindowInner(n,t,i,r,"resizable=yes,status=yes")}function openWindowInner(n,t,i,r,u){var f=window.open(IEjsURL(n),t,"height="+i+",width="+r+(u!=""?","+u:""));window.focus&&f&&f.focus()}function groupUsers(n){var t="ASPX/UserGroups/user_group_users_list.aspx?groupID="+n;openWindowInner(t,"group_list",600,650,"top=50,left=150,resizable=no,menubar=no,toolbar=no,scrollbars=yes")}function userInfo(n){var t="user_popup_info_header.aspx?userID="+n;openWindowInner(t,"name",800,850,"top=50,left=150,resizable=no,menubar=no,toolbar=no,scrollbars=yes")}function courseInfo(n){var t="course_info2.aspx?courseID="+n;openWindowInner(t,"name",700,750,"top=50,left=150,resizable=no,menubar=no,toolbar=no,scrollbars=yes")}function unitInfo(n){var t="unit_info.aspx?unitID="+n;openWindowInner(t,"name",560,560,"top=50,left=150,resizable=no,menubar=no,toolbar=no,scrollbars=yes")}function contentInfo(n){var t="unit_info.aspx?contentID="+n;openWindowInner(t,"name",560,560,"top=50,left=150,resizable=no,menubar=no,toolbar=no,scrollbars=yes")}function FullApplicationPath2(){var n=""}function FullApplicationPath(){var n=""}function openDatePicker(n){return openWindowInner("common_date_picker?openerObj="+n,"name",400,300,""),!1}function openExamWindow(n,t,i,r,u,f,e,o,s){if(confirm(s)){var c=open("about:blank","Exam","resizable=no, top=0, left=0, menubar=no, toolbar=no, status location=no, scrollbars=no");c.resizeTo(screen.availWidth,screen.availHeight),r.action=n,r.elements.examID.value=f,r.elements.unitID.value=e,r.elements.activityID.value=o,r.elements.Co.value=1,r.target="Exam",r.submit()}}function changeTablePageCount(n,t){RunAJAXCall_Synch("common_page_count_update.aspx?count="+n),NavigateURL(t)}function question(n,t){confirm(t)&&document.getElementById(n)&&document.getElementById(n).click()}function navigateQuestion(n,t,i){if(confirm(n))NavigateURL(t);else{if(i=="")return;NavigateURL(i)}}function openLink(n){openWindowInner(n,"name",560,560,"top=50,left=150,resizable=no,menubar=no,toolbar=no,scrollbars=yes")}function IntAlert(n,t){var i=trim(n.value);i.length>0&&i.charAt(0)=="-"&&(i=i.substring(1,i.length-1));for(var e="0123456789",u=!0,f,r=0,r=0;r<i.length&&u==!0;r++){f=i.charAt(r);if(e.indexOf(f)==-1){u=!1;break}}if(t==null||t=="")return;u==!0||i==""?document.getElementById(t)!=null&&(document.getElementById(t).style.display="none",document.getElementById(t).style.visibility="hidden"):document.getElementById(t)!=null&&(document.getElementById(t).style.display="",document.getElementById(t).style.visibility="visible")}function ltrim(n){for(var t=0;t<n.length&&isWhitespace(n.charAt(t));t++);return n.substring(t,n.length)}function rtrim(n){for(var t=n.length-1;t>=0&&isWhitespace(n.charAt(t));t--);return n.substring(0,t+1)}function trim(n){return ltrim(rtrim(n))}function isWhitespace(n){var t=" \t\n\r\f";return t.indexOf(n)!=-1}function AddLogInner(n,t,i,r,u){var o=t>=0?t:577,s=u==0?0:1,f=i,e=r;RunAJAXCall_Synch(n+"common_retrieve_custom_xml.aspx?xmlType=14&logType="+o+"&logStatus="+s+"&sysMessage="+f+"&userMessage="+e)}function AddLog(n,t,i,r){AddLogInner("",n,t,i,r)}function getddlData(n,t,i,r,u,f,e,o){var h,s;myProps[t]!="ok"&&(h=document.getElementById(f),h.style.display="",h.style.visibility="visible",s=getHTTPObject(),resulthttpList.push(s),myPropsBusyImg.push(f),s.open("GET","common_retrieve_custom_xml.aspx?propID="+n+"&htmlElementID="+t+"&propName="+i+"&seciliOzellik="+r+"&defaultName="+u+"&propertyMode="+e+"&xmlType=16&pageID="+o,!0),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.setRequestHeader("Content-Length",1),s.onreadystatechange=getddlDataCallBack,s.send(null))}function getddlDataCallBack(){var r,p=!1,n,o,u;for(cnt=0;cnt<resulthttpList.length;cnt++){r=resulthttpList[cnt];try{if(r.readyState==4)if(r.status==200){var a=0,w=r.responseText,l=w.split("<prfbadftnam>"),c=l[1],y=l[0].split("<prfbaprpid>"),d=y[1],v=document.getElementById(myPropsBusyImg[cnt]),e=y[0].split("<prfbahtmle>"),t=e[1],f=e[0].split("<prfba>"),h=f[0].split("<prp>"),s=!1;for(f[1]=="1"&&(s=!0),n=document.getElementById(t),o=n.options[n.selectedIndex].value,k=n.options.length-1;k>=0;k--)n.options[k]=null;for(n.selectedIndex=-1,s||(option=new Option(c,c),n.options[n.length]=option),i=0;i<h.length-1;i++)u=h[i].split("<pr>"),option=new Option(u[0],u[1]),n.options[n.length]=option,u[1]==o&&(a=n.length-1);myProps[t]="ok",document.getElementById(t).selectedIndex=a,document.getElementById(t).size=document.getElementById(t).options.length>9?10:document.getElementById(t).options.length,v.style.display="none",v.style.visibility="hidden",resulthttpList[cnt]=null}}catch(b){}if(p)break}}function changeDDLSelection(n,t,i){var r=document.getElementById(t);r.selectedIndex!=-1&&(document.getElementById(i).value=r.options[r.selectedIndex].value)}function changeDDLSelectionFocusLost(n,t){var r=document.getElementById(t)}function ItemDisplay(n){$("#"+n).fadeIn("slow",function(){}),document.getElementById(n).className.indexOf("TransitionVisible")==-1&&(document.getElementById(n).className=document.getElementById(n).className.replace("TransitionInvisible",""),document.getElementById(n).className=document.getElementById(n).className+" TransitionVisible");return}function ItemHide(n){$("#"+n).fadeOut("slow",function(){}),document.getElementById(n).className.indexOf("TransitionInvisible")==-1&&(document.getElementById(n).className=document.getElementById(n).className.replace("TransitionVisible",""),document.getElementById(n).className=document.getElementById(n).className+" TransitionInvisible");return}function DocumentReload(){document.location.reload()}function FCKeditor_OnComplete(n){n.Config.IgnoreEmptyParagraphValue=!0}function toggleLinkField(n,t){var f=n.getAttribute("src").indexOf("minus")==-1,e,u;f?n.setAttribute("src","Images/nolines_minus.gif"):n.setAttribute("src","Images/nolines_plus.gif"),e=document.getElementById(g_cphMain+t+"_tblInner");if(e==null)return;for(var o=e.rows,r=0,i=0,r=1;r<o.length;r++)for(u=o[r].cells,i=0;i<u.length;i++)u[i].style.visibility=f==0?"hidden":"visible",u[i].style.display=f==0?"none":""}function FindHTMLElementPos(n){var t=curtop=0;if(n.offsetParent)do t+=n.offsetLeft,curtop+=n.offsetTop;while(n=n.offsetParent);return[t,curtop]}function updateClock(n,t){var u,c,h;if(document.getElementById(n)==null||t==null)return;u=t.split(":");if(u==null||u.length!=3)return;var o=parseInt(u[0]),i=parseInt(u[1]),r=parseInt(u[2]);if(o<0||o>=24||i<0||i>=60||r<0||r>=60)return;var s=r+1,f=i,e=o;s==60&&(s=0,f++,f==60&&(f=0,e++,e==24&&(e=0))),i=(i<10?"0":"")+i,r=(r<10?"0":"")+r,c=o+":"+i+":"+r,document.getElementById(n).innerHTML=c,h=e+":"+f+":"+s,setTimeout("updateClock('"+n+"','"+h+"')",1e3)}function ClickTextBox(n,t){n.value==t&&(n.value=""),CheckTextBox(n,t)}function BlurTextBox(n,t){n.value==""&&(n.value=t),CheckTextBox(n,t)}function CheckTextBox(n,t){n.style.color=n.value==t?"#898989":"#000000"}function HandleTextBoxRightclick(n,t,i){var r;i||(i=window.event),i.which?r=i.which==3:i.button&&(r=i.button==2),r&&ClickTextBox(n,t)}function RunAJAXCall_Synch(n,t){var i=getHTTPObject(),u=n+(n.indexOf("?")>-1?"&":"?")+"&rand="+Math.random(),r;return i.open("POST",u,!1),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("Content-Length",1),i.send(t),r=i.responseText,i=null,r}function RunAJAXCall(n,t,i,r){var u=getHTTPObject(),f=n+(n.indexOf("?")>-1?"&":"?")+"&rand="+Math.random();u.open("POST",f,!0),u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.setRequestHeader("Content-Length",1),u.onreadystatechange=function(){AJAXCallback(u,t,i)},u.send(r)}function AJAXCallback(n,t,i){n!=null&&n.readyState==4&&n.status==200&&(t(n.responseText,i),n=null)}function GetViewportHeight(){var n=0;try{n=typeof window.innerHeight!="undefined"?window.innerHeight:typeof document.documentElement!="undefined"&&typeof document.documentElement.clientHeight!="undefined"&&document.documentElement.clientHeight!=0?document.documentElement.clientHeight:document.getElementsByTagName("body")[0].clientHeight}catch(t){}return n}function GetViewportWidth(){var n=0;try{n=typeof window.innerWidth!="undefined"?window.innerWidth:typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0?document.documentElement.clientWidth:document.getElementsByTagName("body")[0].clientWidth}catch(t){}return n}function ToggleItem(n,t){document.getElementById(n)!=null&&(document.getElementById(n).style.display=t?"":"none",document.getElementById(n).style.visibility=t?"visible":"hidden")}function SendGAData(n,t){for(var f=location.href.toLowerCase(),e=t.toLowerCase(),o=f.indexOf(e),s=f.substring(o).replace(e,""),i,u,r=0;r<_gaAccountList.length;r++)i=GetGATrackerPrefix(r),u=_gaAccountList[r],_gaq.push([i+"_setAccount",u],[i+"_setDomainName","none"],[i+"_setAllowLinker",!0],[i+"_setCustomVar",1,"Customer",n,1],[i+"_trackPageview",s],[i+"_trackPageLoadTime"])}function PushGAEvent(n,t,i,r){for(var f,u=0;u<_gaAccountList.length;u++)f=GetGATrackerPrefix(u),_gaq.push([f+"_trackEvent",n,t,i,r])}function GetGATrackerPrefix(n){return n==0?"":"tracker"+n+"."}function ToggleCheckboxes(n,t){var i=t==null||t==""?"chbListItem":t;$("."+i).attr("checked",n.checked)}function DisplayResource(n,t,i,r,u){var y="divtmp_"+n,p=RunAJAXCall_Synch("common_string_resource.aspx?resourceID="+n),f=document.getElementById(y),e,o,a,h,c,s,v,l;f==null&&(f=document.createElement("div"),f.setAttribute("id",y),o=document.createElement("table"),e=document.createElement("tr"),a=document.createElement("td"),e.appendChild(a),o.appendChild(e),e=document.createElement("tr"),h=document.createElement("td"),e.appendChild(h),o.appendChild(e),e=document.createElement("tr"),c=document.createElement("td"),s=document.createElement("input"),c.appendChild(s),e.appendChild(c),o.appendChild(e),f.appendChild(o),f.setAttribute("class","GenericDivOuter TransitionInvisible"),o.setAttribute("class","GenericDivTable"),a.setAttribute("class","GenericDivTitle"),h.setAttribute("class","tcellClass"),h.style.backgroundColor="#fff",c.setAttribute("class","tcellClass GenericDivButtons"),s.setAttribute("class","btnClass"),s.setAttribute("type","button"),s.setAttribute("onclick","javascript:ItemHide(this.parentNode.parentNode.parentNode.parentNode.id);return false;"),s.value="Kapat",document.body.appendChild(f)),f.childNodes[0].rows[1].cells[0].innerHTML=p,v=r?r:500,u&&(f.style.height=u+"px"),f.style.width=v+"px",f.style.left=mouseX(i)+"px",ItemDisplay(f.id),l=mouseY(i)-f.offsetHeight,l<0&&(l=0),f.style.top=l+"px"}function BrowserIsIE(){return XMLHttpRequest?!0:!1}function NavigateURL(n){document.location=IEjsURL(n)}function IEjsURL(n){var t=document.getElementById("basePath")?document.getElementById("basePath").getAttribute("href"):"";return n.indexOf("http://")==-1&&n.indexOf("https://")==-1&&BrowserIsIE()&&(n=t+n),n}var g_cphMain="",_gaq=_gaq||[],_gaAccountList=[],http,domDoc,myProps=[],myPropsBusyImg=[],resulthttpList=[]
