 function getConfirmBox(lalertString,lurl){
  erg=confirm(lalertString);
  if(erg){
   document.location.href=lurl;
  }
 }

 function getConfirm(lalert){
  erg=confirm(lalert);
  if(erg){
  return 1;
  }else{
  return 0;
  }
 }

function openmedia(filename_I,whichpic,filename_II,title){
	//alert(''+scriptname+'?id='+fileid+'&filename='+myfilename+'&filetype='+myfiletype+'');
 var win=window.open('showmedia.php?filename_I='+filename_I+'&whichpic='+whichpic+'&filename_II='+filename_II+'&title='+title,'showfiles','menubar=no,status=no,scrollbars=no,resizable=yes,width=100,height=100');
 win.focus();
}

function openagbs(){
	
 var agbs_frame=window.open('show_agbs.php','agbs','menubar=no,status=yes,scrollbars=yes,resizable=yes,width=720,height=400');
 agbs_frame.focus();

 agbs_frame.moveTo((screen.width/2)-300,(screen.height/2)-200);

}

function openimpressum(){
	
 var impressum_frame=window.open('show_impressum.php','impressum','menubar=no,status=yes,scrollbars=yes,resizable=yes,width=720,height=400');
 impressum_frame.focus();

 impressum_frame.moveTo((screen.width/2)-300,(screen.height/2)-200);

}

function opennewsletter(){
	
 var news_frame=window.open('get_newsletter.php','newsletter','menubar=no,status=yes,scrollbars=yes,resizable=yes,width=720,height=400');
 news_frame.focus();

 news_frame.moveTo((screen.width/2)-300,(screen.height/2)-200);

}



function openorders(kd_nr){
	
 var order_frame=window.open('show_orders.php?id='+kd_nr,'show_orders','menubar=no,status=yes,scrollbars=yes,resizable=yes,width=960,height=400');
 order_frame.focus();

 order_frame.moveTo((screen.width/2)-450,(screen.height/2)-200);

}

    function showinfo(text1,text2) {
	lstring=text1+"~"+text2;
	parent.frames[2].document.info.SetVariable("jtext1", lstring);
	//alert(text);
   }
   
    function setinfo(text1,text2) {
	
	lstring=text1+"~"+text2;
	parent.frames[2].document.info.SetVariable("setinfo", lstring);
	//alert(lstring);
   }



function selectall(lv,lto) {
for(i=lv;i<=lto;i++){
document.getElementById(i).checked = true;
}
}

function deselectall(lv,lto) {
for(i=lv;i<=lto;i++){
document.getElementById(i).checked = false;
}
}




