function goback(){
            this.history.go(-1);
}
function closethis(){
			window.close();}

function showpage(proname){
		 openpage=proname + '.html';
         mywin = window.open(openpage,'_blank','toolbar=no, width=540, height= 400, scrollbars=yes, resizable=yes, titlebar=no');
 
}

function showmap(){
         mywinmap = window.open('vietnam_map.html','_blank','toolbar=no, width=500, height= 790, scrollbars=yes, resizable=no, titlebar=no');
}

function ItemMinimize(i) {
	var MItem=document.all('IDM_'.concat(i));	
  	if (MItem.style.display=='') {
				MItem.style.display='none';			
			}
			else {
				MItem.style.display='';			
			}
}
	
	
function image_open(image_loc,img)
{
  HTML = "<html><style>body{margin:0px 0px 0px 0px}</style><body onBlur='top.close()'><img src='"+ image_loc +"' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10,document.load_image.height+30);window.moveTo(parseInt(window.screen.availWidth)/2-parseInt(document.load_image.width+10)/2,parseInt(window.screen.availHeight)/2-parseInt(document.load_image.height+30)/2)'></body></html>";
  popupImage = window.open('','_blank','toolbar=no,scrollbars=no');
  popupImage.document.open();
  popupImage.document.write(HTML);
  popupImage.document.close();
  //obj_img = popupImage.document.getElementById(img);
 //obj_img.src= obj_img.src;
}


//Disable right-click function

am = "Copyright of Thoigian's team";

bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

function nopage() {
	   	   alert ("This page is not available! ");
}

function checkalert() {
	   	   alert ("The search engine is under construction. ");
}


/////////////////////////
function validate(r_form) 
{	
        if (r_form.nname.value =="")
  			{
				alert("Please input your name!");
				r_form.nname.focus();
				return (false);
  			}

		if (r_form.mmail.value == "")
  			{
				alert("Please input your email!");
				r_form.mmail.focus();
				return (false);
  			}  
  			
		if (r_form.mmail.value!= "")
	  	{
			if (r_form.mmail.value.indexOf('@', 0) == -1 || r_form.mmail.value.indexOf('.', 0) == -1)
			{
				alert("Your email is incorrect. Example: info@thoi-gian.com");
				r_form.mmail.focus();
				return (false);
			}
  		}	
		 if (r_form.pphone.value =="")
  			{
				alert("Please input your phone number!");
				r_form.pphone.focus();
				return (false);
  			}
		 		
/////Kiem tra ok
			
		  	  
  	return (true);
}
