function to(url)
{
var doc = document.location;
doc.href = url;
}
/**
* Verbindet die Werte aus den Checkboxen und packt sie in das Textfeld.
*
*/
function get_besonderheiten(div_name,text_name)
{
var div_obj = document.getElementById('DIV_'+div_name);
var text_obj = document.getElementById(text_name);
//var cform = document.getElementById('frm_'+div_name);
var cboxen = document.getElementsByName('CB_'+div_name);
var add_items = document.getElementsByName('ADD_ITEMS_'+div_name);
var eles = [];
var inputs = document.getElementsByTagName("input");
for(var i = 0; i < inputs.length; i++) {
if(inputs[i].name.indexOf('chkb_') == 0) {
eles.push(inputs[i]);
}
}
var returntext=new Array();
/*// Checkboxen Werte übernehmen
for (var i = 0; i < cboxen.length; i++)
{
if (cboxen[i].checked == true && cboxen[i].value)
{
returntext.push(cboxen[i].value);
}
}*/
for (var i = 0; i < cboxen.length; i++){
if (cboxen[i].checked == true && cboxen[i].value){
returntext.push(cboxen[i].value);
}
for(var j=0; j=0){
// t=t.split(",");
// }
//}
var t = text_obj.value.split(",");
if(t.length==0) text_obj.value.splice(",");
for (var j = 0; j < t.length; j++) {
if ($.trim(t[j]) == cboxen[i].value) cboxen[i].checked=true;
else if (inArray($.trim(t[j]), add_item) == false && inArray($.trim(t[j]), check) == false) add_item.push($.trim(t[j]));
}
}
var add_items_val = new Array();
var more_item = new Array();
// Freitextfelder eintragen
for (var i = 0; i < add_item.length; i++)
{
if (add_item[i])
{
if (add_items_val.length < add_items.length - 1)
{
add_items_val.push(add_item[i]);
$('#' + div_name + '_add_item_' + i).val(add_item[i]);
}
else
{
more_item.push(add_item[i]);
}
}
}
var add_items_length = add_items.length - 1;
var more_items = more_item.join(", ");
$('#' + div_name + '_add_item_' + add_items_length).val(more_items);
if(div_obj)
{
div_obj.style.display = 'block';
}
else
{
alert("Div \'"+"DIV_"+div_name+"\' Existiert nicht!");
}
}
function bookmark(url,titel)
{
if (document.all)
window.external.AddFavorite(url,titel);
}
function nachricht (user_id) {
MeinFenster = window.open("nachricht.html?USER_ID="+user_id, "Nachricht", "width=700,height=800,scrollbars=yes");
MeinFenster.focus();
}
function benutzerdetails (user_id) {
MeinFenster = window.open("benutzer_details.html?user_id="+user_id, "Benutzerdetail", "width=967,height=800,scrollbars=auto");
MeinFenster.focus();
}
function preise_geprueft (obj_id) {
MeinFenster = window.open("preise_geprueft.html?OBJ_ID="+obj_id, "", "width=190,height=190,scrollbars=no");
MeinFenster.focus();
}
function bilder_geprueft (obj_id) {
MeinFenster = window.open("bilder_geprueft.html?OBJ_ID="+obj_id, "", "width=190,height=190,scrollbars=no");
MeinFenster.focus();
}
function onlinefreischalten (obj_id) {
MeinFenster = window.open("objekt_freischalten.html?OBJ_ID="+obj_id, "", "width=190,height=190,scrollbars=no");
MeinFenster.focus();
}
function rechnungsanschrift (rechnungsanschrift) {
MeinFenster = window.open("rechnungsanschrift.html?rechnungsanschrift="+rechnungsanschrift, "Rechnungsanschrift", "width=200,height=200,scrollbars=no");
MeinFenster.focus();
}
function partnerseiten (partnerseiten) {
MeinFenster = window.open("partnerseiten.html?partnerseiten="+partnerseiten, "Partnerseiten", "width=200,height=200,scrollbars=no");
MeinFenster.focus();
}
function NeuFenster (hilfstext) {
//MeinFenster =
window.open("besonderheiten.html?nav=4&name="+hilfstext, "Zweitfenster", "width=600,height=300,scrollbars=no");
//MeinFenster.focus();
}
function Account (acc_id,user_id, mein) {
MeinFenster = window.open("account.html?ACC_ID="+acc_id+"&USER_ID="+user_id+"&preview=1&popup=1&mein="+mein, "Zweitfenster", "width=620,height=620,scrollbars=yes");
MeinFenster.focus();
}
function offlinegruende(obj_id) {
MeinFenster = window.open("offlinegruende.html?OBJ_ID="+obj_id, "Zweitfenster", "width=260,height=200,scrollbars");
MeinFenster.focus();
}
function help (css,aa_id,hilfstext) {
MeinFenster = window.open("helppopup.html?name="+hilfstext+"&aa_id="+aa_id+"&css="+css, "Zweitfenster", "width=240,height=600,scrollbars");
MeinFenster.focus();
}
function kadmin_help ( pos, css,aa_id,hilfstext) {
return; // Spaeter entfernen Mik 02.08.2011
//alert(top.frames[0].location.href);
if(document.repeat != hilfstext)
{
document.repeat=hilfstext;
top.frames[0].location.href="helppopup.html?name="+hilfstext+"&aa_id="+aa_id+"&css="+css+"&nook=1";
str='';
if (navigator.appName == 'Netscape')
{
//pos = document.pageYY - 35;
str='document.getElementById(\'helpdiv\').style.top=pos+\'px\'';
}
else
{
//pos = window.event.clientY - 35;
str='document.all[\'helpdiv\'].style.top=pos+\'px\'';
}
eval(str);
//alert(document.layers['helpdiv']);
//alert(document.all['helpdiv'].style.top);
//window.document.body.scrollTop
//alert(e.pageY);
//return true;
}
}
function getElementComputedStyle(elem, prop)
{
if (typeof elem!="object") elem = document.getElementById(elem); // external stylesheet for Mozilla, Opera 7+ and Safari 1.3+
if (document.defaultView && document.defaultView.getComputedStyle)
{ if (prop.match(/[A-Z]/)) prop = prop.replace(/([A-Z])/g, "-$1").toLowerCase();
return document.defaultView.getComputedStyle(elem, "").getPropertyValue(prop); } // external stylesheet for Explorer and Opera 9
if (elem.currentStyle)
{ var i;
while ((i=prop.indexOf("-"))!=-1) prop = prop.substr(0, i) + prop.substr(i+1,1).toUpperCase() + prop.substr(i+2);
return elem.currentStyle[prop]; } return "";
// Beispiels
//var color = getElementComputedStyle("elemID", "color");
//var elem = document.getElementById("elemID");
//var bg = getElementComputedStyle(elem, "background-color");
//bg = getElementComputedStyle(elem, "backgroundColor");
}
function inArray(needle, haystack) {
var length = haystack.length;
for(var i = 0; i < length; i++) {
if(haystack[i] == needle) return true;
}
return false;
}