function nulla(){}

function pathBuilder(_index, name) {
	
	var ext=name.substr((name.lastIndexOf(".")+1));
	var src = '/images/32/';
	var icon="default.icon"
	
	if(ext=="avi" || ext=="bmp" || ext=="exe" || ext=="dll" || ext=="doc" || ext=="fla" || ext=="gif" || ext=="htm" || ext=="html" || ext=="jpg" || ext=="mp3" || ext=="pdf" || ext=="png" || ext=="ppt" || ext=="rdp" || ext=="ai" || ext=="js" || ext=="mdb" || ext=="cs" || ext=="swf" || ext=="swt" || ext=="txt" || ext=="vsd" || ext=="xls" || ext=="xml" || ext=="zip")
		icon=ext;

	document.getElementById('tipo'+_index).src = src+icon+'.gif';	
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function validate() {
  if ((document.profilo.nome.value=="")||(document.profilo.indirizzo.value=="")||(document.profilo.citta.value=="")||(document.profilo.provincia.value=="")||(document.profilo.cap.value=="")||(document.profilo.nazione.value=="")||(document.profilo.email.value=="")||(document.profilo.username.value=="")||(document.profilo.password.value=="")){
    window.alert ("<?=$txtLogin9;?>");
    return false;
  } else {
    return true;
  }
}

function product_submit(_url,_id){

	var url = _url;
	var id  = _id; 
	
	document.product_redirect.action = url;
	document.getElementById('product_id').value = id;
	
	document.product_redirect.submit();
	
}
