var nroSucursal = 1;
function RenderFormImagesUpload(idDiv, cantcontroles, divControles)
{
	document.getElementById(idDiv).style.display = 'block';
}

function AddImageToUpload(idDiv)
{
	divContent = document.getElementById(idDiv);
	divContent.innerHTML = divContent.innerHTML + '<br><hr><div class="fotoUploadCampo fotoUploadCampoTitulo">Titulo:</div><div class="fotoUploadCampoInput"><input maxlength="150" type="text" value="" name="FUFTitulo[]"/></div><br><div class="fotoUploadCampo">Im&aacute;gen:</div><div><input type="file" name="FUFFile[]"/></div>';
}

function AddSucursalToUpload(idDiv)
{
	nroSucursal++;
	divContent = document.getElementById(idDiv);
	divContent.innerHTML = divContent.innerHTML + '<table cellpadding="0" cellspacing="0" border="0" align="center" class="tableFormaParteDM"><tr><td class="campoLabel anchoLabel" width="83px">&nbsp;Direcci&oacute;n&nbsp;</td><td colspan="2" class="campoPrincipal"><input maxlength="150" type="text" value="" name="FUFDireccion[]" class="dirCasillerosFormaParte anchoCtrl"/></td><td class="sucursalNro">Sucursal ' + nroSucursal + '</td></tr><tr><td class="campoLabel" width="83px">&nbsp;Provincia&nbsp;</td><td colspan="2" class="campoPrincipal"><input maxlength="150" type="text" value="" name="FUFProvincia[]" class="dirCasillerosFormaParte"/></td></tr><tr><td class="campoLabel" width="83px"><span class="CamposObligatoriosDM">*</span>&nbsp;Localidad&nbsp;</td><td colspan="2" class="campoPrincipal"><input maxlength="150" type="text" value="" name="FUFLocalidad[]" class="dirCasillerosFormaParte"/></td></tr><tr><td class="campoLabel" width="83px"><span class="CamposObligatoriosDM">*</span>&nbsp;Tel&eacute;fono&nbsp;</td><td colspan="2" class="campoPrincipal"><input maxlength="150" type="text" value="" name="FUFTelefono[]" class="dirCasillerosFormaParte"/></td></tr></table><div class="DMSeparadorComentario">&nbsp;</div>';
}
