$(document).ready(function()
{
    // unblock when ajax activity stops 
  	/*$().ajaxStart(function(){
							$("#error2").html("Sending mail.......");
							}); */
 
///////////for jquery block ui//////////////
function blockUi(title1,message1,timeout1)
{ 
	
     $.blockUI({  }); 
        $.blockUI({ 
            message:  message1, 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#000', 
            '-webkit-border-radius': '10px', 
            '-moz-border-radius': '10px', 
            opacity: .9, 
            color: '#fff' 
        }
        }); 
      }

	  
/*************************for getting all drop down menu**********/
/*
function GetDropDownList(url,Mode,selectId,populateid,val2)
	{
		
		$("#"+populateid).html("<option value=''>Please wait.....</option>");
		
		if(selectId!="")
		{
				var Value=$("#"+selectId).val()
				
		}
		if(url!="" && Mode!="")
		{
			if(val2!=null)
			{
				$.post(url,{mode:Mode,val:Value,val1:val2},function(data){
												  if(data!=0)
												  {
													$("#"+populateid).html(data);
													
												  }
												  
												  }); 
			}else
			{
				$.post(url,{mode:Mode,val:Value},function(data){
												  if(data!=0)
												  {
													$("#"+populateid).html(data);
													
												  }
												  
												  }); 
			}
			
			  
		}
		
	}
 	

*/


/****************************for getting state value for a country*************/
/*	
	$("#country").change(function(){
								  
								  var popid=$(this).attr('populateId');
								  GetDropDownList('get_country.php','GetState','country',popid)
								  }) 
	$("#country1").change(function(){
								  
								  var popid=$(this).attr('populateId');
								  GetDropDownList('get_country.php','GetState','country1',popid)
								  }) 
*/	
/****************************for getting city value for a country*************/
/*	
	
	$("#state").change(function(){
								  var popid=$(this).attr('populateId');
								  var contryid=$("#country").val();
								  GetDropDownList('get_country.php','GetCity','state',popid,contryid)
								  })
	
	$("#state1").change(function(){
								  var popid=$(this).attr('populateId');
								  var contryid=$("#country1").val();
								  GetDropDownList('get_country.php','GetCity','state1',popid,contryid)
								  })

	

*/
	
	
});


