
//-------------------------------Inicia ir la numero de página--------------------------------------
function goPage(numPage){
	document._slideShow.P.value = numPage;
	document._slideShow.action="galeria.asp"
	document._slideShow.method="POST"
	document._slideShow.submit();
}

function goComboPage(){
	var page;
	document._slideShow.P.value = document._slideShow.page.options[document._slideShow.page.selectedIndex].value;
	document._slideShow.action="galeria.asp"
	document._slideShow.method="POST"
	document._slideShow.submit();
}
//------------------------------Termina ir la numero de página--------------------------------------

//---------------------------Inicia ir a la categoria de imagenes-----------------------------------
function goCat_Gal(){
	var edic;
	document._slideShow.id_cat.value = document._slideShow.id_gal_cat.options[document._slideShow.id_gal_cat.selectedIndex].value;
	document._slideShow.action="galeria.asp"
	document._slideShow.method="POST"
	document._slideShow.submit();
}
//--------------------------Termina ir a la categoria de imagenes-----------------------------------

//---------------------------Inicia eliminar imagen de la galaria-----------------------------------
function DeleteImg(id,name){
	
	var agree=confirm("Are you sure you want to delete this category and all of its images?")

	if (agree){
		document._slideShow.imgid.value = id;
		document._slideShow.imgname.value = name;
		document._slideShow.action="galeria.asp"
		document._slideShow.method="POST"
		document._slideShow.submit()
	}else{
		return false; }
}
//--------------------------Termina eliminar imagen de la galaria-----------------------------------

