function txt_area(prov,amph,gid) {
	var objDiv = document.getElementById("nav"+gid);
	objDiv.style.display = '';
	url='list_tumbon.php?prov='+prov+'&&amph='+amph+'&gid='+gid;

					
	AjaxRequest.get(
		{
			'url':url
			,'onLoading':function() { }
			,'onLoaded':function() { }
			,'onInteractive':function() { }
			,'onComplete':function() { }
			,'onSuccess':function(req) { 
					objDiv.innerHTML = req.responseText; 
					
			}
		}
	);
	
}

	function changeStyle(c) {
		var x = document.getElementsByTagName("span");
		for (i=0;x && i < x.length; i++) {
			x[i].removeAttribute("style");
		}
		document.all.stext.href='css/'+c+'.css';
	}

function ChangeLanguage(lang){
 					document.all.formtextchangelang.innerHTML = "<table width=\"100%\" height=\"100%\"><form name=\"changeform\" method=\"post\" action=\"ewt_language_block.php\"><input name=\"language\" type=\"hidden\" id=\"language\" value=\""+ lang +"\"><input name=\"filename\" type=\"hidden\" id=\"filename\" value=\"<?php echo $filename; ?>\"><input name=\"page\" type=\"hidden\" id=\"page\" value=\"" + this.location + "\"></form><tr><td><div align=\"center\"><font size=\"5\" face=\"Verdana, Arial, Helvetica, sans-serif\"><strong>Please Wait...</strong></font></div></td></tr></table>";
changeform.submit();
 }

 function findPosX(obj)
{
 var curleft = 0;
 if (document.getElementById || document.all)
 {
  while (obj.offsetParent)
  {
   curleft += obj.offsetLeft
   obj = obj.offsetParent;
  }
 }
 else if (document.layers)
  curleft += obj.x;

 return curleft;
}
function findPosY(obj)
{
 var curtop = 0;
 if (document.getElementById || document.all)
 {
  while (obj.offsetParent)
  {
   curtop += obj.offsetTop
   obj = obj.offsetParent;
  }
 }
 else if (document.layers)
  curtop += obj.y;
 return curtop;
}
	jQuery(document).ready(function(){
		var opts =
		{ align: 'top'
		, size: 85
		, labels: 'tc'
		, source: function(i){ return (this.alt) ? false : this.src.replace(/(png|gif)$/,'jpg'); }
		};
		jQuery('#icon_botton').jqDock(opts);
	});

function show_webboard_list(bid,theme,filename,mainwidth) {
	var objDiv = document.getElementById("show_webboard_list"+bid);
	
	url='activity_webboard_display.php?block_themes='+theme+'&filename='+filename+'&mainwidth='+mainwidth;

					
	AjaxRequest.get(
		{
			'url':url
			,'onLoading':function() { }
			,'onLoaded':function() { }
			,'onInteractive':function() { }
			,'onComplete':function() { }
			,'onSuccess':function(req) { 
					objDiv.innerHTML = req.responseText; 
					
			}
		}
	);
	
}