  document.onselectstart=new Function('return false');
  function ds(e){return false;}
  function ra(){return true;}
  document.onmousedown=ds;
  document.onclick=ra;
  
String.prototype.trim = function () { return this.replace(/^\s*/, "").replace(/\s*$/, ""); }
String.prototype.unCamelCap = function () { return this.replace(/([A-Z])/g, " $1");  }

function setCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function getCookie(name) {	 
     var pattern = name + '=' + "[^;]+";
	     m = strC.match(pattern);
		 if (m==null) return null;
		 return (m[0].split("=")[1]); 
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

  
  


