function openPopup(url)
{
 width=400;
 height=200;
 var options = "dependent=yes,width="+width+",height="+height+",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
 dialogWindow = window.open(url,'Fenster',options);
 dialogWindow.focus();
} 

function openPrint(url)
{
 width=760;
 height=540;
 var options = "dependent=yes,width="+width+",height="+height+",location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no";
 dialogWindow = window.open(url,'Fenster',options);
 dialogWindow.focus();
} 

/* status scrolling */
var Count = 0;
var Texte = new Array("Herzlich Willkommen bei PAV"
		,"Machen Sie eine CNC Karriere bei PAV"
		,"CNC-Dreher, -Fräser, -Schleifer & mehr unter \"Job & Karriere\""
		);
var Text = "";
var Speed = 90;
var timerID = null;
var TimerRunning = false;
var signs = 140;
var scrolling_i = -1;
function Scroll() {
	if (Count == Text.length) {
		Count = 0;
		if(scrolling_i < Texte.length - 1) {
			scrolling_i++;
		} else {
			scrolling_i = 0;
		}
		Text = Texte[scrolling_i];
		var i = 0;
		while (i++ < 140) Text = " " + Text;
	}
	window.status = Text.substring(Count++, Text.length);
	timerID = setTimeout("Scroll()", Speed);
	TimerRunning = true;
}
function Start() {
	Stop();
	Scroll();
}
function Stop() {
	if(TimerRunning) clearTimeout(timerID);
	TimerRunning = false;
}
Start();