'); } function Flash_FireFSCommand(command, args) { if (command == "back" && document.Form1.ParentForm.value == "LearnLang") window.navigate("../../Dictionaries"); else if (command == "back" && document.Form1.ParentForm.value == "WebDict") window.navigate("../../Dictionaries"); else if (command == "back") window.navigate("../../Dictionaries"); else if (command == "dict") window.navigate("../DictMuhit/Default.aspx?&ParentForm=" + document.Form1.ParentForm.value); else if (command == "advSearch") window.open("Search.aspx?" + Date(), "_parent", "toolbar=no, menubar=no, location=no, directories=no"); else if (command == "search") window.open("Search.aspx", "_parent", "toolbar=no, menubar=no, location=no, directories=no"); else if (command == "print") window.open("Print.aspx", "Print"); else if (command == "copy") { if (!(document.selection.createRange().text=="")) document.execCommand("Copy"); else alert("مطلوب تحديد المعلومات المُراد نسخها"); } else { document.Form1.FSCommand.value = command; document.Form1.submit(); } } function FindText(SearchStr) { if (SearchStr.length > 0) { var rng = document.body.createTextRange(); if (rng.findText(SearchStr) != false) { rng.select(); rng.collapse(); return true; } } return false; } function OnFormMouseDblClick(){ if (window.document.activeElement.id == "TitlesList") { document.Form1.FSCommand.value = "&TitlesListIndex=" + window.document.activeElement.selectedIndex + "&"; document.Form1.submit(); } } function OnFormKeyPressed() { if (self.event.keyCode == 13) { if (window.document.activeElement.id == "TitlesEditAr") Flash_FireFSCommand("TitlesEditAr", ""); } } function OnFormClick() { if (document.activeElement.id == "AdvancedSearchLabel") Flash_FireFSCommand("advSearch", ""); else if (document.activeElement.id == "NextSearchLabel") Flash_FireFSCommand("nexts", ""); else if (document.activeElement.id == "PrevSearchLabel") Flash_FireFSCommand("prevs", ""); } -->
|