// JavaScript Document
//CANE Mobile Hundeschule
//Copyright by WACON Internet GmbH by Sebastian Spahn 

function newspaper(theURL)
{
	var breite = 713;
	var hoehe = 487;
	var posX=(screen.availWidth-breite)/2;
	var posY=(screen.availHeight-hoehe)/2;

    	window.open(theURL,"wdv","width=713,height=487,menubar=no,screenX=" + posX + ",screenY=" + posY + ",left=" + posX + ",top=" + posY);
}


function pics(theURL)
{
	var breite = 400;
	var hoehe = 350;
	var posX=(screen.availWidth-breite)/2;
	var posY=(screen.availHeight-hoehe)/2;

    	window.open(theURL,"wdv","width=400,height=350,menubar=no,screenX=" + posX + ",screenY=" + posY + ",left=" + posX + ",top=" + posY);
}


function getURLParam(strParamName){
var strReturn = "";
var strHref = window.location.href;
if ( strHref.indexOf("&") > -1 ){
var strQueryString = strHref.substr(strHref.indexOf("&"));
var aQueryString = strQueryString.split("&");
for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
if (
aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
var aParam = aQueryString[iParam].split("=");
strReturn = aParam[1];
break;
}
}
}
return strReturn;
}
