function genera_email()
{
   var email = "<a href='";
   email = email + "mailto:bcsi";
   email = email + "@";
   email = email + "cambrabcn";
   email = email + ".";
   email = email + "es'><img src='img/email.png' border=0></a>";
   return email;
}


function generabody_nopaste()
{
   var body = '';
   body = body + "<body topmargin='0' leftmargin='0'";
   body = body + "oncontextmenu='return false' onkeydown='return false'";
   body = body + "ondragstart='return false' onselectstart='return false'";
   body = body + "onload=setInterval('window.clipboardData.clearData()',20)";
   body = body + ">";
   return body;
}

function generabody()
{
   var body = '';
   body = body + "<body topmargin='0' leftmargin='0'";
   body = body + ">";
   return body;
}

function cabeceracomun()
{
   var baner ='';
   baner = baner + "<table width='810' border='0' align='center'>";
   baner = baner + "<tr><td colspan=6><div align='center'><a href='pd2000.asp'><img src='img/bg.png' border=0></a></div></td></tr>";
   baner = baner + "<tr>";
   baner = baner + "<td width=125px height=35px><div valign='center' align='center'><a class='menuotlas' href='otlas.asp'><img src='img/mnu_otlas.png' border=0 alt='Lasers Marcado Otlas'></a></div></td>";
   baner = baner + "<td width=125px height=35px><div valign='center' align='center'><a class='menuaristo' href='aristo.asp'><img src='img/mnu_aristo.png' border=0 alt='Plotters Aristo'></a></div></td>";
   baner = baner + "<td width=125px height=35px><div valign='center' align='center'><a class='menupenta' href='penta.asp'><img src='img/mnu_penta.png' border=0 alt='Lasers Cutlite Penta'></a></div></td>";
   baner = baner + "<td width=125px height=35px><div valign='center' align='center'><a class='menudicesse' href='diciesse.asp'><img src='img/mnu_diciesse.png' border=0 alt='Fresadora Diciesse Eng'></a></div></td>";
   baner = baner + "<td width=135px height=35px><div valign='center' align='center'><a class='menuocasion' href='ocasion.asp'><img src='img/mnu_ocasion.gif' border=0 alt='Maquinaria de ocasión'></a></div></td>";
   baner = baner + "</tr>";
   baner = baner + "<tr><td colspan=6 class='fondomenu'>";
   baner = baner + "<a class='nav' href='home.asp'>|  Inicio  |</a>";
   baner = baner + "<a class='nav' href='pd2000.asp'>|  Programas  |</a>";
   baner = baner + "<a class='nav' href='penta.asp'>|  Maquinaria  |</a>";
   baner = baner + "<a class='nav' href='support.asp'>|  Soporte  |</a>";
   baner = baner + "<a class='nav' href='online.asp'>|  On-line  |</a>";
   baner = baner + "<a class='nav' href='about.asp'>|  Contacto  |</a>";
   baner = baner + "</td></tr></table>";
   return baner;
}


function urlid(cadena)
{
   var ncadena = '';
   ncadena = cadena + "?id=321";
   location.href= ncadena;
}

function piecomun()
{
   var pie = '';
   pie = pie + "<table width='802' border='0' align='center'><tr>";
   pie = pie + "<td><div align='center'>";
   pie = pie + "<a class='navpie' href='home.asp'>Inicio</a> - ";
   pie = pie + "<a class='navpie' href='pd2000.asp'>Programas</a> - ";
   pie = pie + "<a class='navpie' href='penta.asp'>Maquinaria</a> - " ;
   pie = pie + "<a class='navpie' href='support.asp'>Soporte</a> - ";
   pie = pie + "<a class='navpie' href='online.asp';>On-line</a> - ";
   pie = pie + "<a class='navpie' href='about.asp';>Contacto</a>";
   pie = pie + "</div></td></tr>";
   pie = pie + "<tr><td align='center' class='navpie'>";
   pie = pie + "Copyright &copy; 2011 - BCSI Iberica, SL - All Rights Reserved.</td>";
   pie = pie + "<tr><td align='center' class='navpie'>";
   pie = pie + "Web Design by Mrc Software - Bcn - Spain";
   pie = pie + "</td></tr></table>";
   return pie;
}

function menuhardware()
{
   var baner ='';
   baner = baner + "<table width='810' border='0' align='center'><tr>";
   baner = baner + "<tr><td class='fondosubm'><div align='left'>";
   baner = baner + "<a class='nav' href='penta.asp'>| Lasers Cutlite Penta |</a>";
   baner = baner + "<a class='nav' href='otlas.asp'>| Lasers marcado Otlas |</a>";
   baner = baner + "<a class='nav' href='aristo.asp'>| PLotters Aristo |</a>";
   baner = baner + "<a class='nav' href='dicesse.asp'>| Fresa. Dicesse |</a>";
   baner = baner + "<a class='nav' href='combi_pro.asp'>| CombiPRO |</a>";
   baner = baner + "<a class='nav' href='ocasion.asp'>| Maq. de ocasión |</a>";
   baner = baner + "</div></td></tr></table>";
   return baner;
}

