﻿ function hide(id) {
        document.getElementById(id).style.display = "none";
    }
    function show(id) {
        document.getElementById(id).style.display = "block";
    }
    function continent(id) {
        hideContinent();
        show(id);
    }
    function hideContinent() {
        var continentName = ["asia", "europe", "africa", "australia", "northAmerica", "southAmerica"];
        for (var i = 0; i < continentName.length; i++) {
            hide(continentName[i]);
        }
    }
    function hide2(id) {
        document.getElementById(id).style.display = "none";
    }
    function show2(id) {
        document.getElementById(id).style.display = "block";
    }
    function continent2(id) {
        hideContinent2();
        show2(id);
    }
    function hideContinent2() {
        var continentName = ["asia1", "europe1", "africa1", "australia1", "northAmerica1", "southAmerica1", "Cities"];
        for (var i = 0; i < continentName.length; i++) {
            hide2(continentName[i]);
        }
    }
      function gosearch() {
        var vkey = document.getElementById('txtsearchkeyword').value;
        var vtype = document.getElementById('cmbsearchtype').value;
        location.assign('more_line.htmlx?key=' + vkey + '&type=' + vtype);
    }
 function xian(id,ev){
    document.getElementById("Menu").style.display="block";    
     if ( window.event ){
     document.getElementById("Menu").style.posLeft=document.documentElement.scrollLeft+event.clientX; 
     document.getElementById("Menu").style.posTop=document.documentElement.scrollTop+event.clientY; 
    }else{
     document.getElementById("Menu").style.left= ev.pageX+"px";
       document.getElementById("Menu").style.top= ev.pageY+"px";
    }
     document.getElementById("a1").href="/more_info/"+id+"/9.html";
     document.getElementById("a2").href="/more_info/"+id+"/8.html";
     document.getElementById("a3").href="/more_info/"+id+"/10.html";
     document.getElementById("a4").href="/more_info/"+id+"/12.html"
     document.getElementById("a5").href="/more_info/"+id+"/11.html"
}
function ying(ev){
    if(!Menu.contains(ev.toElement)){ 
    document.getElementById("Menu").style.display="none";
    }
}
function judgeSubmit()
{
   var p1 = document.getElementById('con1');    
   if(p1.value=="")
   {
      alert("评论不能为空");
      document.getElementById('con1').focus();
      return false;
   }
}