//    var aktiv = window.setInterval("blinky(\'bling\');", 400);
//    var i = 0, blinks = 1;
//
//function blinky(bid)
//	{
//		if (blinks == 2)
//			{
//				document.getElementById(bid).style.visibility='visible';
//				blinks = 1;
//			}
//		else
//			{
//				document.getElementById(bid).style.visibility='hidden';
//				blinks = 2;
//			}
//		i = i + 1;
//		if (i >= 4)
//			{
//				window.clearInterval(aktiv);
//			}
//	}
//
function schaltflächeverändern(formla,zuwert)
	{
		formla.value = zuwert;
		formla.disabled=true;
		return true;
	}
jQuery.noConflict();
jQuery(document).ready(function() {
	jQuery('#lostpw').click(function(){
		jQuery( "#dialoglostpw" ).dialog("open");
	});
	jQuery( "#dialoglostpw" ).dialog({
        modal: true,
        hide:"blind",
	 width: 350,
        show:"blind",
        buttons: [
                  {
                      text: "Anfordern",
                      click: function() {
				
				jQuery(this).load("inc/ajax/jQajax_lostpw.php",{
					forgotemail: jQuery("#forgotemail").val(),
					plz: jQuery("#plz").val(),
					sicherheitscode: jQuery("#sicherheitscode").val(),
					write: 1
				});
				jQuery(this).dialog( "option", "buttons", {
				 "Schließen": function() {
				 jQuery(this).dialog("close");
				 } });
                      }
                  },
                  {
                      text: "Schließen",
                      click: function() {
				jQuery(this).dialog("close");
			}
                  }
              ], 
        open: function ()
        {
            jQuery(this).load('inc/ajax/jQajax_lostpw.php');
        },        

		autoOpen: false,
	close: function ()
	{
		jQuery(this).dialog( "option", "buttons", [
		{
			 text: "Anfordern",
                      click: function() {
				
				jQuery(this).load("inc/ajax/jQajax_lostpw.php",{
					forgotemail: jQuery("#forgotemail").val(),
					plz: jQuery("#plz").val(),
					sicherheitscode: jQuery("#sicherheitscode").val(),
					write: 1
				});
				jQuery(this).dialog( "option", "buttons", {
				 "Schließen": function() {
				 jQuery(this).dialog("close");
				 } });
                      }

		},
              {
                      text: "Schließen",
                      click: function() {
				jQuery(this).dialog("close");
			}
		}
              ] );

	}
	});
});



