var ie=document.all;
//var nn6=$&&!document.all;

function $(id) {
	return document.getElementById(id);
}

function deleteImg (id) {
	if (confirm('Delete?')) id.parentNode.parentNode.removeChild(id.parentNode);
}
function confirmLink(link) {
	if (confirm('delete?')) window.location = link;
}

/************/

function addFileInput (path) {
	if ($('fileupldmax_' + path) && $('fileupldmax_' + path).value > 0) {
	
		$('fileupldmax_' + path).value--;
		
		path = 'fileupld_' + path;
		var br = document.createElement("br");
		$(path).appendChild(br);
		var file = document.createElement("input");
		file.type = 'file';
		$(path).appendChild(file);
	}
}


/************/