function testPassword(passwd)
{
		var intScore   = 0
		var strVerdict = "gyenge"
		var strLog     = ""

		
		// PASSWORD LENGTH
		if (passwd.length<5)                         // length 4 or less
		{
			intScore = (intScore+3)

		}
		else if (passwd.length>4 && passwd.length<8) // length between 5 and 7
		{
			intScore = (intScore+6)

		}
		else if (passwd.length>7 && passwd.length<=11)// length between 8 and 10
		{
			intScore = (intScore+12)

		}
		else if (passwd.length>11)                    // length 12 or more
		{
			intScore = (intScore+18)

		}
		
		
		// LETTERS (Not exactly implemented as dictacted above because of my limited understanding of Regex)
		if (passwd.match(/[a-z]/))                              // [verified] at least one lower case letter
		{
			intScore = (intScore+1)

		}
		
		if (passwd.match(/[A-Z]/))                              // [verified] at least one upper case letter
		{
			intScore = (intScore+5)

		}
		
		// NUMBERS
		if (passwd.match(/\d+/))                                 // [verified] at least one number
		{
			intScore = (intScore+5)

		}
		
		if (passwd.match(/(.*[0-9].*[0-9].*[0-9])/))             // [verified] at least three numbers
		{
			intScore = (intScore+5)

		}
		
		
		// SPECIAL CHAR
		if (passwd.match(/.[!,@,#,$,%,^,&,*,?,_,~]/))            // [verified] at least one special character
		{
			intScore = (intScore+5)

		}
		
									 // [verified] at least two special characters
		if (passwd.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/))
		{
			intScore = (intScore+5)

		}
	
		
		// COMBOS
		if (passwd.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/))        // [verified] both upper and lower case
		{
			intScore = (intScore+2)

		}

		if (passwd.match(/([a-zA-Z])/) && passwd.match(/([0-9])/)) // [verified] both letters and numbers
		{
			intScore = (intScore+2)

		}
 
									// [verified] letters, numbers, and special characters
		if (passwd.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/))
		{
			intScore = (intScore+2)

		}
	
	
		if(intScore < 16)
		{
		   strVerdict = "<table cellspacing=0 cellpadding=0 border=0><td class=pwstr1>nagyon gyenge</td></table>"
		}
		else if (intScore > 15 && intScore < 25)
		{
		   strVerdict = "<table cellspacing=0 cellpadding=0 border=0><td class=pwstr2>gyenge</td></table>"
		}
		else if (intScore > 24 && intScore < 35)
		{
		   strVerdict = "<table cellspacing=0 cellpadding=0 border=0><td class=pwstr3>közepes</td></table>"
		}
		else if (intScore >= 34 && intScore <= 45)
		{
		   strVerdict = "<table cellspacing=0 cellpadding=0 border=0><td class=pwstr4>er&#337;s</td></table>"
		}
		else
		{
		   strVerdict = "<table cellspacing=0 cellpadding=0 border=0><td class=pwstr5>nagyon er&#337;s</td></table>"
		}
	
	document.getElementById('strength').innerHTML = strVerdict;
	
}





function loadCalSelector(date) {

	$("#ec_select").load('modules/eventcal_select.php?d='+date, function() { 
                                          	
		$("#ec_select").fadeIn(300);
                                          
	});

}

