/* Menu top */
	showtime = 0;
	function changtab(id,count,clear){
		for(i=0;i<=count;i++){
			try{
				document.getElementById('tab_'+i).className='tab_normal';
				document.getElementById('tabconten_'+i).style.display='none';
				$("#tabconten_"+id).hide();
			}
			catch(e){}			
		}
		document.getElementById('tab_'+id).className='tab_select';
		//document.getElementById().style.display='block';
		$("#tabconten_"+id).show();
	}
/* End */


$(document).ready(function()
{
    //Proccessing bar
    $(".submit").click(function() {
        $('#loadingBar').show();
    })
    //End
	
});

// Check contact
	function check_contact(){   
		if(document.getElementById("name_contact").value == ""){
			alert("Please fill name");
			document.getElementById("name_contact").focus();
			return;
		}
		if(document.getElementById("email_contact").value == ""){
			alert("Please fill email");
			document.getElementById("email_contact").focus();
			return;
		}
		if(document.getElementById("email_contact").value.length > 0){
			if(!isemail(document.getElementById("email_contact").value)){
				alert("Email not match");
				document.getElementById("email_contact").focus();
				return;
			}
		}
		if(document.getElementById("title_contact").value == ""){
			alert("Please fill title");
			document.getElementById("title_contact").focus();
			return;
		}
		if(document.getElementById("content_contact").value == ""){
			alert("Please fill content or link rss");
			document.getElementById("content_contact").focus();
			return;
		}
		if(document.getElementById("scode").value == ""){
			alert("Please fill verify code");
			document.getElementById("scode").focus();
			return;
		}
		document.contact.submit();
	}
	function isemail(email) {
		var re = /^(\w|[^_]\.[^_]|[\-])+(([^_])(\@){1}([^_]))(([a-z]|[\d]|[_]|[\-])+|([^_]\.[^_])*)+\.[a-z]{2,3}$/i;
		return re.test(email);
	}
//
