﻿        function printpage() { 
            window.print(); 
        return false; 
        } 

        function emailForm(){ 


        var daReferrer = document.referrer; 
        var email = "destino@email.com"; 
        var subject ="Envío de CVU";
        var HTML = escape(document.documentElement.outerHTML); 
        var body_message = document.getElementById('hidURL').value;
        //var body_message = "<html><head>ffffff</head><body>algun mensaje de prueba para ver lo del contenido</body></html>";
        //mensaje;// "%0D%0D%0D%0DThank you "+name+" for submitting this error to us. Please tell us in the space above, what you were doing when the error occurred.%0D%0DReferring Page: "+daReferrer+" %0D%0DException Error Message:%0D-------------------------------------------%0D"+errorMsg; 

        var mailto_link = 'mailto:'+email+'?subject='+subject+'&body='+body_message;
        //+document.documentElement.outerHTML
        win = window.open(mailto_link,'emailWindow'); 
        if (win && win.open && !win.closed) win.close(); 
        } 

        function redirect2Word()
        {
           /* var URL = window.location.toString();
            URL = URL.replace(/#/i,"");
            if (URL.indexOf("?")>-1) 
            {
                URL = URL+'&ToWord=True';
            }
            else
            {
                URL = URL+'?ToWord=True';
            }
            
            URL = URL.replace(/.aspx/i,"exportar.aspx");
            window.location= URL;
            */
           window.location= document.getElementById('hidURLWord').value;
        }
        function redirectPag1()
        {
           window.location= document.getElementById('hidPag1').value;
        }
        function redirectPag2()
        {
           window.location= document.getElementById('hidPag2').value;
        }

