function searchForText( toFind, frameToSearch ) {
        if( !toFind ) { window.alert( 'ادخل جملة البحث' ); return; }
        if( frameToSearch.focus ) { frameToSearch.focus(); }
        if( window.find ) {
                //Netscape compatible browsers provide the window.find method
                if( document.layers ) {
                        //Against the JS spec, Netscape 4 will produce errors if too many arguments are given
                        var ifFound = frameToSearch.find( toFind, false, false );
                } else {
                        var ifFound = frameToSearch.find( toFind, false, false, true, false, true, false );
                }
        } else if( frameToSearch.document.body && frameToSearch.document.body.createTextRange ) {
                //IE or compatible use various TextRange features
                if( frameToSearch.document.selection && frameToSearch.document.selection.type != 'None' ) {
                        //If some text is selected already (previous search or if they have selected it)
                        //make that the text range. Then move to the end of it to search beyond it
                        var theRange = frameToSearch.document.selection.createRange();
                        theRange.collapse( false );
                } else {
                        //If no text is selected, start from the start of the document
                        var theRange = frameToSearch.document.body.createTextRange();
                }
                //find the next occurrence of the chosen string
                var ifFound = theRange.findText( toFind );
                if( ifFound ) { theRange.select(); }
        } else {
                alert ( 'Please use your browser\'s search facility' );
        }
        if( !ifFound ) { alert ( 'لا يوجد جملة مطابقة لهذه الكلمة\n' + toFind ); }
}
