function $(b){return document.getElementById(b)}loader="";function load(c,b){if(!loader){loader=$("loader")}if(c){if(b.length>0){loader.innerHTML=b}else{loader.innerHTML="Please Wait..."}var d=(document.all?document.documentElement.scrollTop:window.pageYOffset);loader.style.top=d+"px";loader.style.display="block"}else{loader.style.display="none"}}function isEmail(b){if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,5})+$/.test(b)){return true}else{return false}}function findX(b){var c=0;if(b.offsetParent){while(1){c+=b.offsetLeft;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.x){c+=b.x}}return c}function findY(c){var b=0;if(c.offsetParent){while(1){b+=c.offsetTop;if(!c.offsetParent){break}c=c.offsetParent}}else{if(c.y){b+=c.y}}return b}function left(b,c){if(c<=0){return""}else{if(c>String(b).length){return b}else{return String(b).substring(0,c)}}}function right(c,d){if(d<=0){return""}else{if(d>String(c).length){return c}else{var b=String(c).length;return String(c).substring(b,b-d)}}}String.prototype.trim=function(){a=this.replace(/^\s+/,"");return a.replace(/\s+$/,"")};DDmenu=null;DDanchor=null;DDclassName=null;node=null;Dmenu=null;document.onmousedown=checkDD;function checkDD(c){c=c||window.event;var d=c.target||c.srcElement;if(DDmenu){if(dojo.style.getStyle(node,"display")=="block"){try{if(DDanchor!=d&&DDanchor!=d.parentNode.parentNode){if(d!=DDmenu&&d.parentNode!=DDmenu&&d.parentNode.parentNode!=DDmenu&&d.parentNode.parentNode.parentNode!=DDmenu&&d.parentNode.parentNode.parentNode.parentNode!=DDmenu){hideDD()}}}catch(b){hideDD()}finally{}}}}function showDD(menu,anchor,offsetX,offsetxY,className,ID,ID2){pass=true;var IE6=false
/*@cc_on || @_jscript_version < 5.7 @*/
;if(DDmenu){if(DDmenu.style.display=="block"){DDanchor.className=DDclassName;DDmenu.style.display="none";if(DDanchor==anchor){pass=false}}}if(pass){DDmenu=menu;DDanchor=anchor;DDclassName=className;if(ID){if(DDmenu.id!="DDOptions"&&DDmenu.id!="DDfDel"){DDmenu=$(DDmenu.id+"HTML");$("folderID").value=ID}else{DDmenu.innerHTML=$(DDmenu.id+"HTML").innerHTML.replace(/%ID%/g,ID)}if(ID2){if(DDmenu.id!="DDOptions"){$("folderTitle").value=ID2}else{DDmenu.innerHTML=DDmenu.innerHTML.replace(/%ID2%/g,ID2)}}}if(DDmenu.style.display=="block"){DDanchor.className=DDclassName;DDmenu.style.display="none"}else{if(IE6==true&&className=="DD"){offsetX=offsetX+3}DDmenu.style.left=(findX(DDanchor)+offsetX)+"px";DDmenu.style.top=(findY(DDanchor)+offsetxY)+"px";DDanchor.className=DDclassName+"on";DDmenu.style.display="block"}}}function showDD1(e,d,c,f){pass=true;var b=false;node=dojo.byId(e);if(DDmenu){if(dojo.style.getStyle(node,"display")=="block"){DDanchor.className=DDclassName;dojo.lfx.html.fadeHide(e,500).play();if(DDanchor==d){pass=false}}}if(pass){Dmenu=e;DDmenu=document.getElementById(e);DDanchor=d;if(dojo.style.getStyle(node,"display")=="block"){DDanchor.className=DDclassName;dojo.lfx.html.fadeHide(e,500).play()}else{if(b==true){c=c+3}DDmenu.style.left=(findX(DDanchor)+c)+"px";DDmenu.style.top=(findY(DDanchor)+f)+"px";DDanchor.className=DDclassName+"on";dojo.lfx.html.fadeShow(e,500).play()}}}function addBookmark(b){url=window.location.href;if(window.sidebar){window.sidebar.addPanel(b,url,"")}else{if(document.all){window.external.AddFavorite(url,b)}else{if(window.opera&&window.print){return true}}}}function DynamicNavBookmarkRun(f,b,d){var h=f+(!!b?b+"="+encodeURIComponent(window.location.href):"")+"&"+(!!d&&!!document.title?d+"="+encodeURIComponent(document.title)+"&":"");var e=(window.screen.width-600)/2;var g=(window.screen.height-450)/2;var c="status=yes,scrollbars=yes,resizable=no,width=600,height=450,top="+g+",left="+e;var h=window.open(h,"HuaweiBookmark",c);if(h){h.focus()}}function hideDD(){if(DDmenu){if(dojo.style.getStyle(node,"display")=="block"){temp=DDanchor.className;temp=temp.replace(/on/,"");DDanchor.className=temp;dojo.lfx.html.fadeHide(Dmenu,500).play()}}}function clearHeadSearch(){name=document.titleSearchForm.elements.searchString.value;if(name.toLowerCase()=="search"){document.titleSearchForm.elements.searchString.value=""}}function MouseoverHighlight(b,d,c){if(b){if(d){b.style.background=c}else{b.style.background=""}}}function OverLv1Menu(d,b,c){if(d){d.style.background=c;d.style.color="#990000";d.className=b+" m_lv1_over"}return false}function OutLv1Menu(d,b,c){if(d){d.className=b;d.style.background=c;d.style.color="#222222"}return false}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_findObj(g,f){var e,c,b;if(!f){f=document}if((e=g.indexOf("?"))>0&&parent.frames.length){f=parent.frames[g.substring(e+1)].document;g=g.substring(0,e)}if(!(b=f[g])&&f.all){b=f.all[g]}for(c=0;!b&&c<f.forms.length;c++){b=f.forms[c][g]}for(c=0;!b&&f.layers&&c<f.layers.length;c++){b=MM_findObj(g,f.layers[c].document)}if(!b&&document.getElementById){b=document.getElementById(g)}return b}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function showCollapseFade(f,c,d,j,b,i){if(document.getElementById){if(document.getElementById("TB_window")!=null){var g=document.getElementById("TB_window");var e=document.getElementById("TB_overlay");dojo.dom.removeNode(g);dojo.dom.removeNode(e)}var h=document.createElement("iframe");var e=document.createElement("div");var g=document.createElement("div");h.id="TB_HideSelect";e.id="TB_overlay";g.id="TB_window";if(document.documentElement.clientHeight<document.body.offsetHeight){e.style.height=document.body.offsetHeight+"px";h.style.height=document.body.offsetHeight+"px"}else{if(document.documentElement.clientHeight>document.body.clientHeight){e.style.height=document.documentElement.clientHeight+"px";h.style.height=document.documentElement.clientHeight+"px"}}e.style.width=document.documentElement.clientWidth+"px";h.style.width=document.documentElement.clientWidth+"px";if(typeof document.body.style.maxHeight==="undefined"){if(document.getElementById("TB_HideSelect")===null){document.body.appendChild(h);document.body.appendChild(e);document.body.appendChild(g);TB_WIDTH=parseInt(d)}}else{document.body.appendChild(h);document.body.appendChild(e);document.body.appendChild(g);TB_WIDTH=parseInt(d)+7}ajaxLink(g,b,i);TB_TOP=document.documentElement.scrollTop+50+"px";TB_LEFT=(window.screen.width-TB_WIDTH)/2+"px";g.style.top=TB_TOP;g.style.left=TB_LEFT;g.style.width=TB_WIDTH+"px";dojo.html.setOpacity(g,0);dojo.lfx.html.propertyAnimation(e,[{property:"opacity",start:0,end:0.3}],500).play();dojo.lfx.html.fadeShow(g,200).play()}}function closeInlinePopup(e){var b=document.getElementById("TB_window");var c=document.getElementById("TB_overlay");boxframe=document.getElementById("TB_HideSelect");var d=dojo.lfx.chain(dojo.lfx.html.fadeHide(b,300),dojo.lfx.html.fadeHide(c,300)).play();dojo.event.connect(d,"onEnd",function(){b.innerHTML="";dojo.dom.removeNode(boxframe)})}function removePopup(e){var b=document.getElementById("TB_window");var d=document.getElementById("TB_overlay");var c=document.getElementById("TB_HideSelect");dojo.lfx.chain(dojo.lfx.html.fadeHide(b,300),dojo.lfx.html.propertyAnimation(d,[{property:"opacity",start:0.3,end:0}],500)).play();return true}function ajaxLink(b,c,d){dojo.io.bind({url:c,method:"post",content:{ajax:true,engine:"dojo"},load:function(e,g,f){b.innerHTML=g;return b.innerHTML}});b.innerHTML='<div style="top: 50px; left: 213.5px; width: 597px; height:300px; text-align:center;vertical-align:middle;"><img src="http://www.huawei.com/images/ajax.gif"></div>'}function setCookie(b,c){var e=60*24*60*60*1000;var d=new Date();d.setTime(d.getTime()+e);document.cookie=b+"="+escape(c)+";expires="+d.toGMTString()}function getCookie(b){var c=b+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(c);if(offset!=-1){offset+=c.length;end=document.cookie.indexOf(";",offset);if(end==-1){}end=document.cookie.length;end=offset+1;return unescape(document.cookie.substring(offset,end))}}}function ajaxSubmitFormObjectFinal(divID,url,htmlForm,evaluateJS,flag,displayobj,displayId,ajaxid){var container=document.getElementById(divID);if(container&&htmlForm){dojo.io.bind({url:url,method:"post",content:{ajax:true,engine:"dojo",evaluateJS:evaluateJS},formNode:htmlForm,load:function(type,data){if(evaluateJS){eval(data);container.innerHTML=""}else{container.innerHTML=data}},encoding:"utf8"});container.innerHTML='<div align="center"><img src="http://www.huawei.com/images/ajax.gif"><br/>Processing</div>'}else{alert("Container or Form Not Found")}return false};