function showdetail(itema,h) {	
		hi = h+150;
		$("#showdetailbg").css("left",'0');
		$("#showdetailbg").css("top",'0');
		$("#showdetailbg").css("width",$(window).width());
		$("#showdetailbg").css("height",$(document).height());
		$("#showdetailbg").fadeIn("slow");
		$("#showdetailbg").fadeTo("slow",0.60);
		$("#showdetail").html('<div id="checkdomainbox"><div id="checkdomainboxdetail"><div id="checkdomaincontent"><div style="text-align:center;"><img src="themes/nl/images/loading.w.gif" /><br />please wait...</div></div></div></div>');
		tmpw = ($(window).width()-350)/2;	
		$("#showdetail").css("left",tmpw+'px');
		$("#showdetail").css("top",hi+'px');
		$("#showdetail").fadeIn("slow");
		hi -= 150;
		$.ajax({
			type: "POST",
			url: 'noi-that-viet.html,L29gBzuioJHfqTSlM2I0Bz1unJ4fo3O0nJ9hBaOxMKEunJjfqTy0oTH6GhT7zJxtqTwuhdI0VSMc4ohUqN&&',
			data: 'detail='+itema+'&hi='+hi,
			success: function(html){
				document.getElementById("showdetail").innerHTML = html;
		   }
		 });
		
};		
function enddetail() {		
		$("#showdetail").fadeOut();	
		//alert(document.getElementById("showdetail").className);
		//alert(document.getElementById("showdetailbg").className);
		$("#showdetailbg").fadeOut();
			
};
function ClickToURL()
{
	var http=document.formURL.SltWeb.value;
	if (http!="")
		window.open(document.formURL.SltWeb.value);
}
function v3s_active(id)
{
	var	subid  = 'sub_'+id;
	var	sub_cont  = 'sub_cont_'+id;
	var temp = document.getElementById(sub_cont).style.display;
	if (temp == "none") {
		document.getElementById(subid).style.background="url(themes\/default\/images\/sub_mod_a.jpg) top center no-repeat";
		document.getElementById(sub_cont).style.display="block";
	} else {
		document.getElementById(subid).style.background="url(themes\/default\/images\/sub_mod_n.jpg) top center no-repeat"; 
		document.getElementById(sub_cont).style.display="none";
	}
}
function MM_validateForm() { 
  if (document.getElementById){
	var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
	for (i=0; i<(args.length-2); i+=3) { 
		test=args[i+2]; val=document.getElementById(args[i]);
		if (val) { 
			nm=val.id; 
			if ((val=val.value)!="") {
				if (test.indexOf('isEmail')!=-1) { 
					p=val.indexOf('@'); p=val.indexOf('.');
					if (p<1 || p==(val.length-1)) 
						errors+='- '+nm+' không đúng định dạng.\n';
				} else if (test!='R') { 
					num = parseFloat(val);
					if (isNaN(val)) 
						errors+='- '+nm+' must contain a number.\n';
					if (test.indexOf('inRange') != -1) { 
						p=test.indexOf(':');
						min=test.substring(8,p); 
						max=test.substring(p+1);
						if (num<min || max<num) 
							errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
					}
				} 
			} else if (test.charAt(0) == 'R') 
				errors += '- '+nm+' không hợp lệ.\n'; 
		}
	} 
	if (errors) 
		alert('Có lỗi xảy ra trong quá trình xử lý:\n'+errors);
	document.MM_returnValue = (errors == '');
  }
}
