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

