function validate(){
	//alert('validating...');
}
function update(divid){
	//var value=jQuery("#"+divid).val();
	//jQuery("#"+divid+"_input").val(value);
	jQuery("#"+divid).hide();
	jQuery("#"+divid+"_hid").show();
	jQuery("#up_"+divid).hide();
	jQuery("#sub_"+divid).show();
}
function ajaxupdate(divid){
	var value=jQuery("#"+divid+"_input").val();
	jQuery.ajax({
		type:"POST",
		url: "/admin/ajax.php",	
		data: "func=updateH4&id="+divid+"&data="+value,
		async:true,
		cache: false,
		error: function(er){
			jQuery("#"+divid).html("THERE WAS AN ERROR SAVING...");
			//jQuery("#ajaxtester").html('There was an error getting search results');
			},
		success: function(results){ 
			jQuery("#"+divid).html("<h4>"+ value +"</h4>");
			//jQuery("#ajaxtester").html(results);
		}
	})
	jQuery("#"+divid+"_hid").hide();
	jQuery("#"+divid).show();
	jQuery("#sub_"+divid).hide();
	jQuery("#up_"+divid).show();
}
