function resizeWindow(fenster,setw,seth){
	setw = setw;
	seth = seth;
	return fenster.resizeTo(setw,seth),fenster.resizeTo(setw*2-((typeof fenster.innerWidth ==
	"undefined")?fenster.document.body.clientWidth:fenster.innerWidth),seth*2-((typeof fenster.innerHeight ==
	"undefined")?fenster.document.body.clientHeight:fenster.innerHeight));
}

function openPic(url,winName,winParams,width,height) {
	var theWindow = window.open(url,winName,winParams);
	if (theWindow) {
		theWindow.focus();
		theWindow.innerWidth = width;
		theWindow.innerHeight = height;
	}
	return false;
}

function logFile(tag,type) {

	var http = null;
	if (window.XMLHttpRequest) {
		http = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) {
		http = new ActiveXObject("Microsoft.XMLHTTP");
	}

	if (http != null) {
		http.abort();
		if (type == 'pic') {
			var temp = "/fileadmin/log/logentry.php?pic=" + tag.getAttribute('name');
		}
		else if (type == 'page') {
			var temp = "/fileadmin/log/logentry.php?page=" + tag.document.URL;
		}
	
		http.open("GET", temp.toString() , false);
		http.send(null);
	}
}

