//	FrameKiller
//	Source Unknown

if (parent.frames.length > 0) {
	parent.location.href = self.document.location;
}

//	CookieMaker
//	By  Peter-Paul Koch
//	http://www.quirksmode.org/js/cookies.html

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

//	Print
//	By  Brian Drum
//	http://lunaport.com/

function printPage() {
	window.print();
	return false;
}

function toggleElementbyID(id) {
	if (document.getElementById) {
		var nodeObj = document.getElementById(id);
		disp = nodeObj.style.display;
		if(disp != "none") {
			nodeObj.style.display = "none";
		} else {
			nodeObj.style.display = "inherit";
		}
	}
} 

function toggleElementbyClass(classname){
	var alltags=document.getElementsByTagName("*");
	for (i=0; i<alltags.length; i++){
		if (alltags[i].className==classname){
			if (alltags[i].style.display != "none") {
				alltags[i].style.display="none"; 
			} else {
				alltags[i].style.display="block"; 
			}
		}
	}
}