<body onload="startChat();">
<div id="chatDiv" class="mainDiv">

</div>
<div id="dataDiv" class="dataDiv">
<input type="text" id="tfNick" class="myTextInput"
       style="width:50px;">
<input type="text" id="tfDane" class="myTextInput"
       style="width:380px;">
<input type="button" id="btnWyslij" class="myButton"
       style="width:50px;" value="Wyślij" onclick="sendData();">
</div>
</body>