	var popupStatus = 0;
	centerPopup205=function(){
	//request data for centering
	var windowWidth = document.documentElement.clientWidth;
	var windowHeight = document.documentElement.clientHeight;
	var popupHeight = $("#registerdiv").height();
	var popupWidth = $("#registerdiv").width();
	
	
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  
 
	
	windowHeight1=windowHeight+scrOfY;
	
	windowHeight1=windowHeight1-100;
	poph=windowHeight1-popupHeight/2;
	poph=poph-200;
	
	
	
	//centering
	$("#registerdiv").css({
		"position":"absolute",
		"top":poph,
		"left": windowWidth/2-popupWidth/2
		//"top":"150px",
		//"left":"200px"
		
	});
	//only need force for IE6
	
	
	
};

loadPopup205=function()
             {
			 //alert("email");
			
			  if(popupStatus==0){
		
		
		popupStatus=1;
		
		
		
		$("#registerdiv").fadeIn("slow");
		
		
	}
   
   
			 
			 
			 
			 };
 disablepopup205=function()
   {
	 
			  if(popupStatus==1){
			  
			    $("#backgroundPopup").fadeOut("slow");
				$("#registerdiv").fadeOut("slow");
				//document.location.href='volunteer.php';
				popupStatus = 0;
			  
			  }
			  
			  
			    
   };
	   
 loadRegisterForm=function()
 {
	// alert("hi");
	centerPopup205();
		//load popup
	    loadPopup205();
	   $("#registerdivclose").click(function(event){
	  event.preventDefault();
	  disablepopup205();
	  
	  
	  
    	  });
	
	   
 };

