// Lang Code	 ----------------------------------------------------------------------\\\\\\\\\\\\\\\
		
	function fillDiv(o) {
		var _divName = o.divName;
		var _content = o.content;
		$(_divName).innerHTML = _content;
		f(o);
	};	
	
	function fadeOut(o) {
		var _divName = o.divName;
		var _duration = o.duration;
		//alert(_divName + ':' + _duration);
		new Effect.Opacity( _divName , { from: 1, to: 0, duration: _duration, 
				afterFinish: function() { f(o); } } ); 
	}
	
	function fadeIn(o) {
		var _divName = o.divName;
		var _duration = o.duration;
		new Effect.Opacity( _divName , { from: 0, to: 1, duration: _duration, 
				afterFinish: function() { f(o); } } ); 
	}
	
	function ajaxRequest(o) {
		_page = o.page;
		_method = (o.method) ? o.method : 'GET';
		_parameters = (o.parameters) ? o.parameters : '';
		new Ajax.Request( _page , {
			 method: _method,
			 parameters: _parameters,
			 onSuccess: function(xhrResponse) { o.xhrResponse = xhrResponse; f(o); },
			 onFailure: function(xhrResponse) { o.error.push(xhrResponse.statusText); f(o); }
			 });
	}
	
	function isEmail(string) {

	   if (!string) return false;
	   var iChars = "*|,\":<>[]{}`\';()&$#%";
	
	   for (var i = 0; i < string.length; i++) {
		  if (iChars.indexOf(string.charAt(i)) != -1)
			 return false;
	   }
	   return true;
	}   

	
	function preloadImage(o) {
		_img = o.image;
		_height = o.imageHeight;
		_width = o.imageWidth;
		
		if (!o.imageCount) { o.imageCount = 1 }
		else { o.imageCount ++; };
		
		o['pic'+o.imageCount] = new Image(_height,_width); 
		o['pic'+o.imageCount].src=_img; 

	}
	