if(top.location!=self.location){
top.location=self.location}

function enterPressed(B,A){if(A.which||A.charCode){keyCode=A.which?A.which:A.charCode}else{keyCode=event.keyCode}if(keyCode==13){return true}else{return false}}enableHideToggablesOnBodyClick=false;

function toogle(C,B){toggableMouseOver();enableHideToggablesOnBodyClick=true;if(C){var D=document.getElementById(C);var A=D.style.display=="none";if(B){if(!A){return }else{A=true}}if(D){D.style.display=A?"":"none"}if(A){hideToggables(C)}}return false}

function hideToggables(D){if(!enableHideToggablesOnBodyClick){return }var E=document.getElementsByTagName("div");for(var C=0;C<E.length;C++){var B=E[C];var F="_toggable";var A=B.id;if((A!="")&&(A!="undefined")&&(A!=D)&&(A.indexOf(F)>0)&&(A.indexOf(F)==(A.length-F.length))){B.style.display="none"}}}toogableCloseToken=false;toogableSeconds=1;

function toggableMouseOver(){toogableCloseToken=false}

function toggableMouseOut(){toogableCloseToken=true;window.setTimeout("toggableCloseAll()",toogableSeconds*500)}

function toggableCloseAll(){if(toogableCloseToken){hideToggables()}}

function clickOnce(A,B){if(typeof (Page_ClientValidate)=="function"){if(Page_ClientValidate()==false){return false}}if(A.getAttribute("type")=="button"){if(!B||(B=="undefined")){B="Enviando..."}A.value=B;A.disabled=true;A.style.color="gray";A.style.cursor="default"}return true}

function search(){var C=document.getElementById("tops").value;var B=document.getElementById("topt").value;var A="/search/redirect.aspx?s="+C+"&t="+B;window.location=A}

function askquestion(A){if(!A){A="askquery"}var C=document.getElementById(A).value;C=encodeURI(C);var B="/quick/"+C;window.location=B}

function answerquestion(){var B=document.getElementById("answerquery").value;var A="/search/redirect.aspx?s="+B;window.location=A}

function searchKeyPressed(B,A,C){if(enterPressed(B,A)){window.setTimeout(C,1);return false}else{return true}}

function quickAskAndAnswerManager(C){var B;var A;var D;var E;if(C=="ask"){B=document.getElementById("askquestiontitle");A=document.getElementById("answerquestiontitle");D=document.getElementById("answerquestionitemcontainer");E=document.getElementById("askquestionitemcontainer")}else{B=document.getElementById("answerquestiontitle");A=document.getElementById("askquestiontitle");D=document.getElementById("askquestionitemcontainer");E=document.getElementById("answerquestionitemcontainer")}B.setAttribute("class","selected");B.setAttribute("className","selected");A.setAttribute("class","nonselected");A.setAttribute("className","nonselected");E.style.display="";D.style.display="none"}

function SetUniqueRadioButton(B,C){re=new RegExp(B);rb=document.getElementById(C);var A=document.getElementsByTagName("input");for(i=0;i<A.length;i++){elm=A[i];if(elm.type=="radio"){if(re.test(elm.name)){elm.checked=false}}}rb.checked=true}

function SetIframeSrc(C,B){var A=document.getElementById(C);if(A){if(!A.src||(A.src=="")){A.src=B}}}