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=920');
}

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)	{
	URL = 'questarticle.php?id='+id+'&lang='+lang+"&what="+what;
	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)	{
	URL = 'tiefpreisg.php?id='+id+'&lang='+lang;
	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 handleSubmit(str, w) {
	if(w == 1)
        document.getElementById(str).style.display="inline";
	else
	    document.getElementById(str).style.display="none";
}



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);
}
