function om( bId ){
	if(document.getElementById){
		var spab = document.getElementById(bId);

		if(spab.style.display == "block"){
			spab.style.display = "none";
		}
		else{
			spab.style.display = "block";
		}
	}
}


function onk(x,y,z,c1,c2){

	var i=document.form1[y].value.length;

	document.form1[x].value=i;

	if(i > eval(z)){
		if(document.getElementById){
			document.getElementById(x).style.color=c1;
		}
		else if(document.all){
			document.all(x).style.color=c1;
		}
	}
	else {
		if(document.getElementById){
			document.getElementById(x).style.color=c2;
		}
		else if(document.all){
			document.all(x).style.color=c2;
		}
	}

}


function nospam(user,domain) {
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}

function ov(x){
	document.getElementById(x).style.display='block';
}
function ou(x){
	document.getElementById(x).style.display='none';
}

function openWin(x){

	window.open(x,"NewWin","menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width=520,height=500,left=100,top=130");

}
function openWin1(x){

	window.open(x,"NewWin","menubar=yes,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,resizable=yes,width=810,height=600,left=50,top=80");

}
function season() {

	var d=new Date();
	var season=new Array("Winter","Spring","Summer","Autumn");
	var dyear = d.getFullYear();
	var dmon =Math.floor((d.getMonth()+1)/3);
	if(dmon==4){ dmon=0; }
	document.write("<div class='season'>");	
	document.write(dyear +"กก"+ season[dmon]);
	document.write("<\/div>");

}

flag=1;

