/* function getCookie( name ) { alert(document.cookie); var start = document.cookie.indexOf( name + "=" ); var len = start + name.length + 1; if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) { return null; } if ( start == -1 ) return null; var end = document.cookie.indexOf( ';', len ); if ( end == -1 ) end = document.cookie.length; return unescape( document.cookie.substring( len, end ) ); } function setCookie( name, value, expires, path, domain, secure ) { path = "/"; domain = "trading-ok.com"; var today = new Date(); today.setTime( today.getTime() ); if ( expires ) { expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date( today.getTime() + (expires) ); document.cookie = name+'='+escape( value ) + ( ( expires ) ? ';expires='+expires_date.toGMTString() : '' ) + //expires.toGMTString() ( ( path ) ? ';path=' + path : '' ) + ( ( domain ) ? ';domain=' + domain : '' ) + ( ( secure ) ? ';secure' : '' ); } function deleteCookie( name, path, domain ) { path = "/"; domain = "trading-ok.com"; if ( getCookie( name ) ) document.cookie = name + '=' + ( ( path ) ? ';path=' + path : '') + ( ( domain ) ? ';domain=' + domain : '' ) + ';expires=Thu, 01-Jan-1970 00:00:01 GMT'; }*/ function getCookie(d){var b="",c="",a="";b=document.cookie;var c=b.indexOf(d+"=");if(c==-1){return""}c+=d.length+1;var a=b.indexOf(";",c);if(a==-1){return unescape(b.substring(c))}return unescape(b.substring(c,a))} function deleteCookie(b){var a=new Date();a.setTime(a.getTime()-24*60*60*1000);domain=".trading-ok.com";path="/";document.cookie=b+"=;expires="+a.toUTCString()+";domain="+domain+";path="+path} function setCookie(c,e,a,h,d,g){var b=new Date();b.setTime(b.getTime());if(a){a=a*1000*60*60*24}var f=new Date(b.getTime()+(a));document.cookie=c+"="+escape(e)+((a)?";expires="+f.toGMTString():"")+((h)?";path="+h:"")+((d)?";domain="+d:"")+((g)?";secure":"")} function setClickCookie(pagetype, part, pos1, pos2) { setCookie("click_position", pagetype+"-"+part+"-"+pos1+"-"+pos2,"","/",".trading-ok.com",""); setCookie("click_fromurl", window.location.href,"","/",".trading-ok.com",""); }