function show(nr, picid, shid, lang)	{
	URL = 'smallsite.php?pic='+nr+'&picid='+picid+'&shid='+shid+'&lang='+lang;
	window.open(URL,'smallsite','toolbar=no,status=no,scrollbars=yes,directories=no,resizable=yes,menubar=no,height=600,width=600');
}


function popprofil(custnr, lang, shid)	{
	URL = 'profil.php?cid='+custnr+'&chshopid='+shid+'&lang='+lang+'&popup=1';
	window.open(URL,'smallsite','toolbar=no,status=no,scrollbars=yes,directories=no,resizable=yes,menubar=no,height=860,width=830');
}

function popshipping(id, lang)	{
	URL = 'littleshipping.php?id='+id+'&lang='+lang;
	window.open(URL,'smallsite','toolbar=no,status=no,scrollbars=yes,directories=no,resizable=yes,menubar=no,height=200,width=390,left=400,top=400');
}

function questarticle(id, lang, what, shid)	{
	URL = 'questarticle.php?id='+id+'&lang='+lang+"&what="+what+"&shid="+shid;
	window.open(URL,'questarticle','toolbar=no,status=no,scrollbars=yes,directories=no,resizable=yes,menubar=no,height=500,width=500,left=200,top=200');
}

function tiefpreisg(id, lang, shid)	{
	URL = 'tiefpreisg.php?id='+id+'&lang='+lang+"&shid="+shid;
	window.open(URL,'tiefpreisg','toolbar=no,status=no,scrollbars=yes,directories=no,resizable=yes,menubar=no,height=260,width=390,left=400,top=400');
}

function pop(url)	{
	window.open(url,'tiefpreisg','toolbar=no,status=no,scrollbars=yes,directories=no,resizable=yes,menubar=no,height=400,width=630,left=400,top=400');
}


function f1(a,b,h){window.open(a,'x','width='+b+',height='+h)}
function f2(a,b,h){window.open(a,'x','width='+b+',height='+h+',scrollbars,resizable')}

// Farbe zeigen
onerror = keinfehler; function keinfehler(){return true;}
 	
function Farbe_zeigen(A,B){
	A.style.backgroundColor=B;
}
	
function handleSubmit(str, w) {
	if(w == 1)
        document.getElementById(str).style.display="inline";
	else
	    document.getElementById(str).style.display="none";
}


function detailTabs(str, reiter, w) {
	for(i=1;i<=w;i++)
	{
		tabname = "tab"+i;
		reitername = "reiter"+i;
		if(document.getElementById(tabname))
		{
			document.getElementById(tabname).style.display="none";
		}
		if(document.getElementById(reitername))
		{
			document.getElementById(reitername).className="";
		}
    }	
    document.getElementById(str).style.display="inline";
    document.getElementById(reiter).className="reiterAktiv";
}



function s_messagedelete(id, ac, shid)  {
  if (confirm("Wollen Sie die Nachricht wirklich in den Papierkorb verschieben?"))
    {window.location.href="cu_messages.php?action=deletemessage&mid="+id+"&ac="+ac+"&shid="+shid; }
  else 
    { return false; }
}


function s_frienddelete(id, shid)  {
  if (confirm("Wollen Sie die Freundschaft wirklich beenden?"))
    {window.location.href="cu_friends.php?action=deletefriend&fid="+id+"&shid="+shid; }
  else 
    { return false; }
}


function s_addfriend(id, shid)  {
  if (confirm("Wollen Sie diesem Mitglied einen Freundschaftantrag senden?"))
    {window.location.href="profil.php?action=addfriend&cid="+id+"&shid="+shid; }
  else 
    { return false; }
}

function s_nofriend(id, shid)  {
  if (confirm("Wollen Sie den Freundschaftsantrag wirklich ablehnen?"))
    {window.location.href="cu_friends.php?action=nofriend&fid="+id+"&shid="+shid; }
  else 
    { return false; }
}

function s_activatefriend(id, shid)  {
  if (confirm("Wollen Sie den Freundschaftsantrag wirklich annehmen?"))
    {window.location.href="cu_friends.php?action=activatefriend&fid="+id+"&shid="+shid; }
  else 
    { return false; }
}

function s_umsatzpop(day, mon, year, shid, lang)	{
	URL = 'pp_tagesstats.php?shid='+shid+'&day='+day+'&mon='+mon+'&year='+year+'&lang='+lang;
	window.open(URL,'daystats','toolbar=no,status=no,scrollbars=yes,directories=no,resizable=yes,menubar=no,height=450,width=500');
}


function jsalert(txt)	{
     alert(txt);
}


