function SearchPop()
{
	jQuery("#zipcode").val();
	//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("#dialog").show();
	
	
	jQuery(document).keyup(function(e) 
	{  
		if(e.keyCode == 13) 
		{ 
			ChangeZipCode(document.getElementById("frm_search3"));
		}  
	});	
}

jQuery(document).ready(function () 
{	
	 //if close button is clicked  
     jQuery('.close').click(function (e) 
	 {  
         //Cancel the link behavior  
        e.preventDefault();  
		jQuery('#mask, #dialog').hide();
		//jQuery("#find3").val("");
		jQuery("#zipcode").val("");
	});       
       
	//if mask is clicked  
	jQuery('#mask').click(function () 
	{  
		jQuery('#mask, #dialog').hide();
		//jQuery("#find3").val("");
		jQuery("#zipcode").val("");
	});
	jQuery('#mask, #dialog').hide();
});

function ChangeZipCode(frm)
{
	if(frm.elements["zipcode"].value=="")
	{
		alert("Please Enter Zip Code");
		frm.elements["zipcode"].focus();
		return false;
	}
	return true;

}
