| 123456789101112131415161718192021222324252627282930313233343536 |
- function addBookmark(title,url) {
- if (window.sidebar) {
- window.sidebar.addPanel(title, url,"");
- } else if( document.all ) {
- window.external.AddFavorite( url, title);
- } else if( window.opera && window.print ) {
- return true;
- }
- }
- function find(){
- o=theForm.finds;
- tmp=o.options[o.selectedIndex].value;
- url=tmp+"&k="+theForm.find_.value;
- window.parent.doc2.document.location.href=url;
- }
- function submitByEventAction(formName, actionName, event) {
- var rs = true;
- if (event != null)
- rs = event();
- if (rs || rs == undefined) {
- var forms = document.getElementsByName(formName);
- if (forms.length > 0) {
- var firstForm = forms[0];
- if ($(firstForm).attr("disable")) {
- return false;
- }
- $(firstForm).attr("target", "_self");
- $(firstForm).attr("disable", "true");
- firstForm.action = actionName;
- firstForm.submit();
- }
- }
- }
-
|