//-------------------------------------------
//  Datei: standard.js
//-------------------------------------------
//  Projekt: GOT Standard CMS
//  Autor: Frank Meyerer / frank.meyerer@got.de
//  Letzte Aenderung: 24.04.2006 / 17.23 Uhr
//-------------------------------------------

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function piclarge (root,p_id,b,h,picid,lng) {
  // root = Websiteroot
  // p_id = AbsatzId
  // b    = fensterbreite
  // h    = fensterhoehe
  // picid = assetid
  // lng  = SprachId
	var piclink= root+"cms_logic/parapic_popup.php?p1="+p_id+"&p2="+b+"&p3="+h+"&p4="+picid+"&p5="+lng;
	var g = "height="+h+",width="+b+",screenX=0,screenY=0";
	//window.alert(piclink);
	s = window.open(piclink,"Detailansicht",g);
	if (s) {
		s.focus();
	}
}

function printParagraph(root,p_id,lng,b,h) {	

	var plink= root+"cms_logic/print_paragraph.php?p1="+p_id+"&p5="+lng;
	var para = "height="+h+",width="+b+",screenX=0,screenY=0,scrollbars=yes";
	
	//window.alert(para);
	
	s = window.open(plink,"gotpopup",para);
	if (s) {
		s.focus();
	}
}

function printPage(root,p1,p2,p3,p4,p5,b,h) {	

	var plink= root+"cms_logic/print_page.php?p1="+p1+"&p2="+p2+"&p3="+p3+"&p4="+p4+"&p5="+p5;
	var para = "height="+h+",width="+b+",screenX=0,screenY=0,scrollbars=yes";
	
	//window.alert(para);
	
	s = window.open(plink,"gotpopup",para);
	if (s) {
		s.focus();
	}
}

function printNow() {
	if (window.print) {
	jetztdrucken = confirm('Seite drucken ?');
	if (jetztdrucken) window.print();
	}
}

function sendPage(root,p1,p2,p3,p4,p5,b,h) {	

	var plink= root+"cms_logic/sendPage.php?p1="+p1+"&p2="+p2+"&p3="+p3+"&p4="+p4+"&p5="+p5;
	var para = "height="+h+",width="+b+",screenX=0,screenY=0";
	
	//window.alert(plink);
	
	s = window.open(plink,"gotpopup",para);
	if (s) {
		s.focus();
	}
	
}
