function rating(id){
 w1=open('','w1','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,width=300,height=400,resizable=yes');
 w1.location.href = 'rating.php?id='+id;
 if (w1.opener == null) w1.opener = self;
 w1.focus();
}

function comment(id){
 w1=open('','w1','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,width=300,height=400,resizable=yes');
 w1.location.href = 'comment.php?id='+id;
 if (w1.opener == null) w1.opener = self;
 w1.focus();
}

function smsagb(){
 w1=open('smsagbs.php','smsagb','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,width=500,height=400,resizable=yes');
 if (smsagb.opener == null) smsagb.opener = self;
 smsagb.focus();
}

function neu_spruch(){
 w1=open('neu_spruch.php','neu_spruch','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,width=500,height=400,resizable=yes');
 if (neu_spruch.opener == null) neu_spruch.opener = self;
 neu_spruch.focus();
}


function errortyp_check(){
if(document.error.typ.options[3].selected == true){
document.getElementById("a_typ").style.visibility = "visible";
}else{
document.getElementById("a_typ").style.visibility = "hidden";
}
}

function kattyp_check(){
if(document.error.kat.options[29].selected == true){
document.getElementById("a_kat").style.visibility = "visible";
}else{
document.getElementById("a_kat").style.visibility = "hidden";
}
}

function check_neuspruch(){
if(document.neuspruch.kat.selectedIndex == (document.neuspruch.kat.length - 1)){
document.getElementById("and_kat").style.display = "inline";
}else{
document.getElementById("and_kat").style.display = "none";
}
}

function count_spruch()
{
document.getElementById("zeichencounter").innerHTML = document.neuspruch.spruch.value.length;
}

function nr_delock_check(){
if(document.getElementById("code_got").checked == true){
document.getElementById("code").style.display = "inline";
document.getElementById("code1").style.display = "inline";
}else{
document.getElementById("code").style.display = "none";
document.getElementById("code1").style.display = "none";
}
}


