function searchall() { w1 = open('./searchall.php','searchall','status=no,resizable=1,location=no,toolbar=no,scrollbars=1,width=500,height=580' ); w1.focus(); } function cancel() { location='./'; } function home() { location='./'; } function showimages() { w1 = open('./images.php','showimages','resizable=1,location=0,toolbar=0,scrollbars=1,width=790,height=590' ); w1.focus(); } function panelhelp(PanelId) { sWindow = "./panelhelp.php?id=" + PanelId; w1 = open(sWindow,'panelhelp','resizable=1,location=0,toolbar=0,scrollbars=1,width=640,height=480' ); w1.focus(); } function insertfile() { w1 = open('./filelist.php','filelist','resizable=1,location=0,toolbar=0,scrollbars=1,width=630,height=470' ); w1.focus(); } function linkfind() { w1 = open('./linkfind.php','findlist','resizable=1,location=0,toolbar=0,scrollbars=1,width=600,height=540' ); w1.focus(); } function homepage() { location='./'; } function membercsv() { w1 = open('./membercsv.php','member_csv','resizable=1,location=0,toolbar=0,menubar=1,scrollbars=1,width=775,height=540' ); w1.focus(); } function paymentcsv() { w1 = open('./paymentcsv.php','member_csv','resizable=1,location=0,toolbar=0,menubar=1,scrollbars=1,width=775,height=540' ); w1.focus(); } function profile() { w1 = open('./profile.php','profile','resizable=1,location=0,toolbar=0,scrollbars=1,width=600,height=540' ); w1.focus(); } function about() { w1 = open('./about.php','about','resizable=0,location=0,toolbar=0,scrollbars=0,width=400,height=300' ); w1.focus(); } function contact(sEmail,sSubject) { sWindow = "./contact.php?to=" + sEmail + "&subject=" + sSubject; w1 = open(sWindow,'contact','resizable=0,location=0,toolbar=0,scrollbars=0,width=450,height=350' ); w1.focus(); } function contact2(sEmail,sSubject) { location = "./contact.php?to=" + sEmail + "&subject=" + sSubject; } function deletetab(tabid) { if (confirm('Delete this tab?')) { location='./edittab.php?deletetab=' + tabid; } } function logout(sQ) { if (confirm(sQ)) { location='./logout.php'; } } function deletecontact(ContactId) { if(confirm('Delete this contact?')) { location='./contactlist.php?delete=' + ContactId; } } function deletemember(memberId) { if(confirm('Delete this member?')) { location='./memberform.php?delete=' + memberId; } } function deletemessage(messageId) { if(confirm('Delete this message?')) { location='./messageform.php?delete=' + messageId; } } function deletemessageschedule(eventId) { if(confirm('Delete this message event?')) { location='./messagescheduleform.php?delete=' + eventId; } } function deletepayment(memberId,paymentId) { if(confirm('Delete this payment?')) { location='./payments.php?delete=' + paymentId + '&id=' + memberId; } } function deleteevent(nId,sText) { if(confirm(sText)) { location='./event.php?delete=' + nId; } } function deletemoney(nId,sText) { if(confirm(sText)) { location='./money.php?delete=' + nId; } } function editbannerad(nId) { location='./banneradform.php?id=' + nId; } function addforummessage(panelId) { location='./forumform.php?id=0&panel_id=' + panelId; } function editforummessage(messageId) { location='./forumform.php?action=edit&id=' + messageId; } function deleteforummessage(messageId) { if (confirm('Delete this entry?')) { location='./forumform.php?action=delete&id=' + messageId; } } function showreplies(messageid) { location='./forumreplyform.php?action=show&id=' + messageid; } function forumreply(messageid) { location='./forumreplyform.php?id=0&reply_id=' + messageid; } function addnews(panelId) { location='./newsform.php?id=0&panel_id=' + panelId; } function editnews(nId) { location='./password.php?id=' + nId + '&form=newsform.php&action=edit'; } function deletenews(nId,sText) { if (confirm(sText)) { location='./news.php?delete=' + nId; } } function deletefile(filename,sText) { if (confirm(sText)) { location='./files.php?delete=' + filename; } } function search1() { document.search1.submit(); } function search2() { document.search2.submit(); } function rentaledit(nId) { location='./password.php?id=' + nId + '&form=rentalform.php&action=edit'; } function rentaladd(nPanel) { location="./rentalform.php?id=0&panel_id=" + nPanel; } function rentaldelete(nId) { location='./password.php?id=' + nId + '&form=rentalform.php&action=delete'; } function salesedit(nId) { location='./password.php?id=' + nId + '&form=salesform.php&action=edit'; } function salesadd(nPanel) { location="./salesform.php?id=0&panel_id=" + nPanel; } function salesdelete(nId) { location='./password.php?id=' + nId + '&form=salesform.php&action=delete'; } function swapedit(nId) { location='./password.php?id=' + nId + '&form=swapform.php&action=edit'; } function swapadd(nPanel) { location="./swapform.php?id=0&panel_id=" + nPanel; } function swapdelete(nId) { location='./password.php?id=' + nId + '&form=swapform.php&action=delete'; } function classifiededit(nId) { location='./password.php?id=' + nId + '&form=classifiedform.php&action=edit'; } function classifiedadd(nPanel) { location="./classifiedform.php?id=0&panel_id=" + nPanel; } function classifieddelete(nId) { location='./password.php?id=' + nId + '&form=classifiedform.php&action=delete'; } function deletelink(lid) { if(confirm('Delete this link?')) { location='./links.php?delete=' + lid; } } function setgrp() { document.linkedit.grp.value = document.linkedit.grplst.options[document.linkedit.grplst.selectedIndex].value; } var Spell_Win_Name; var Work_Form_Name; var Work_Field_Name; function win_pop(URL) { winname=window.open(URL,'WIN','width=590,height=790,left=10,top=10,resizable=yes,scrollbars=yes,status=yes'); return winname; } function SpellCheck(form_name,field_name) { var textform = self.document[form_name][field_name].value; //open popup window and submit to uspchk.php ONLY //1. IF popup window is not open or popup window was closed //2. OR click comes from another form-field //otherwise spellcheck click just focus popup window if ( ! Spell_Win_Name || Spell_Win_Name.closed || (Work_Form_Name != form_name || Work_Field_Name != field_name)) { Spell_Win_Name = win_pop(''); if (Spell_Win_Name.focus) { Spell_Win_Name.focus(); } self.document.hidden_form.form_name.value = form_name; //w skritata forma se izpolzwa ime na pole form_name i field_name self.document.hidden_form.field_name.value = field_name; // koito nqmat nishto obshto s promrnliwite w tazi funkciq self.document.hidden_form.first_time_text.value = textform; self.document.hidden_form.submit(); Work_Form_Name=form_name; Work_Field_Name=field_name; } else { if (Spell_Win_Name.focus) { Spell_Win_Name.focus(); } } }