function checkall(box,classname) {

	boxes = document.getElementsByTagName('input');
	for (i=0;i<boxes.length;i++) {
		input = boxes[i];
		if (input.type == 'checkbox' && input.className == classname)
			input.checked = box.checked
	}

}

function doDiv(d){

	if(d=="0"){
		HideContent("at");
	}else{
		ShowContent("at");	
	}
}

function HideContent(d){
	document.getElementById(d).style.display = "none";
}
function ShowContent(d){
		document.getElementById(d).style.display = "block";
}


function followHelper(){
	$("#placeholder").html('<img src="loadingAnimation.gif" />');
	s=document.forms[0].searchfor.value;
	$.get("/followhelper/helper.php", {
		searchterm: s
		},
		 function(transport){
			var response = transport;
			document.forms[0].gofollow.value = response;
			$("#placeholder").html('<a href="javascript:followHelper();">search</a>');
		  });
}