var INpos=0 ;
var pre_id;
function show_TestimonialData_data()
{
	var arr = $('.TestimonialData');
	
	INpos=INpos%arr.length;
	var obj_id=arr.get(INpos).id;
	$('#'+pre_id).hide('slow');
	pre_id=obj_id;
	$('#'+obj_id).show('slow');
	INpos++;
	setTimeout(  'show_TestimonialData_data()', 4000 );
}


function ajx_fun()
{
	var fun,k,i=0,k=0,numargs = ajx_fun.arguments.length;
	if(ajx_fun.arguments.length>2)
	{
		var arg=new Array( );
		k=0;
		for (i=1;i < numargs;i++)
		{
			arg[k]=ajx_fun.arguments[i];
			k++;
	    }
	}
	else
	arg=ajx_fun.arguments[1];
	fun=''+ajx_fun.arguments[0]+'(arg)'
	eval(fun);
}

function sh_ajax(js_data)
{
	if(js_data[0]==0)
	{
		 alert('Error: Security Code is incorrect.<br>Please enter the correct security code and try again.');
	}
	else
	{
		     alert('Your Leave send Sucessfully');
			 this.document.frm.name.value="";
			 this.document.frm.email.value="";
			 this.document.frm.moblie.value="";
			 this.document.frm.landline.value="";
			 this.document.frm.comments.value="";
			 this.document.frm.captcha.value="";
	}
}

function check()
{
 if(this.document.frm.name.value=="")
 {
	  alert("Please Enter the your name");
	  this.document.frm.name.focus();
	  return false;
 }
 if(this.document.frm.email.value=="")
 {
    alert("Please Enter the your Email");
    this.document.frm.email.focus();
	return false;
 }
 if(this.document.frm.moblie.value=="")
 {
    alert("Please Enter the your Moblie No");
	this.document.frm.moblie.focus();
	return false;
 }
 if(this.document.frm.landline.value=="")
 {
    alert("Please Enter the your Landline");
	this.document.frm.landline.focus();
	return false;
 }
 if(this.document.frm.comments.value=="")
 {
    alert("Please Enter Leave Message ");
	this.document.frm.comments.focus();
	return false;
 }
  if(this.document.frm.captcha.value=="")
 {
    alert("Please Enter the Security Code");
	this.document.frm.captcha.focus();
	return false;
 }
 return true;
}

