        function try_send(url){

                if (confirm("Send? Really?")){

                        window.location.href = url;

                        }

                }



        function try_deleteimage(url){

                if (confirm("Do you want to delete attached image?")){

                        window.location.href = url;

                        }

                }



        function try_delete(url){

                if (confirm("Do you want to delete this record?")){

                        window.location.href = url;

                        }

                }



        function checkLen( area, length ) {

                                if ( area.value.length > length ) {

                                        var str = area.value;

                                        area.value = str.substring(0,length);

                                }

                        area.focus();

                        }



        function replace_quot( str ) {

                var newstr = str.replace(/&quot;/g,'"');

                return newstr;

        }
