 var browserName=navigator.appName; 
var browserVer=parseInt(navigator.appVersion);
if(browserName=="Microsoft Internet Explorer"){
	if(jQuery.browser.version<6){
		var info=confirm('Twoja przegladarka nie jest kompatybilna z strona, na pewno chcesz wejsc?'+browserVer+" " +navigator.appVersion);
		if(!info){
			window.location="http://google.pl";
		}
	}
}


function reoggle(link){
	if(jQuery(link).css("display") == "none"){
		jQuery(link).css("display","block");
		jQuery(link).slideDown("slow");
	} else {
		jQuery(link).css("display","none");
		jQuery(link).slideUp("slow");
	}
	return true;
};
function color_podobne(link,color){
	jQuery(link).css("background-color",color);
};
function DeleteNews() {
	return confirm('Napewno usunac?');

};

function toggle2(link,link2){
	if(jQuery(link).css("display") == "none"){
		jQuery(link).css("display","block");
		//jQuery(link).slideDown("slow");
		jQuery(link2).css("display","none");
	} else {
		jQuery(link).css("display","none");
		//jQuery(link).slideUp("slow");
		jQuery(link2).css("display","block");
	}
	return true;
};
function toggle3(link,link2){
	if(jQuery(link).css("display") == "none"){
		jQuery(link).css("display","block");
		jQuery(link).slideDown("slow");
		jQuery(link2).css("display","none");
	} 
	return true;
};


function open_file(link){
 	window.open(link);
    return false;
};
function open_link(link){
 	window.location.replace(link);
    return false;
};

function pager_search(link,start,cnt){

	var content_show = link;
	jQuery.ajax({  
                            method: "get",url: "./php/news.php",data: "page="+content_show,  
                           beforeSend: showRequest, //show loading just when link is clicked  
                            complete: showResponse, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("slow"); //animation  
                            jQuery("#newsy").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/news_pager.php",data: "page="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery("#newsy_pager").html(html); //show the html inside .content div  
                     }  
                 });
};

function pager(link){

	var content_show = link;
	//jQuery(".newsy").slideUp("fast"); 
	//jQuery(".newsy").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/news.php",data: "page="+content_show,  
                          beforeSend: showRequest, //show loading just when link is clicked  
                            complete: showResponse, //stop showing loading when the process is complete    
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("slow"); //animation  
                            jQuery("#newsy").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/news_pager.php",data: "page="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery("#newsy_pager").html(html); //show the html inside .content div  
                     }  
                 });
				 //jQuery(".newsy").slideDown("slow");
};
function pager_ksiega(link){

	var content_show = link;
	//jQuery(".oferty_img").slideUp("fast"); 
	jQuery(".kg_conten").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/kg_content.php",data: "page="+content_show,  
                            beforeSend: showRequest, //show loading just when link is clicked  
                            complete: showResponse, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(".kg_conten").show("slow"); //animation  
                            jQuery(".kg_conten").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/kg_pager.php",data: "page="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery(".kg_pager").html(html); //show the html inside .content div  
                     }  
                 });
				 //jQuery(".oferty_img").slideDown("slow");
};
function pager_kontakt(link){

	var content_show = link;
	//jQuery(".oferty_img").slideUp("fast"); 
	jQuery(".kg_conten").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/kontakt_content.php",data: "page="+content_show,  
                           beforeSend: showRequest, //show loading just when link is clicked  
                            complete: showResponse, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(".kg_conten").show("slow"); //animation  
                            jQuery(".kg_conten").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/kontakt_pager.php",data: "page="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery(".kg_pager").html(html); //show the html inside .content div  
                     }  
                 });
				 //jQuery(".oferty_img").slideDown("slow");
};
function pager_oferty(link){

	var content_show = link;
	//jQuery(".oferty_img").slideUp("fast"); 
	jQuery(".oferty_img").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/oferty_img.php",data: "page_oferty="+content_show,  
                            beforeSend: showRequest, //show loading just when link is clicked  
                            complete: showResponse, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                           // jQuery("#oferty_img").show("slow"); //animation  
                            jQuery("#oferty_img").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/oferty_pager.php",data: "page_oferty="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery("#oferty_page").html(html); //show the html inside .content div  
                     }  
                 });
				 //jQuery(".oferty_img").slideDown("slow");
};
function pager_down(link){

	var content_show = link;
	jQuery(".download_conten").slideUp("fast"); 
	jQuery(".download_conten").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/download_list.php",data: "page="+content_show,  
                            beforeSend: showRequest, //show loading just when link is clicked  
                            complete: showResponse, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(".download_conten").show("slow"); //animation  
                            jQuery(".download_conten").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/download_pager.php",data: "page="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery(".download_pager").html(html); //show the html inside .content div  
                     }  
                 });
				 jQuery(".download_conten").slideDown("slow");
};
function pager_partnerzy(link){

	var content_show = link;
	jQuery(".partnerzy_conten").slideUp("fast"); 
	jQuery(".partnerzy_conten").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/partnerzy_list.php",data: "page="+content_show,  
                            beforeSend: showRequest, //show loading just when link is clicked  
                            complete: showResponse, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(".partnerzy_conten").show("slow"); //animation  
                            jQuery(".partnerzy_conten").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/partnerzy_pager.php",data: "page="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery(".partnerzy_pager").html(html); //show the html inside .content div  
                     }  
                 });
				 jQuery(".partnerzy_conten").slideDown("slow");
};
function pager_oferty2(link){

	var content_show = link;
	//jQuery(".oferty_img").slideUp("fast"); 
	jQuery(".oferty_img").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/oferty_img2.php",data: "page_oferty="+content_show,  
                            beforeSend: showRequest, //show loading just when link is clicked  
                            complete: showResponse, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                           // jQuery("#oferty_img").show("slow"); //animation  
                            jQuery("#oferty_img").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/oferty_pager2.php",data: "page_oferty="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery("#oferty_page").html(html); //show the html inside .content div  
                     }  
                 });
				 //jQuery(".oferty_img").slideDown("slow");
};