function menusoftware()
{
   var baner ='';
   baner = baner + "<table width='810' border='0' align='center'><tr>";
   baner = baner + "<tr><td class='fondosubm'><div align='left'>";
   baner = baner + "<a class='nav' href='pd2000.asp'>|  Pack Design  |</a>";
   baner = baner + "<a class='nav' href='3D.asp'>| 3D Cortona  |</a>";
   baner = baner + "<a class='nav' href='gestion.html'>|  Gestión Integral Fabricantes Troqueles  |</a>";
   baner = baner + "</div></td></tr></table>";
   return baner;
}

function menusoporte()
{
   var baner ='';
   baner = baner + "<table width='810' border='0' align='center'><tr>";
   baner = baner + "<tr><td class='fondosubm'><div align='left'>";
   baner = baner + "<a class='nav' href='support.asp'>|  Servicio Técnico  |</a>";
   baner = baner + "<a class='nav' href='soporte.asp'>|  Asistencia remota |</a>";
   baner = baner + "</div></td></tr></table>";
   return baner;
}



function menuonline()
{
   var baner ='';
   baner = baner + "<table width='810' border='0' align='center'><tr>";
   baner = baner + "<tr><td class='fondosubm'><div align='left'>";
   baner = baner + "<a class='nav' href='http://217.126.123.232/index.html' target='_blank'>|  Bcsi on-line  |</a>";
   baner = baner + "<a class='nav' href='ftp://217.126.123.232' target='_blank'>|  Bcsi ftp  |</a>";
   baner = baner + "</div></td></tr></table>";
   return baner;
}


function bloquearbontonsecundario()
{
var conf = '';
conf = conf +"<Script language=JavaScript>";
conf = conf +"function right(e) {";
conf = conf +"if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))";
conf = conf +"{";
conf = conf +"   alert('second button disable');";
conf = conf +"   return false;";
conf = conf +"}";
conf = conf +"else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))";
conf = conf +"{";
conf = conf +"   alert('second button disable');";
conf = conf +"   return false;";
conf = conf +"}";
conf = conf +"return true;";
conf = conf +"}";
conf = conf +"document.onmousedown=right;";
conf = conf +"if (document.layers) window.captureEvents(Event.MOUSEDOWN);";
conf = conf +"window.onmousedown=right;";
conf = conf +"</script>";
return conf;
}

function cenwin(Url,NombreVentana,width,height,extras) 
{
var largo = width;
var altura = height;
var adicionales= extras;
var top = (screen.height-altura)/2;
var izquierda = (screen.width-largo)/2; 
nuevaVentana=window.open(''+ Url + '',''+ NombreVentana + '','width=' + largo + ',height=' + altura + ',top=' + top + ',left=' + izquierda + ',features=' + adicionales + ''); 
nuevaVentana.focus();
}

function cw(Url) 
{
var nv = 'nv';
var largo = '600';
var altura = '500';
var adicionales = '';
var top = (screen.height-altura)/2;
var izquierda = (screen.width-largo)/2; 
nuevaVentana=window.open(''+ Url + '',''+ nv + '','width=' + largo + ',height=' + altura + ',top=' + top + ',left=' + izquierda + ',features=' + adicionales + ''); 
nuevaVentana.focus();
}

function cwvideo(Url) 
{
var nv = 'nv';
var largo = '425';
var altura = '344';
var adicionales = '';
var top = (screen.height-altura)/2;
var izquierda = (screen.width-largo)/2; 
nuevaVentana=window.open(''+ Url + '',''+ nv + '','width=' + largo + ',height=' + altura + ',top=' + top + ',left=' + izquierda + ',features=' + adicionales + ''); 
nuevaVentana.focus();
}

function playswf(player,video)
{
var rep = '';
rep = rep + "<OBJECT id='"+player+"' CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='250' height='180' CODEBASE='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0'>";
// rep = rep + "<PARAM NAME='MOVIE' VALUE='http://www.bcsi-iberica.es/vid/combipro/CproEmp09.swf'>";
rep = rep + "<PARAM NAME='LOOP' VALUE='true'>";
rep = rep + "<param name='allowFullScreen' value='true' />";
rep = rep + "<param name='allowscriptaccess=' value='always' />";
rep = rep + "<PARAM NAME='QUALITY' VALUE='high'>";
rep = rep + "<EMBED SRC='" + video + "' width='250' height='180' PLAY='false' LOOP='true' allowscriptaccess='always' QUALITY='low' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash'>";
rep = rep + "</EMBED>";
rep = rep + "</OBJECT>";
return rep;
}

function playwmv(player,video)
{
var rep ='';
rep = rep + "<object width='200' height='150' classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112' standby='Cargando fichero...' type='application/x-oleobject'>";
rep = rep + "<param name='filename' value='http://www.bcsi-iberica.es/vid/combipro/nicking_perfo.wmv'>";
rep = rep + "<param name='showcontrols' value='false'>";
rep = rep + "<param name='showdisplay' value='true'>";
rep = rep + "<param name='showstatusbar' value='false'>";
rep = rep + "<param name='autosize' value='true'>";
rep = rep + "<param name='autostart' value='true'>";
rep = rep + "<embed type='application/x-mplayer2' src='http://www.bcsi-iberica.es/vid/combipro/nicking_perfo.wmv' name='MediaPlayer' autoStart='false' wmode='transparent' width='200' height='150' ></embed>";
rep = rep + "</object>";
return rep;
}





