Samobor has existed as a free royal town since 1242 , according to a document of endowment by King Béla IV .
Samobor has been there since 1242 , according to a document of endowment by King Bela IV .