function show_img(link,link2,link3,id,link4){
	jQuery(link).attr('src',jQuery(link2).attr('value')+'pic_t1.jpg');
	var tokens = jQuery(link2).attr('value').split('/');
	jQuery(link3).attr('href','?page=admin&module=15&edytuj='+tokens[4]+'&gdzie=1');
	jQuery(link4).attr('href','?page=admin&module=9&usun='+tokens[4]+'&typ=2&kat='+tokens[3]);
};
function dane(link,anim,method){
	var content_show = link;
	jQuery(".newsy").slideUp("fast"); 
	jQuery(".newsy").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/news.php",data: "page="+content_show,  
                            beforeSend: function(){jQuery("#newsy").hide("fast");
							showRequest();
							}, //show loading just when link is clicked  
                            complete: function(){ jQuery("#newsy").show("fast");
							showResponse();
							}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery("#newsy").show("slow"); //animation  
                            jQuery("#newsy").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/news_pager.php",data: "page="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery("#newsy_pager").html(html); //show the html inside .content div  
                     }  
                 });
				 jQuery(".newsy").slideDown("slow");
	
};

function pager_img(link){
	var content_show = link;
	jQuery(".kategorie").slideUp("fast"); 
	jQuery(".kategorie").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/galeria_kategorie.php",data: "page="+content_show,  
                            beforeSend: function(){jQuery(".kategorie").hide("fast");
							showRequest();
							}, //show loading just when link is clicked  
                            complete: function(){jQuery(".kategorie").show("fast");
							showResponse();
							}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(".kategorie").show("slow"); //animation  
                            jQuery(".kategorie").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/galeria_pager_kat.php",data: "page="+content_show,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery(".pager_kategorie").html(html); //show the html inside .content div  
                     }  
                 });
				 jQuery(".kategorie").slideDown("slow");
	
};

