function flash_head(num) {

      document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' data='flash/main.swf?button="+num +"' width='664' height='443' type='application/x-shockwave-flash'> ");
      document.write("<param name='movie' value='flash/main.swf?button="+num +"' /> ");
      document.write("<param name='quality' value='high' /><param name='wmode' value='transparent' /> ");
      document.write("<param name='menu' value='false' /> ");
      document.write("<param name='pluginurl' value='http://www.macromedia.com/go/getflashplayer'>");
      document.write("<embed src='flash/main.swf?button="+num +"' quality='high' menu='false' wmode='transparent' width='664' height='443' name='head_flash' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
      document.write("</object> ");
}

function flash_head_en(num) {

      document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' data='flash/main_en.swf?button="+num +"' width='664' height='443' type='application/x-shockwave-flash'> ");
      document.write("<param name='movie' value='flash/main_en.swf?button="+num +"' /> ");
      document.write("<param name='quality' value='high' /><param name='wmode' value='transparent' /> ");
      document.write("<param name='menu' value='false' /> ");
      document.write("<param name='pluginurl' value='http://www.macromedia.com/go/getflashplayer'>");
      document.write("<embed src='flash/main_en.swf?button="+num +"' quality='high' menu='false' wmode='transparent' width='664' height='443' name='head_flash' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
      document.write("</object> ");
}


function prn_select(){
var cat = document.prn_mod.type_prn.value;

if(cat == '0'){
$('sel_img').innerHTML='';
$('hotel_sel').style.display = "none";
$('ris_sel').style.display = "none";
$('ric_sel').style.display = "none";
}

if(cat < '0' || cat > '0'){
$('prn_bord').style.border = "1px solid #e0ab71";
$('prn_txt').innerHTML = "Prenotazione per:";
}

if(cat == '1'){
$('ris_sel').style.display = "none";
$('ric_sel').style.display = "none";
$('hotel_sel').style.display = "block";
$('sel_img').innerHTML = "<img border='0' src='img/sel_hotel.gif' width='53' height='17' alt='Hotel' />";
}

if(cat == '2'){
$('hotel_sel').style.display = "none";
$('ric_sel').style.display = "none";
$('ris_sel').style.display = "block";
$('sel_img').innerHTML = "<img border='0' src='img/sel_ris.gif' width='80' height='17' alt='Ristorante' />";
}

if(cat == '3'){
$('hotel_sel').style.display = "none";
$('ris_sel').style.display = "none";
$('ric_sel').style.display = "block";
$('sel_img').innerHTML = "<img border='0' src='img/sel_ric.gif' width='90' height='17' alt='Ricevimento' />";
}
}


function sendform(){
var pars = Form.serialize(document.prn_mod);
new Ajax.Updater('form_box','js/prn_ck.php',{asynchronous:true, method: 'post', parameters: pars});
}

function resetform(){
new Ajax.Updater('form_box','js/prn_page.php',{asynchronous:true});
}

function send_ok(){
new Ajax.Updater('form_in_box','../send.html',{asynchronous:true});
}

function lastform(){
new Ajax.Updater('form_box','js/msg.htm',{asynchronous:true});
}