function quote(location) {

	$('#dialog').jqm({ajax: location + "modules/quote.php",ajaxText: 'Loading',onLoad:function(){	  
	
	
	$("#form1").submit(function() {
         $("#errors").html("Loading.. Please Wait."); var str = $(this).serialize(); $.ajax( {
            type : "POST", url : location + "modules/quote.php", data : str, success : function(msg) {
               if(msg.length > 0) {
                  $("#errors").html(msg); }				 
               else {
                  $("#dialog").html('<div align="center" style="font-weight:bold;">Thank You for your input, we will get back to you as soon as possible.</div>'); setTimeout(function() {
                     $("#dialog").fadeOut("slow", function() {                        
						$("#dialog").jqmHide();						
						}
                     ); }
                  , 5000);}
               }
            }
         ); return false; }); 
																				  
																				  
																				  
																				  }
																				  });
	$("#dialog").jqmShow();
	
 
   }