function pager_img2(link,kat){
	var content_show = link;
	jQuery(".zdjecia").slideUp("fast"); 
	jQuery(".zdjecia").hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/galeria_zdjecia.php",data: "page="+content_show+"&kat="+kat,  
                           beforeSend: function(){jQuery(".zdjecia").hide("fast");
						   showRequest();
						   }, //show loading just when link is clicked  
                            complete: function(){jQuery(".zdjecia").show("fast");
							showResponse();
							}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(".zdjecia").show("slow"); //animation  
                            jQuery(".zdjecia").html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
	jQuery.ajax({  
                            method: "get",url: "./php/galeria_pager_zdjecia.php",data: "page="+content_show+"&kat="+kat,  
                            //beforeSend: function(){jQuery("#newsy").show("fast");}, //show loading just when link is clicked  
                            //complete: function(){ jQuery("#newsy").hide("fast");}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            //jQuery("#newsy").show("fast"); //animation  
                            jQuery(".pager_zdjecia").html(html); //show the html inside .content div  
                     }  
                 });
				 jQuery(".zdjecia").slideDown("slow");
				 jQuery(".zdjecia_panel").slideDown("slow");
	
};
function change_oferta(link,values){
	var content_show = values;
	jQuery(link).slideUp("fast"); 
	jQuery(link).hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/oferty_info.php",data: "oferta="+content_show,  
                            beforeSend: function(){jQuery(link).hide("fast");
							showRequest();
							}, //show loading just when link is clicked  
                            complete: function(){jQuery(link).show("fast");
							showResponse();
							}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(link).show("slow"); //animation  
                            jQuery(link).html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  

				 jQuery(link).slideDown("slow");
};
function change_obiekt(link,values){
	var content_show = values;
	jQuery(link).slideUp("fast"); 
	jQuery(link).hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/obiekty_list.php",data: "obiekt="+content_show,  
                            beforeSend: function(){jQuery(link).hide("fast");
							showRequest();
							}, //show loading just when link is clicked  
                            complete: function(){jQuery(link).show("fast");
							showResponse();
							}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(link).show("slow"); //animation  
                            jQuery(link).html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  

				 jQuery(link).slideDown("slow");
};
function hotel(link,value){
	var content_show = value;
	jQuery(link).slideUp("fast"); 
	jQuery(link).hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/hotel.php",data: "hotel="+content_show,  
                            beforeSend: function(){jQuery(link).hide("fast");
							showRequest();
							}, //show loading just when link is clicked  
                            complete: function(){jQuery(link).show("fast");
							showResponse();
							}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(link).show("slow"); //animation  
                            jQuery(link).html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  

				 jQuery(link).slideDown("slow");
};
function change_oferta2(link,values){
	var content_show = values;
	jQuery(link).slideUp("fast"); 
	jQuery(link).hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/oferta_info2.php",data: "oferta="+content_show,  
                            beforeSend: function(){jQuery(link).hide("fast");
							showRequest();
							}, //show loading just when link is clicked  
                            complete: function(){jQuery(link).show("fast");
							showResponse();
							}, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery(link).show("slow"); //animation  
                            jQuery(link).html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  

				 jQuery(link).slideDown("slow");
};
function cal(link,values){
	var content_show = values;
	jQuery.ajax({  
				method: "get",url: "./php/calendar.php",data: content_show,  
				success: function(html){ //so, if data is retrieved, store it in html  
				jQuery(link).show("slow"); //animation  
				jQuery(link).html(html); //show the html inside .content div  
		 }  
	 });
};
function data_change(field)
     {
          var check = true;
          var value = field.value; //get characters
          //check that all characters are digits, ., -, or ""
		  var new_value ='';
          for(var i=0;i < field.value.length; ++i)
          {
               var new_key = value.charAt(i); //cycle through characters
               if(((new_key < "0") || (new_key > "9")) && 
                    !(new_key == "") && !((new_key == ".") || (new_key == ",")) )
               {
                    check = false;
                    break;
               } else {
				new_value+=new_key;
			   }
          }
          //apply appropriate colour based on value
          if(!check)
          {
               //field.style.backgroundColor = "red";
			   field.value =new_value;
          }
          else
          {
               field.style.backgroundColor = "white";
          }
     };
	 function data_change_numbers(field)
     {
          var check = true;
          var value = field.value; //get characters
          //check that all characters are digits, ., -, or ""
		  var new_value ='';
          for(var i=0;i < field.value.length; ++i)
          {
               var new_key = value.charAt(i); //cycle through characters
               if(((new_key < "0") || (new_key > "9")) && 
                    !(new_key == "") )
               {
                    check = false;
                    break;
               } else {
				new_value+=new_key;
			   }
          }
          //apply appropriate colour based on value
          if(!check)
          {
               //field.style.backgroundColor = "red";
			   field.value =new_value;
          }
          else
          {
               field.style.backgroundColor = "white";
          }
     };

