-%
-% my $conf = new FS::Conf;
-% my $curuser = $FS::CurrentUser::CurrentUser;
-%
-% $cgi->param('custnum') =~ /^(\d+)$/
-% or die "No customer specified (bad URL)!";
-% my $custnum = $1;
-%
-% my $cust_main = qsearchs('cust_main', {'custnum' => $custnum} );
-% die "Custimer not found!" unless $cust_main;
-%
-% my (@notes) = $cust_main->notes();
-% if ( scalar(@notes) ) {
-
-<STYLE TYPE="text/css">
-
-body { background: #e8e8e8 }
-.inv table { border: none }
-.inv TH { border: none }
-.inv TD { border: none }
-
-</STYLE>
-
-<SCRIPT TYPE="text/javascript" SRC="/elements/overlibmws.js"></SCRIPT>
-<SCRIPT TYPE="text/javascript" SRC="/elements/overlibmws_iframe.js"></SCRIPT>
-<SCRIPT TYPE="text/javascript" SRC="/elements/overlibmws_crossframe.js"></SCRIPT>
-<SCRIPT TYPE="text/javascript" SRC="/elements/iframecontentmws.js"></SCRIPT>
-
-<TABLE CLASS="inv" CELLSPACING=0 CELLPADDING=0 BORDER=0 >
-
-%#<% include('/elements/table-grid.html') %>
-% my $bgcolor1 = '#eeeeee';
-% my $bgcolor2 = '#ffffff';
-% my $bgcolor = '';
-%
-% foreach my $note (@notes) {
-%
-% if ( $bgcolor eq $bgcolor1 ) {
-% $bgcolor = $bgcolor2;
-% } else {
-% $bgcolor = $bgcolor1;
-% }
-%
-% my $pop = popurl(3);
-% my $notenum = $note->notenum;
-% my $clickjs = qq!onclick="overlib( OLiframeContent('${pop}edit/! .
-% qq!cust_main_note.cgi?custnum=$custnum&! .
-% qq!notenum=$notenum', 616, ! .
-% qq!386, 'cust_main_note_popup' ), CAPTION, 'Edit customer ! .
-% qq!note', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, ! .
-% qq!CLOSECLICK, FRAME, top); return false;"!;
-%
-% my ($el, $eel);
-% if ($curuser->access_right('Edit customer note') ) {
-% $el = qq!<A HREF="javascript:void(0);" $clickjs>!;
-% $eel = qq!</A>!;
-% }else{
-% $el = $eel = '';
-% }
-