var vSelectId="";var vAction="";function setActionForm(A){vAction=A;}function addPointSendFormRequest(){document.getElementById("formSendReq_id").action=vAction;document.getElementById("formSendReq_id").submit();}function SelectNewElement(E,C,A){vSelectId=A;var D=newXMLHttpRequest();var F=getReadyStateHandler(D,loadValuesXML);
D.onreadystatechange=F;D.open("POST","/mattcontrol/service/MapLocationService",true);D.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var B="option="+C+"&code="+E;D.send(B);}function clearSelectElement(A){document.getElementById(A).innerHTML="";}function loadValuesXML(D){var H=document.getElementById(vSelectId);
H.innerHTML="";var A=D.getElementsByTagName("locations")[0];var E=A.getElementsByTagName("location");if(vSelectId!=""){var J=document.createElement("option");J.value="-1";J.appendChild(document.createTextNode(" -- Select an option -- "));H.appendChild(J);}for(var F=0;F<E.length;F++){try{var C=E[F].getAttribute("id");
var B=E[F].getAttribute("name");var G=document.createElement("option");G.value=C;G.appendChild(document.createTextNode(B));H.appendChild(G);}catch(I){}}}function loadLatitudeandLenghtValuesXML(E){var D=E.getElementsByTagName("locations")[0];var C=D.getElementsByTagName("location");if(C.length>0){var B=C[0].getAttribute("latitude");
var A=C[0].getAttribute("length");document.getElementById("length_id").value=A;document.getElementById("latitude_id").value=B;addPointSendFormRequest();}}function getLatitudeandLenght(){code=document.getElementById("neighborhood_id").value;var B=newXMLHttpRequest();var C=getReadyStateHandler(B,loadLatitudeandLenghtValuesXML);
B.onreadystatechange=C;B.open("POST","/mattcontrol/service/MapLocationService",true);B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var A="option=5&code="+code;B.send(A);}function showLocationstoAddArticle(A){showDiv("DivContentContinents");document.getElementById("article_id").value=A;
}function hiddeLocationstoAddArticle(){hiddeDiv("DivContentContinents");}function hiddeDiv(A){document.getElementById(A).style.display="none";}function showDiv(A){document.getElementById(A).style.display="";}function resetInputText(A){document.getElementById(A).value="";}function animateSelect(A,B){if(B){$("#"+A).show("blind",{direction:"vertical"},750);
}else{if("none"!=document.getElementById(A).style.display){$("#"+A).hide("blind",{direction:"vertical"},750,hiddeDiv(A));}}}function animateDiv(A){if(A){$("#DivContentContinents").show("scale");}else{$("#DivContentContinents").hide("scale");}}function addtag(A,C){var B=new GMarker(A);GEvent.addListener(B,"click",function(){B.openInfoWindowHtml(C);
});return B;}function getAddress(B,F,A,D,E){var C="<div style='padding-top: 15px;'><a style='text-decoration: none;' href='/"+D+"/"+B+"_"+E+".html' >"+F+"</a><p>"+A+"...&nbsp;<a href='/"+D+"/"+B+"_"+E+".html'>More</a></p></div>";return C;}
