var ajaxWindowLink;function processRequestResponse(b,c,d){var e='<p>'+processingSrc+'</p>';if(!d){Confirmation('selMsgConfirm','formConfirm',Array('selMsgContent'),Array(e),Array('innerHTML'));ajaxUpdateDiv(reqResUrl,c,'selMsgContent')}else{Confirmation('selMsgConfirm','formConfirm',Array('selMsgContent'),Array(e),Array('innerHTML'));new Ajax.Request(reqResUrl,{method:'get',parameters:c,onCreate:function(a){},onComplete:function(a){a.responseText.evalScripts();$('selMsgContent').innerHTML=a.responseText}})}return false};var getLangConfirmation=function(){anchorLink=arguments[0];newlg=arguments[1];act=arguments[2];confirmLangDeleteMsg=arguments[3];Confirmation('selMsgConfirm','formConfirm',Array('selMsgContent','newlg','confirm_act'),Array(confirmLangDeleteMsg,newlg,act),Array('innerHTML','value','value'));return false};function startTranslate(b,c){var d='step_'+c;var e='action_'+c;var f='<p>'+processingSrc+'&nbsp;Processing</p>';$('selButtonRow').style.display='none';$('selWaitMsg').style.display='';$(d).innerHTML=f;$(d).className="clsNotTranslated";new Ajax.Request(reqResUrl,{method:'get',parameters:"newlg="+b+"&step="+c,onCreate:function(a){},onComplete:function(a){a.responseText.evalScripts();$(d).innerHTML=completed;$(d).className="clsTranslateComplete";c++;if(c<=7){startTranslate(b,c)}else{window.location.href=reqResUrl+'?msg=1'}}});return false};function startTranslateAll(b,c){var d='step_'+c;var e='action_'+c;var f='<p>'+processingSrc+'</p>';$('selButtonRow').style.display='none';$('selWaitMsg').style.display='';$(d).innerHTML=f;$(e).innerHTML=processing;new Ajax.Request(reqResUrl,{method:'get',parameters:"newlg="+b+"&step="+c,onCreate:function(a){},onComplete:function(a){a.responseText.evalScripts();$(d).innerHTML=completed;$(d).className="clsTranslateComplete";$(e).innerHTML=translated;$(e).className="clsTranslateComplete";c++;$('selButtonRow').style.display=''}});return false};function startTranslateSingle(b,c,d,e){var f='step_file_'+c+'_'+d;var g='action_'+c;var h='<p>'+processingSrc+'</p>';$('selWaitMsg').style.display='';$(f).innerHTML=h;new Ajax.Request(reqResUrl,{method:'get',parameters:"newlg="+b+"&step="+c+"&file="+e,onCreate:function(a){},onComplete:function(a){a.responseText.evalScripts();$(f).innerHTML=completed;$(f).style.className="clsTranslateComplete";$(g).innerHTML=completed;$(g).style.className="clsTranslateComplete";c++;$('selWaitMsg').style.display='none'}});return false};function expand(a){var b='expand_but_'+a;var c='expand_tab_'+a;if($(c).style.display=='none'){$(c).style.display='block';$(b).value=collapse}else if($(c).style.display=='block'){$(c).style.display='none';$(b).value=expand}};function setRefresh(){hideAllBlocks();window.location.href=reqResUrl};function testOpenAjaxWindow(a){ajaxWindowLink=a;linkobj=document.getElementById(a);url=linkobj.href;pars='';var b=new Ajax.Request(url,{method:'get',parameters:pars,onComplete:ajaxResultOpenAjaxWindow});return false};function ajaxResultOpenAjaxWindow(a){data=a.responseText;Confirmation('selAjaxWindow','frmAjaxWindow',Array('selAjaxWindowInnerDiv'),Array(data),Array('innerHTML'));data.evalScripts();if((catObj=$('category'))||(sub_catObj=$('sub_category'))){br=getBrowser();if(br[0]=='msie'&&getMajorVersion(br[1])=='7'){if(catObj=$('category'))catObj.style.display='none';if(sub_catObj=$('sub_category'))sub_catObj.style.display='none'}}};