
function confirmarEliminacionNoticia() {
	var go = confirm("Seguro que quiere eliminar esta noticia?");
 	if (go == false) {
		return false;
 	}
 	 document.eliminarNoticia.submit();

}

function confirmarEliminacionWeb() {
	var go = confirm("Seguro que quiere eliminar esta web?");
 	if (go == false) {
		return false;
 	}
 	 document.eliminarWeb.submit();

}

function submitonce(theform){

	if (document.all||document.getElementById){
		for (i=0;i<theform.length;i++){
			var tempobj=theform.elements[i]
			if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
				tempobj.disabled=true
		}
	}
}

function popup(mylink, windowname){
	if (! window.focus)return true;
	
	var href;
	if (typeof(mylink) == 'string')
   		href=mylink;
	else href=mylink.href;
	
	window.open(href, windowname, 'width=350,height=315,scrollbars=no');
	return false;
}




