function confirmandgo (msg,sendmehere) {
	if (confirm(msg)) {
		window.location=sendmehere
	} else {
		return
	}	
}

function alertandgo (msg,sendmehere) {
	alert(msg);
	window.location=sendmehere;
}

function showHideContent(id)
{
	var basesrc = "http://lbt.haanmc.com/media/img/";
	var elem = document.getElementById(id);
	if (elem) {
		if (elem.style.visibility=="hidden") {
			elem.style.display = 'block';
			elem.style.visibility = 'visible';
		} else {
			elem.style.display = 'none';
			elem.style.visibility = 'hidden';
		}
	}
	// image 
	elem = document.getElementById("img_"+id);
	if (elem) {
		if (elem.src==basesrc+"expand.gif") {
			elem.src = "media/img/collapse.gif";
		} else {
			elem.src = "media/img/expand.gif";			
		}
	}
}  

function showContent(id)
{
	var basesrc = "http://lbt.haanmc.com/media/img/";
	var elem = document.getElementById(id);
	if (elem) {
		elem.style.display = 'block';
		elem.style.visibility = 'visible';
	}
}        


function supaRoll(x) {
       // Find Elements with class "x"
       var allE = document.all || document.getElementsByTagName("*");
       for(var i=0,len=allE.length; i<len; i++) { 
	       var $arrayCheck = allE[i].className.split(" ");
		   if($arrayCheck[0]==x || $arrayCheck[1]==x || $arrayCheck[2]==x) {
			   // Add appropriate rollover events
			   allE[i].onmouseover=function() { this.className=this.className.replace(" over", ""); this.className+=" over"; }
			   allE[i].onmouseout=function() { this.className=this.className.replace(" over", ""); }
			   allE[i].onclick=function() { supaClick(this); } 
		   }
	   }
}

function supaClick (x) {
       // Find Elements with class "x"
       var allE = document.all || document.getElementsByTagName("*");
       for(var i=0,len=allE.length; i<len; i++) { 
	   if(allE[i].className.match(" click") && allE[i]!=x) {
       allE[i].className=allE[i].className.replace(" click", ""); }}
       // Turn click on and off for x
       if (x.className.match(" click")) { x.className=x.className.replace("click", ""); }
       else { x.className+=" click"; }
}