function goto(url){ window.location = url + "ret="+document.URL; } function site_search(){ //alert("comming soon"); window.location = "search_site.php?k=" + document.searchform.k.value; } function site_search1(){ //alert("comming soon"); window.location = "search_site.php?k=" + document.searchform.k.value; } function change_lang(lang){ //alert("change to " + document.URL); var current_url = document.URL; if(lang == "en"){ current_url = current_url.replace("vie","eng"); }else{ current_url = current_url.replace("eng","vie"); } //alert("change to " + current_url); window.location = current_url; } var popUpWin=0; function popUpWindow(URLStr, left, top, width, height) { if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); } popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+''); } function enter_search_site(form){ window.location = "search_site.php?k=" + document.myform.keyword.value; return false; }