function change_galle(){
	//jQuery(link).slideUp("fast"); 
	//jQuery(link).hide("fast"); 
	jQuery.ajax({  
                            method: "get",url: "./php/rand_gall.php",data: "",  
                            //beforeSend: showRequest, //show loading just when link is clicked  
                            //complete: showResponse, //stop showing loading when the process is complete  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery('.gall').show("slow"); //animation  
                            jQuery('.gall').html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  

				 //jQuery(link).slideDown("slow");
};
function change_polecane(){
	jQuery.ajax({  
                            method: "get",url: "./php/rand_polecane.php",data: "",  
                            success: function(html){ //so, if data is retrieved, store it in html  
                            jQuery('#polecane').show("slow"); //animation  
                            jQuery('#polecane').html(html); //show the html inside .content div  
                     }  
                 }); //close $.ajax(  
};
jQuery(document).ready(function() {
		// jQuery('.loader').hide();
//jQuery(document).pngFix();		 
    var options = { 
        target:        '#content_all',   // target element(s) to be updated with server response 
        beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse  // post-submit callback 
 
        // other available options: 
        //url:       url         // override for form's 'action' attribute 
        //type:      type        // 'get' or 'post', override for form's 'method' attribute 
        //dataType:  null        // 'xml', 'script', or 'json' (expected server response type) 
        //clearForm: true        // clear all form fields after successful submit 
        //resetForm: true        // reset the form after successful submit 
 
        // $.ajax options can be used here too, for example: 
        //timeout:   3000 
    }; 
 var options2 = { 
        target:        '#newsletter_wiadomosc',   // target element(s) to be updated with server response 
        beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse  // post-submit callback 
 
        // other available options: 
        //url:       url         // override for form's 'action' attribute 
        //type:      type        // 'get' or 'post', override for form's 'method' attribute 
        //dataType:  null        // 'xml', 'script', or 'json' (expected server response type) 
        //clearForm: true        // clear all form fields after successful submit 
        //resetForm: true        // reset the form after successful submit 
 
        // $.ajax options can be used here too, for example: 
        //timeout:   3000 
    }; 
	var options3 = { 
        target:        '#kg_wiadomosc',   // target element(s) to be updated with server response 
        beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse  // post-submit callback 
 
        // other available options: 
        //url:       url         // override for form's 'action' attribute 
        //type:      type        // 'get' or 'post', override for form's 'method' attribute 
        //dataType:  null        // 'xml', 'script', or 'json' (expected server response type) 
        //clearForm: true        // clear all form fields after successful submit 
        //resetForm: true        // reset the form after successful submit 
 
        // $.ajax options can be used here too, for example: 
        //timeout:   3000 
    }; 
	var options4 = { 
        target:        '#rezerwacje_odp',   // target element(s) to be updated with server response 
        beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse  // post-submit callback 
 
        // other available options: 
        //url:       url         // override for form's 'action' attribute 
        //type:      type        // 'get' or 'post', override for form's 'method' attribute 
        //dataType:  null        // 'xml', 'script', or 'json' (expected server response type) 
        //clearForm: true        // clear all form fields after successful submit 
        //resetForm: true        // reset the form after successful submit 
 
        // $.ajax options can be used here too, for example: 
        //timeout:   3000 
    }; 
	for(var k=1;k<=31;k++)
		jQuery('.kal'+k).cluetip({splitTitle: '|', dropShadow: true, showtitle: true, positionBy: 'mouse'});
    // bind form using 'ajaxForm' 
    jQuery('#newsletter_form').ajaxForm(options2); 
    // bind form using 'ajaxForm' 
    jQuery('#szukaj_wyszukiwarka').ajaxForm(options);
	jQuery('#kg_form').ajaxForm(options3);	
	jQuery('#rezerwacja_on').ajaxForm(options4);
	change_galle();
	jQuery('.gall').everyTime(5000,change_galle);
	change_polecane();
	jQuery('#polecane').everyTime(5000,change_polecane);
}); 

 
// pre-submit callback 
function showRequest() { 
    // formData is an array; here we use $.param to convert it to a string to display it 
    // but the form plugin does this for you automatically when it submits the data 
	jQuery('#loader').show();
    // jqForm is a jQuery object encapsulating the form element.  To access the 
    // DOM element for the form do this: 
    // var formElement = jqForm[0]; 
 
    //alert('About to submit: \n\n' + queryString); 
 
    // here we could return false to prevent the form from being submitted; 
    // returning anything other than false will allow the form submit to continue 
    return true; 
} 
 
// post-submit callback 
function showResponse()  { 
    // for normal html responses, the first argument to the success callback 
    // is the XMLHttpRequest object's responseText property 
	jQuery('#loader').hide();
    // if the ajaxForm method was passed an Options Object with the dataType 
    // property set to 'xml' then the first argument to the success callback 
    // is the XMLHttpRequest object's responseXML property 
 return true;
    // if the ajaxForm method was passed an Options Object with the dataType 
    // property set to 'json' then the first argument to the success callback 
    // is the json data object returned by the server 
 
    //alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + 
        //'\n\nThe output div should have already been updated with the responseText.'); 
} 
