﻿//function submitForm(CurrentLink) 
//{
//    document.forms[0].action = CurrentLink;
//    document.forms[0].target = '_blank';
//    //document.forms[0].disabled = false;
//    document.forms[0].submit();
//    document.forms[0].action = '?';
//    document.forms[0].target = '_self';

//}


function open_internerlink_nw(url,w,h)
{
	l = Math.round(screen.width/2)-Math.round(w/2);
	t = Math.round(screen.height/2)-Math.round(h/2);
	window.open(url, '', 'left=' + l + ',top=' + t + ',dependent=no,width=' + w + ',height=' + h + ',menubar=yes,location=yes,status=yes,scrollbars=yes,toolbar=yes,resizable=yes');
}

function changeimg(bildname,dateiname)
	{
	document.images[bildname].src='images/' + dateiname;
	}

function anker(ankername)
	{
	var quelllink = self.document.location.href
	var linkarr = quelllink.split("#");
	self.document.location.href=linkarr[0]+'#'+ankername;
	}
	
//function showpic(id,picture,width,height)
//{
// window.open('/file/'+id+'_bild_'+picture,'cmspicture'+id,'width='+(width-1)+',height='+(height-1));
//}

function showpic(id, picture, width, height, ext) 
{
    
    if (ext == undefined) 
    {
        ext = '';        
    }
    else 
    {
        ext = '.' + ext;        
    }
    //alert(ext);
    
    window.open('/file/' + id + '_bild_' + picture + '' + ext, 'cmspicture' + id, 'width=' + (width - 1) + ',height=' + (height - 1));
 }


function showpic_businessCard(id, picture, width, height, ext) 
{

	if (ext == undefined) 
	{
   		ext = '';
   	}
   	else 
	{
   		ext = '.' + ext;
   	}
   	//alert(ext);

   	window.open('http://veranstaltungen.landkreis-wunsiedel.de/stdscripts/dp_bild.asp?bild=' + id + '.jpg', 'cmspicture' + id, 'width=' + (width - 1) + ',height=' + (height - 1));
}

function show_branchenbuch_details(punkteid) 
{
    //http: //selbrw.procomp.dev/businesscard/2756/6120__forum_selb_erleben_e_v_.html
    window.open("/businesscard/1577/" + punkteid + "_event.html", "branchenbuch" + punkteid)
}
function show_branchenbuch_content(punkteid) 
{
    //    http: //selbrw.procomp.dev/businesscard/2756/6120__forum_selb_erleben_e_v_.html
    window.open("/businesscard/1577/" + punkteid + "_event.html", "branchenbuchc" + punkteid)
}


