functionsetCookie(name,value,expire){window.document.cookie=name+"="+escape(value)+((expire==null)?"":(";expires="+expire.toGMTString()));}functiongetCookie(Name){varsearch=Name+"=";if(window.document.cookie.length>0){//iftherearean