
function sprawdzFormularz(t,tekst)
{				
					if (t.value==tekst) t.value='';					
					
					t.onblur=function(){
								if (t.value=='') t.value=tekst;
					}
}


function randomString( strLen ) 
{
  RandStr = "";
  
  for (i = 0; i < strLen; i++) 
	{
			 RandSign = String.fromCharCode(Math.round(Math.random()*(122-48))+48);
       if (RandSign.match(/[0-9a-zA-Z]/)) RandStr += RandSign;
       else i--;
	}
	
	return RandStr;
}


function EventColor( t, defaultcolor, eventcolor )
{
			t.style.backgroundColor = eventcolor;
			
			t.onmouseout=function() 
			{
								t.style.backgroundColor = defaultcolor;
			}
}
