function MM_openBrWindow(theURL,winName,features) { //v2.0
  var win = window.open(theURL,winName,features);
  win.focus();
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function openInOpener(link){
    self.opener.location = link;
        
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

/* ** Solo per il 2004 poi si possono togliere ** */
/* apre la scheda dell'espositore */
function osEsp2004(codice,curLang) {
	var theUrl = '/'+curLang+'/scheda_espo.php?COD_ANA='+codice+'&APP=2004';
	var winName = 'scheda';
	var features = 'status=yes,scrollbars=no,width=606,height=500,top=0,left=0';
	MM_openBrWindow(theUrl,winName,features); 
	return false;
} // osEsp2004

/* apre la scheda prodotto: vecchie schede di Bompa */
function osProd2004(codice,curLang) {
	//alert('pino');
	//var schedaPath = '/php/scheda.php?CODICE='+codice+'&LANG='+curLang;
	var schedaPath = '/php/scheda.php?CODICE='+codice+'&LANG='+curLang;
	//alert(schedaPath);
	var winName = 'schedaP';
	var features = 'scrollbars=no,width=606,height=500,resize=no,status=yes,top=0,left=50';
	MM_openBrWindow(schedaPath,winName,features); 
	return false;
} // osProd2004
/* ** FINE Solo per il 2004 poi si possono togliere ** */


var schedeFeatures = 'scrollbars=no,width=606,height=500,resize=no,status=yes,top=0,left=50';

/* apre la scheda dell'espositore */
function osEsp(codice,curLang,app) {
	var theUrl = '/'+curLang+'/scheda_espo.php?COD_ANA='+codice+'&APP='+app;
	var winName = 'scheda';
	MM_openBrWindow(theUrl,winName,schedeFeatures); 
	return false;
} // osEsp

/* apre la scheda prodotto */
function osProd(codice,curLang,app) {
	var schedaPath = '/'+curLang+'/scheda_prodotto_new.php?COD_ANA='+codice+'&LANG='+curLang+'&APP='+app;
	var winName = 'scheda'; //'schedaP';
	MM_openBrWindow(schedaPath,winName,schedeFeatures); 
	return false;
} // osProd

/* apre la scheda commerciale */
function osComm(codice,curLang,app) {
	var schedaPath = '/'+curLang+'/scheda_comm.php?COD_ANA='+codice+'&LANG='+curLang+'&APP='+app;
	var winName = 'scheda'; //'schedaC';
	MM_openBrWindow(schedaPath,winName,schedeFeatures); 
	return false;
} // osComm

/* apre la scheda company profile */
function osProfile(codice,curLang,app) {
	var schedaPath = '/'+curLang+'/scheda_profile.php?COD_ANA='+codice+'&LANG='+curLang+'&APP='+app;
	var winName = 'scheda'; //'schedaProfile';
	MM_openBrWindow(schedaPath,winName,schedeFeatures); 
	return false;
} // osProfile

/* apre la scheda video */
function osVideo(codice,curLang,app) {
	var schedaPath = '/'+curLang+'/scheda_video.php?COD_ANA='+codice+'&LANG='+curLang+'&APP='+app;
	var winName = 'scheda'; //'schedaVideo';
	MM_openBrWindow(schedaPath,winName,schedeFeatures); 
	return false;
} // osVideo

/* apre la scheda comunicati */
function osComunicati(codice,curLang,app) {
	var schedaPath = '/'+curLang+'/scheda_comunicati.php?COD_ANA='+codice+'&LANG='+curLang+'&APP='+app;
	var winName = 'scheda'; //'schedaComunicati';
	MM_openBrWindow(schedaPath,winName,schedeFeatures); 
	return false;
} // osComunicati

/* apre la scheda fotogallery */
function osFotogallery(codice,curLang,app) {
	var schedaPath = '/'+curLang+'/scheda_fotogallery.php?COD_ANA='+codice+'&LANG='+curLang+'&APP='+app;
	var winName = 'scheda'; //'schedaFotogallery';
	MM_openBrWindow(schedaPath,winName,schedeFeatures); 
	return false;
} // osFotogallery

function checkResponsabilita(f,m){
	if(f.elements['Responsabilita'].checked){
	    return true;
	}
	alert(m);
	return false;
}//checkResponsabilita

/* apre l'help */
function helpAreaRiservata(help,curLang) {
	var helpFeatures = 'scrollbars=yes,width=650,height=500,resize=no,status=yes,top=0,left=50';
	var helpPath = '/'+curLang+'/help.php#'+help;
	var winName = 'Help';
	MM_openBrWindow(helpPath,winName,helpFeatures); 
	return false;
} // helpAreaRiservata

