
fields = 0;
function addInput() {
if (fields != 10) {
var $moreInput = "<input type='hidden' name='Comment[]' id='Comment[]'>"+"<input name='Photo[]' type='file' id='Photo[]' size='47' />"+"<br/>" ;
document.getElementById('text').innerHTML = $moreInput + $moreInput + $moreInput + $moreInput + $moreInput ;


/*<input type='hidden' name='Comment[]' id='Comment[]'>
                  <input name='Photo[]' type='file' id='Photo[]' size='47' /><br/>*/
fields += 1;
} else {
document.getElementById('text').innerHTML += "<br />Only 10 upload fields allowed.";
document.form.add.disabled=true;
}
}
function loading(){ /*if (http_request.status == 200) {alert('ere');}*/
		  document.getElementById('loading').innerHTML="<img src='..image/ajaxloader.gif' width='32' height='32'>"+"<br/>"+"Updating4..."+"<br/>"};