    function setCookie (name, value, expires, path, domain, secure) {
			  document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") +	((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
		}

		function getCookie(name) {

			var cookie = " " + document.cookie,
				search = " " + name + "=",
				setStr = null,
				offset = 0,
				end = 0;

			if (cookie.length > 0) {
				offset = cookie.indexOf(search);
				if (offset != -1) {
					offset += search.length;
					end = cookie.indexOf(";", offset)
					if (end == -1)
						end = cookie.length;
					setStr = unescape(cookie.substring(offset, end));
				}
			}

			return setStr;
		}

		function startSpellCheck(showPopUp){
			if (typeof showPopUp == "undefined" || showPopUp != 1) {
				doSpell({ ctrl:'myEditor', lang:'en_US', height: 600, botf: 220, cmd: 'thes', schemaIdentifier: 27});
			} else {
				if (getCookie("thes_signup") == null || typeof getCookie("thes_signup") == "undefined" || getCookie("the_signup") == "") {
					if (document.getElementById("myEditor").value != "")
						setCookie("thes_signup","1","Tue, 01-Jan-2013 00:00:00 GMT","/",window.location.domain,"");
					doSpell({ ctrl:'myEditor', lang:'en_US', botf: 280, topf: 90, height: 600, showpopup: 1, cmd: 'thes', schemaIdentifier: 27});
				} else {
					doSpell({ ctrl:'myEditor', lang:'en_US', height: 600, topf: 90, botf: 280, cmd: 'thes', schemaIdentifier: 27});
				}
			}
		}
