if (!ie) var ie=document.all;
//var nn6=$&&!document.all;

//if(typeof $ != 'function') {
	//alert('not func');
	//function $(id) {	return document.getElementById(id);}
//} //else {alert('func');}
function _id(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 (_id('fileupldmax_' + path) && _id('fileupldmax_' + path).value > 0) {
	
		_id('fileupldmax_' + path).value--;
		
		path = 'fileupld_' + path;
		var br = document.createElement("br");
		_id(path).appendChild(br);
		var file = document.createElement("input");
		file.type = 'file';
		_id(path).appendChild(file);
	}
}

/************/
