function setStatusBar(msgStr) { self.status = msgStr; }

function formSubmited() {
if(document.mailer.name == '' || 
document.mailer.email == '' || 
document.mailer.subject == '' || 
document.mailer.name == '') {
  alert('Trzeba wypełnić wszsytkie pola');
  return;
}
document.location.href = 'mailto:jacek.kan@op.pl?subject=' + document.mailer.subject;
} 


function tekstArrayInit(){
napis = new Array(4);
napis[0]="Zatkana kanalizacja?";
napis[1]="Niedrożne rury?";
napis[2]="Potrzebujesz pomocy fachowców?"
napis[3]="Zadzwoń do nas...";
}

function PiszText(){
tekstArrayInit();
textToWrite=napis[t].substring(0,position+1);
Written="<p align='left'><font size='3' color='#000000'><b>"+textToWrite+"</b></font></p>";
if (document.all){
tekstSpan.innerHTML=Written
}
else{
document.layers.tekst1Span.document.write(Written);
document.layers.tekst1Span.document.close()
}
if (position==napis[t].length-1){
t++;
t=t % 4;
position=0;
textToWrite="";
speed1=5000;
}
else{
position++;
speed1=100
}
setTimeout("PiszText()",speed1)
}

function AppInit(){
	t=0;
	textLen=0;
	textToWrite="";
	position=0;
	PiszText();
}

window.onload=AppInit;