//just some fun rollover stuff

elementArray = new Array();
for(var i=0;i<40;i++){
	elementArray[i] = "element"+(i+1);
}

window.onload = init;
function init() {
  for(i=0;i<elementArray.length;i++){
  	if(document.getElementById(elementArray[i])){
  		makeHover(elementArray[i]);
  	}
  }
}

function makeHover(tId){
	var hoverSpot = document.getElementById(tId);
	hoverSpot.onmouseover = function(){
		this.className +="2";
	}
	hoverSpot.onmouseout = function(){
		this.className = this.className.replace("2","");
	}
}
     
function login(){
	window.open('/blog/blogTools/loginForm.php','login','height=130,width=270,location=0,scrollbars=0,resizable=0,status=0,menubar=0,toolbar=0');
}

function confDel(bId){//blog entries
	if(confirm("Are you sure you would like to delete this blog entry from the database?")){
		window.location.href="/blog/blogTools/functions/deleteEntry.php?del="+bId;	
	}else{
		return;
	}
}


function conf(f,l){
	if(confirm("Are you sure you would like to delete\n"+f+" "+l+" from the database?")){
		window.location.href="/blog/blogTools/functions/deleteUser.php?f="+f+"&l="+l;	
	}else{
		return;
	}
}
