function toggleCriteria(){
				toshow = document.getElementById("these")
				if  (toshow.style.display == "block") {
				toshow.style.display = "none";
				} else {
				toshow.style.display = "block";
				}
			}
			function toggleNotify(){
				toshow = document.getElementById("notifyInfo")
				if  (toshow.className == "hidehelp") {
				toshow.className = "showhelp";
				} else {
				toshow.className = "hidehelp";
				}
			}
			
// start cookies
			var Cookies = {
				init: function () {
					var allCookies = document.cookie.split('; ');
					for (var i=0;i<allCookies.length;i++) {
						var cookiePair = allCookies[i].split('=');
						this[cookiePair[0]] = cookiePair[1];
					}
				},
				create: function (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=/";
					this[name] = value;
				},
				erase: function (name) {
					this.create(name,'',-1);
					this[name] = undefined;
				}
			};
			Cookies.init();

			
			function saveIt(name,value) {
				
				
					Cookies.create(name,value,7);
					
				
			}
			
			function readIt(name) {
				alert('The value of the cookie is ' + Cookies[name]);
			}
// end cookies



function addEvent(obj, evType, fn){ 
	if (obj.addEventListener){ 
		obj.addEventListener(evType, fn, false); 
		return true; 
	} else if (obj.attachEvent){ 
		var r = obj.attachEvent("on"+evType, fn); 
		return r; 
	} else { 
		return false; 
	} 
}