Using the DHTML object model, cookies can be set by calling the cookie property of the document object, as shown in the following code example.
<SCRIPT language="JavaScript">
<!--
document.cookie = "SomeValueName = Some_Value";
-->
</SCRIPT>