$j.fn.center = function () { var heightRatio = ($j(window).height() != 0) ? this.outerHeight() / $j(window).height() : 1; var widthRatio = ($j(window).width() != 0) ? this.outerWidth() / $j(window).width() : 1; this.css({ position: 'fixed', margin: 0, top: (50*(1-heightRatio)) + "%", left: (50*(1-widthRatio)) + "%" }); return this; } function epwindow(id) { var appendobj = document.getElementById("site"); if (!appendobj) { appendobj = document.getElementsByTagName("body")[0]; } var htmlobj = document.getElementById(id); if(!htmlobj) { htmlobj=document.createElement("div"); htmlobj.setAttribute("id",id); htmlobj.style.display = "none"; htmlobj.className = "epiclass_"+id; // htmlobj.style.display="none"; appendobj.appendChild(htmlobj); // $j(myclonesuche).appendTo("#site"); appendobj = document.getElementById(id); var innerhtml=""; htmlobj = document.createElement("div"); var epihead_id = "epihead_"+id; htmlobj.setAttribute("id",epihead_id); htmlobj.className = "epiclass_" + epihead_id; /* innerhtml += "minimieren"; */ innerhtml += "
schließen
"; // innerhtml += "wechsel_allgsuche_zu_schnellsuche(); return false;' />"; htmlobj.innerHTML=innerhtml; appendobj.appendChild(htmlobj); var verschieben=new Array(); verschieben[0] = epihead_id+","+id+",,,,1,1,0,0,"; initevt(verschieben); htmlobj = document.createElement("div"); var epicontent_id = "epicontent_"+id; htmlobj.setAttribute("id",epicontent_id); appendobj.appendChild(htmlobj); } else { htmlobj.style.display="block"; } } function epmessagewindow(id, message, ok, abbrechen) { var appendobj = document.getElementsByTagName("body")[0]; var htmlobj = document.getElementById(id); if(htmlobj) { var p = htmlobj.parentNode; if(p) { p.removeChild(htmlobj); } } /* div id="[id]" class="epiclass_[id]" */ htmlobj=document.createElement("div"); htmlobj.setAttribute("id",id); htmlobj.style.display = "none"; htmlobj.className = "epiclass_"+id; /* div id="[id]" class="epiclass_[id]_inner" */ var htmlobj_ip=document.createElement("div"); htmlobj_ip.setAttribute("id",id+"_inner_pos"); htmlobj_ip.className = "epiclass_"+id+"_inner_pos"; /* div id="[id]" class="epiclass_[id]_inner" */ var htmlobj_i=document.createElement("div"); htmlobj_i.setAttribute("id",id+"_inner"); htmlobj_i.className = "epiclass_"+id+"_inner"; htmlobj_i.innerHTML = message; htmlobj_ip.appendChild(htmlobj_i); htmlobj.appendChild(htmlobj_ip); if(ok) { var htmlok=document.createElement("div"); htmlok.setAttribute("id",id+"_ok"); htmlok.className = "epiclass_"+id+"_ok"; htmlok.innerHTML = ok; htmlobj_i.appendChild(htmlok); } if(abbrechen) { var htmlabb=document.createElement("div"); htmlabb.setAttribute("id",id+"_abbrechen"); htmlabb.className = "epiclass_"+id+"_abbrechen"; htmlabb.innerHTML = abbrechen; htmlobj_i.appendChild(htmlabb); } appendobj.appendChild(htmlobj); htmlobj.style.display = "block"; } function epwaitwindow(id, message, ok, abbrechen) { var appendobj = document.getElementsByTagName("body")[0]; var htmlobj = document.getElementById(id); if(htmlobj) { var p = htmlobj.parentNode; if(p) { p.removeChild(htmlobj); } } /* div id="[id]" class="epiclass_[id]" */ htmlobj=document.createElement("div"); htmlobj.setAttribute("id",id); htmlobj.style.display = "none"; htmlobj.className = "epiclass_"+id; /* div id="[id]" class="epiclass_[id]_inner" */ var htmlobj_ip=document.createElement("div"); htmlobj_ip.setAttribute("id",id+"_inner_pos"); htmlobj_ip.className = "epiclass_"+id+"_inner_pos"; message += "
"; var logo = ""; /* div id="[id]" class="epiclass_[id]_inner" */ var htmlobj_i=document.createElement("div"); htmlobj_i.setAttribute("id",id+"_inner"); htmlobj_i.className = "epiclass_"+id+"_inner"; htmlobj_i.innerHTML = message; htmlobj_ip.appendChild(htmlobj_i); htmlobj.appendChild(htmlobj_ip); if(ok) { var htmlok=document.createElement("div"); htmlok.setAttribute("id",id+"_ok"); htmlok.className = "epiclass_"+id+"_ok"; htmlok.innerHTML = ok; htmlobj_i.appendChild(htmlok); } if(abbrechen) { var htmlabb=document.createElement("div"); htmlabb.setAttribute("id",id+"_abbrechen"); htmlabb.className = "epiclass_"+id+"_abbrechen"; htmlabb.innerHTML = abbrechen; htmlobj_i.appendChild(htmlabb); } appendobj.appendChild(htmlobj); htmlobj.style.display = "block"; } function epwindowinsert(id,text) { var htmlobj = document.getElementById(id); if(htmlobj) { htmlobj.innerHTML = text; } } function epwindowclose(id) { var x =document.getElementById(id); if(x) { var versid = "epihead_"+id; /* removeverschiebeobject(versid); */ x.parentNode.removeChild(x); } } function newDiv(id,zielid,cssClass,display) { var appendobj; var htmlobj; if(!zielid) { appendobj = document.getElementById("site"); if (!appendobj) { appendobj = document.getElementsByTagName("body")[0]; } } else { appendobj = document.getElementById(zielid); } htmlobj = document.createElement("div"); if(id.substr(0,5) != "epiid") { htmlobj.setAttribute("id","epiid_"+id); } else { htmlobj.setAttribute("id",id); } if(!display) { htmlobj.style.display = "none"; } else { htmlobj.style.display = display; } if(!cssClass) { htmlobj.className = "epiclass_"+id; } else { htmlobj.className = cssClass; } // htmlobj.style.display="none"; appendobj.appendChild(htmlobj); return htmlobj; }