	//===========================================
	$(document).ready(function () {
			$.ajaxSetup({
					url: "post_common.aspx",
					global: false,
					timeout: 1000*10,
					error:function(){
						alert("Sorry,This service is temporary unavailable.Please try again later");
					}
			});
	});
	//===========================================

	jQuery.fn.extend({
		doFocusInput:function(settings){
			var options = jQuery.extend(
			{msg:"username"}, settings);
			$(this).bind("focus",function(){
				if($.trim(this.value) == $.trim(this.defaultValue) ){
					this.value = "";
				}else this.select();
			}).bind("blur",function(){
				if($.trim(this.value) == ""){
					this.value = $.trim(this.defaultValue);
				}
			});
		}
	});
	
	//===========================================
	function pushDataToFlash(flashName,data){
		var flashMovie=getFlashMovieObject(flashName);
			flashMovie.SetVariable("/:status", data);
	}
	//===========================================
	function getFlashMovieObject(movieName){
	  if (window.document[movieName]) 
	  {
		return window.document[movieName];
	  }
	  if (navigator.appName.indexOf("Microsoft Internet")==-1)
	  {
		if (document.embeds && document.embeds[movieName])
		  return document.embeds[movieName]; 
	  }
	  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
	  {
		return document.getElementById(movieName);
	  }
	}
//-------------------------------------------
