<!-- // load htmlarea
_editor_url = "";                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// -->

<!-- Hide the script from old browsers --
 function surfto(form) {
        var myindex=form.dest.selectedIndex
        location=form.dest.options[myindex].value;
}
//-->


function View(form){
        msg=open("","DisplayWindow","status=1,scrollbars=1");msg.document.write(datos.cuerpo.value);
}

function Generate(form)
{
        var txt="<html><HEAD></HEAD>\r\n";
		txt+="<CENTER><h1><font ></font></h1></CENTER>\r\n";
        txt+="<body><font>\r\n";
        if(datos.cuerpo2.value) 
        txt+=datos.cuerpo2.value+"\r\n";
     
                txt+="</font></body></html>";
                datos.cuerpo.value=txt;
 }


function ResetPage(form){
        if(confirm("¿Deseas borrar el código?"))
		{ 
                datos.cuerpo2.value=""; 
                datos.cuerpo.value=""; 
        }
}

