// JavaScript Document



var print_window = null;


  function OpenPrintPage(){
	      
		  
		 if(document.getElementById("box-to-print")){ 
		 
         var html = document.getElementById("box-to-print").innerHTML;	
		 
		 alert(html);
		 
		 /*
		 if (print_window && !print_window.closed){
			
		   print_window.focus(); 
		   print_window.document.clear();
		 
		} else {

			print_window = window.open('','','width=700, height=730, top=20, left=20, resizable=0,scrollbars=yes, menubar=no, toolbars=yes');
		}
		
		
			print_window.document.writeln('<head><title>ZIEL Italia s.r.l<\/title>');
			print_window.document.writeln('<link href="http://www.ziel.it/css/print.css" rel="stylesheet" type="text/css" \/>');

			print_window.document.writeln('<\/head><body onload="window.resizeTo(700,730); window.print()">');
			
			print_window.document.writeln('<div id="Content">');
			
			print_window.document.writeln('<div id="logo"><img src="http://www.ziel.it/images/logo_ZIEL.jpg" border="0"></div>');

			print_window.document.writeln('<div>'+html+'</div>');

			
			print_window.document.writeln('<br clear="left"><br clear="left">');
			print_window.document.writeln('<div id="Footer">');
			print_window.document.writeln('<strong>Ziel Italia s.r.l</strong>');
			print_window.document.writeln('Via delle Industrie 18 - 30025 Fossalta di Portogruaro - Venezia / Italy');
			print_window.document.writeln('Tel. 0421/244432 - Fax. 0421/244423 - Email: ziel@ziel.it</div>');

			print_window.document.writeln('</div>');
			
			print_window.document.writeln('<\/body><\/html>');
			print_window.document.close();


		 */
		
		
		 }

		   
	  
  }


    
   
   
   		function addslashes(str) {
		   str=str.replace(/\'/g,'\\\'');
		   str=str.replace(/\"/g,'\\"');
		   str=str.replace(/\\/g,'\\\\');
		   str=str.replace(/\0/g,'\\0');
		   return str;
		}
		
		function stripslashes(str) {
		   str=str.replace(/\\'/g,'\'');
		   str=str.replace(/\\"/g,'"');
		   str=str.replace(/\\\\/g,'\\');
		   str=str.replace(/\\0/g,'\0');
		   return str;
		}
		
		
			function encode_utf8( s )
	{
	  return unescape( encodeURIComponent( s ) );
	}
	
	function decode_utf8( s )
	{
	  return decodeURIComponent( escape( s ) );
	}
