function SearchPop(find,Location)
{
	if(find !="" && Location !="")
	{
		window.location = "searches.php?find="+find+"&location="+Location;
		return;
	}
	
	jQuery("#find3").val(find);
	//e.preventDefault();  
	//Get the A tag  

	//Get the screen height and width  
	var maskHeight = jQuery(document).height();  
	var maskWidth = jQuery(window).width();  

	//Set height and width to mask to fill up the whole screen  
	jQuery('#mask').css({'width':maskWidth,'height':maskHeight});  

	//transition effect       
	jQuery('#mask').show();
	jQuery('#mask').fadeTo("fast",0.8);
	//Get the window height and width  
	var winH = jQuery(window).height();  
	var winW = jQuery(window).width();  

	//Set the popup window to center  
	jQuery("#dialog").css('top',  parseInt(winH)/2 - parseInt(jQuery("#dialog").height())/2);  
	jQuery("#dialog").css('left', parseInt(winW)/2- parseInt(jQuery("#dialog").width())/2);  

	//transition effect  
	
	//jQuery('input[name=login]:radio').checked;
	jQuery("#a").hide();
	jQuery("#b").hide();
	jQuery("#dialog").show();
	jQuery("#a").show();
	
	jQuery(document).keyup(function(e) 
	{  
		if(e.keyCode == 13) 
		{  
			//jQuery('#mask, #dialog').hide(); 
			//jQuery("#find3").val("");
			//jQuery("#location3").val("");
			CheckZipCodefrm(document.getElementById("frm_search3"));
		}  
	});	
}

function chng_pass()
  {
   	jQuery("#a").hide();
    jQuery("#chang_password").show(); 
  }

  
jQuery(document).ready(function () 
{	
	
	//if close button is clicked  
     jQuery('#close_div').click(function (e) 
	 {  
	    //Cancel the link behavior  
	     e.preventDefault();  
		jQuery('#mask, #dialog').hide();
		jQuery("[id$='unit_ul']").hide();
	
	});       
       
	//if mask is clicked  
	jQuery('#mask').click(function () 
	{  
		jQuery('#mask, #dialog').hide();
		jQuery("#find3").val("");
		jQuery("#location3").val("");
		jQuery("[id$='unit_ul']").hide();
	});
	//jQuery('#mask, #dialog').hide();
});

