<!--
function colorize(id){
	if(!document.getElementById)return;
	var i,E=document.getElementById(id),tr;
	if(E&&E.tagName=='TABLE'){
		tr=E.getElementsByTagName('TR');
		for(i=0;i<tr.length;i++){
			tr[i].onmouseover=function(){
				if(this.className!='onDown')
					this.className='onOver';
			}
			tr[i].onmouseout=function(){
				if(this.className!='onDown')
					this.className='onOut';
			}
			tr[i].onmousedown=function(){
				this.className = this.className=='onDown'?'onOut':'onDown';
			}
		}
	}
}
function autocheck(obj) {
	var fname = obj.name;
	if (!eval("document.form1."+fname+"_check")) return;
	var flen = 0;
	if (obj.type == 'text') flen = obj.value.length;
	else if (obj.type == 'select-one') flen = 1; // pola typu select-one zawsze wł±czaj±
//	else if (obj.type == 'select-one') flen = obj.selectedIndex;
	else return;
	var state = (flen)? true:false;
	eval("document.form1."+fname+"_check.checked = state");
}

// prirtCalc('przyklad'); -> document.przyklad
// printCalc('');         -> document.form1

function printCalcs(fname, step) {
	if (!fname.length) fname = 'form1';
	var f = eval("document." + fname);
	if(!f.name) return;
	var u = document.location.href; // ? (+'?')
	if (u.indexOf('?') == -1 ) u += '?';
	var itemCount = f.length;
	for(var i=0;i<itemCount;i++) if (f[i].name != 'step' && f[i].value) u += '&' + f[i].name +'=' + f[i].value;
	u += '&step=' + step;
	u = u.replace(/index.jsp/gi, 'print.jsp');
	window.open(u, 'print', 'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,scrollbars=1,width=600,height=500');
}

function showCalc(fname,step) {
	if (!fname.length) fname = 'form1';
	var f = eval("document." + fname);
	if(!f.name) return;
//	var u = document.location.href; // ? (+'?')
	var u = 'index.jsp';
	if (u.indexOf('?') == -1 ) u += '?';
	var itemCount = f.length;
	for(var i=0;i<itemCount;i++) {
		if (f[i].name != 'step' && f[i].value) {
			if ( i == 1) {
				u += f[i].name + '=' + f[i].value;
			} else {
				u += '&' + f[i].name +'=' + f[i].value;
				}
		}
	}
	u += '&step=' + step;
	u = u.replace(/index.jsp/gi, 'showCalc.jsp');
	window.open(u, 'showCalculators', 'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,scrollbars=1,width=600,height=500');
}

function printSearch(fname) {
	if (!fname.length) fname = 'form1';
	var f = eval("document." + fname);
	if(!f.name) return;
	var u = document.location.href; // ? (+'?')
	if (u.indexOf('?') == -1 ) u += '?';
	var itemCount = f.length;
	for(var i=0;i<itemCount;i++) {
		if (f[i].name == 'offset') u += '&' + f[i].name +'=0';
		if (f[i].name == 'count') u += '&' + f[i].name +'=9999';
		else u += '&' + f[i].name +'=' + f[i].value;
	}
	u = u.replace(/index.jsp/gi, 'print.jsp');
	window.open(u, 'print', 'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,scrollbars=1,width=600,height=500');
}

function printQuotation() {
	var u = document.location.href; // ? (+'?')
	if (u.indexOf('?') == -1 ) u += '?';
	u = u.replace(/index.jsp/gi, 'print.jsp');
	window.open(u, 'print', 'toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,scrollbars=1,width=600,height=500');
}
var invalid_mail = new Array("adam@o2.pl","adam@tlen.pl","adam@go2.pl","andrzej@onet.pl","mirek@o2.pl","mirek@tlen.pl","mirek@go2.pl","mirek@prokonto.pl","nie@nie.pl","kowalski@interia.pl","rety@o2.pl","rety@go2.pl","rety@tlen.pl");

Array.prototype.in_array_invalid = function(m_val) {
    for(var i = 0, l = this.length; i < l; i++) {
        if(this[i] == m_val) {return false;}
    }
    return true;
}



function validateFormStaticLondyn(AForm) {
	validate=true;

	//1. Imię
	reg = /^[a-zA-Z±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬ -]{2,20}$/;
	wyn = document.recordForm.client_name.value.match(reg);
	var object = document.getElementById('label1');

	var tablicaImNaz = new Array('dupa','fuck','chuj','nie podam','sdf','asd','qwe');
	var tIm = true;
	var imF = new String(document.recordForm.client_name.value);
	
	for (var k = 0; k < tablicaImNaz.length; k++){
		if(document.recordForm.client_name.value.indexOf(tablicaImNaz[k]) != -1){
			tIm = false;
		}
	}

	for (var k = 2; k < imF.length; k++){
		if((imF.charAt(k) == imF.charAt(k-1)) && (imF.charAt(k) == imF.charAt(k-2))) {
			tIm = false;
		}
	}		

	if ((wyn == null) || (tIm == false)) {
		validate=false;
		if (object) {object.style.color='#ff0000';}
	} else {
		if (object) {object.style.color='#97969B';}
	}


	//2. Nazwisko
	reg = /^[a-zA-Z±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬ -]{2,30}$/;
	wyn = document.recordForm.client_surname.value.match(reg);
	var object = document.getElementById('label2');
	var nazF = document.recordForm.client_surname.value;
	var tNaz = true;

	for (var k = 0; k < tablicaImNaz.length; k++){
		if(document.recordForm.client_surname.value.indexOf(tablicaImNaz[k]) != -1){
			tNaz = false;
		}
	}

	for (var k = 2; k < nazF.length; k++){
		if((nazF.charAt(k) == nazF.charAt(k-1)) && (nazF.charAt(k) == nazF.charAt(k-2))) 
			tNaz = false;
	}	

	if ((wyn == null) || (document.recordForm.client_name.value == document.recordForm.client_surname.value) || (tNaz == false)) {
		validate=false;
		if (object) {object.style.color='#ff0000';}
	} else {
		if (object) {object.style.color='#97969B';}
	}



		//3. Telefon 
		reg = /^[0-9]{10}$/;
		wyn = (document.recordForm.client_mobile.value.match(reg));
		var object = document.getElementById('label4');
		var tKom = true;
		var telKom = true;
		if(telKom) {
			var tablica = new Array('50', '51', '53', '600', '601', '602', '603', '604', '605', '606', '607', '608', '609', '660', '661', '662', '663', '664', '665', '6660', '6661', '6662', '6663', '6664', '6665', '6666', '6667', '6668', '6669', '667', '668', '669', '6901', '6902', '6903', '6904', '6905', '6906', '691', '692', '693', '694', '695', '696', '697', '698', '69900', '69901', '69902', '69903', '69904', '69905', '69906', '69907', '69908', '69909', '6991', '69920', '69921', '69922', '69923', '69924', '69925', '69926', '69927', '69928', '69929', '6993', '6994', '6995', '69960', '69961', '69962', '69963', '69964', '69965', '69966', '69967', '69968', '69969', '6997', '6998', '6999', '720', '721', '7220', '7221', '7222', '7223', '7224', '7225', '7226', '7227', '7228', '7229', '723', '724', '725', '726', '7271', '7272', '7273', '7274', '7275', '7276', '7277', '7278', '7279', '7280', '7281', '7282', '7283', '7284', '7285', '7286', '7287', '7288', '7289', '7290', '7291', '780', '781', '782', '7830', '7831', '7832', '7833', '7834', '7835', '7836', '7837', '7838', '7839', '784', '785', '7860', '7861', '7862', '7863', '7864', '7865', '7866', '7867', '7868', '7869', '7870', '7871', '7872', '7873', '7874', '7875', '7876', '7877', '7878', '7879', '788', '789', '790', '791', '792', '793', '794', '7950', '7951', '7952', '7953', '7954', '7955', '7956', '7957', '7958', '7959', '796', '797', '798', '799', '880', '8811', '8818', '882', '8830', '8831', '8832', '8833', '8834', '8835', '8836', '8837', '8838', '8839', '8841', '8842', '8844', '885', '886', '887', '888', '889');
			var tablicaBad = new Array('507222222','691888888','504444333','692333333','509100000','792123456','606234234','602728222','500600500','600400000','793333333','510111222','500444000','784522543','507222222','533111111','721777777','604123123','609123456','792222222','606444444','606600600','505999999','504666666','696666666','695444444','787878787','504333333','600000001','609333333','603454545','602234234','502666666','601140901','605456789','696888888','507100200','600888000','604678678','501123125','501123456','600000001','606555666','781781781','666997997','504123321','500000123','606453453','600011000','666111666','502600600','665456789','666999999','500110110','507100200','601321456','502001001','502444444','500500100','604123123','695444444','502777777','696666666','501001100','504500500','502555444','600232323','666997997','600500100','669669669','511444444','502752179','669669669','508222222','503234567','509169222','501456789','502543543','604222222','505222111','609222333','501333444','503444444','500800900','667123456','667123456','600258258','503444444','600123321','604222222','695444444','601666999','784444444','887888888','889777777','605344444','501002003','880888888','608444444','505505050','601222333','501234123','511555555','604600796','606134505','600234456','698888888','887888888','605111111','505505050','602777777','507123456','602900000','603603603','600001100','608555444','600122222','601321123','604600796','600500600','606444444','323323323','668555555','600555666','666999999','600000001','666999666','505500500','601321123','605143927','505322282','604966787','501456789','500456345','607999999','501345123','502543543','502121119','721800911','601272064','609543858','609355523','504564684','509806389','693301535','509098338','502587281','698993556','604222222','794997190','505222111','889555555','604222222','784444444','601666999','889777777','509586300','880888888','501002003','605344444','608444444','505505050','601222333','501234123','511555555','603678277','600234456','606134505','604600796','501976591','693603209','698888888','887888888','602777777','605111111','505505050','507123456','602900000','663333333','502999869','603603603','600001100','608555444','600122222','666555555','600500600','604600796','601321123','606444444','600555666','323323323','618481595','914553187','668555555','609196368','666999999','600000001','666999666','601321123','505500500','600444333','503606574','664666666','792111111','602123123','505505555','600777777','501444444','604440999','600997543','600100200','603123123','501111222','785692048','696696696','510300200','790260470','604333333','605605605','501123321','500444555','666999333','501000001','505505210','505500555','600200300','603123123','696498107','699666666','667667667','600444555','666888999','600001100','500300200','600601602','693222222','123123123','500328642','511000000','555444333','666123456','500100123','691666666','500777666','500777777','502123123','605123456','122222222','603123123','505222222','602600600','602100100','500300200','666555777','500300200','505231456','600234235','501444444','501100100','600333333','668170940','501001000','600444444','793377422','601876687','693747474','500100200','511066911','665651622','501444444','505505055','500777777','600100100','502505505','600900900','666222222','501500500','533333333','606387951','600222222','606111111','600400500','608888888','600123456','600111222','500000111','507555555','603703135','606656656','600997997','608456789','600500500','725555555','600456789','601666666','794222333','605555555','889889889','665555555','600600500','505000000','500200100','666888777','608777777','500222222','666666666','508124704','601950751','600888888','600666666','510100100','666111222','603444444','600999999','502555555','502503504','609111111','602123456','603333333','692666666','500333333','606777777','508111111','601777777','603444444','504000000','500222222','501545545','666111000','600222111','666345786','602603604','793456789','609222222','605444444','604123123','500444444','600111111','666555444','509000000','501666020','501001001','515555555','602444444','606777777','602603604','667687207','501101101','506555555','721555555','609555555','500500600','500501502','505111111','600555444','600222333','503000000','500111111','500123123','609121835','601753890','668123123','666000000','506222222','501000000','600100000','508508508','609123123','600666666','506355372','510232470','501111111','505456789','665666666','601601601','600600600','693333333','501501501','666555444','600100100','501000111','600500400','502222333','500000000','602333222','608111111','693333333','888888888','502333333','666111111','505505505','606123123','667665667','697111111','602555555','603111111','606555555','505555555','603555555','666111111','608100100','607555555','500232323','503111111','600555555','600222333','604111111','603188688','500500500','501555555','666666666','660222222','512123123','666222333','600000111','601456789','602111111','505555555','600000000','663555666','600200200','606666666','511111111','605234234','509456789','503333333','509222222','503123123','666999111','502000000','600123123','500100100','505666777','502456789','505666888','600111000','601000000','697333333','692111111','600001002','501333333','666999777','500100000','600700800','500600700','500400300','513666777','501502503','697999999','513666777','691111111','604000000','605456345','601555555','601333333','606234123','606345543','607222222','501222222','500000500','603666666','607777777','500555555','667668669','501222222','602222222','603704615','665222222','602666666','600700700','600700700','505506507','601999999','513123234','607333333','600234234','513513513','669222222','500123000','600997997','600222222','601555666','502500500','505333333','666888666','664738016','607888888','664738016','501345234','666888666','600001001','663666666','600678900','603888888','793377422','600444444','501001000','668170940','600333333','501100100','501444444','501601701','555555555','500432234','600300200','601123432','601100100','789123456','500100900','604444444','506234234','501234345','601100100','555555555','888222222','505606707','696696696','601293892','600006000','500600800','601333222','555555000','555555111','555555222','555555333','555555444','555555555','555555666','555555777','555555888','555555999','500600800','788788788','606789456','661333333','666888888','601293892','500321123','609000000','500666555','609999999','343434334','501567678','693693693','607666666','601232232','602111222','505222333','608555555','667555555','510510510','600333222','600666000','333333333','111111111','222222222','333333333','444444444','555555555','666666666','777777777','888888888','999999999','888111222','601222222','501010101','691222222','606888888','605555000','604999999','601602603','660111111','662666666','666123456','501111111','661555555','500000011','511000911','501200642','509000000','123456789','697000000','605476270','600333222','606888777','600777777','695666666','691222222','509425159','888777888','669111111','500222333','500789789','600300300','501111111','501456234','501111111','501456234','606888888','601321123','666555555','609777777','788788788','601321123','500666666','692555555','661555555','609123233','787555555','500000999','501111123','504123123','600252202','666999555','607277277','501100200');


			var tKom = false;
			for (var n = 0; n < tablica.length; ++n){
				if(document.recordForm.client_mobile.value.substring(0,tablica[n].length) == tablica[n]){
					tKom = true;
				}
			}
			for (var m = 0; m < tablicaBad.length; ++m){
				if(document.recordForm.client_mobile.value.substring(0,tablicaBad[m].length) == tablicaBad[m]){
					tKom = false;
				}
			}			
		}
		if (wyn == null || tKom == false) {
			validate=false;
			if (object) {object.style.color='#ff0000';}

		}
		else {
			if (object) {object.style.color='#97969B';}
		}

//3. Telefon stacjonarny
reg = /^[0-9]{10}$/;
wyn = (document.recordForm.client_phone.value.match(reg));
var object = document.getElementById('label6');
if (wyn == null && document.recordForm.client_phone.value != '') {
	validate=false;
	if (object) {object.style.color='#ff0000';}
}
else {
	if (object) {object.style.color='#97969B';}
}


//4. Email
reg = /^[a-zA-Z0-9±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬._-]{1,30}@[a-zA-Z0-9±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬]+(\.[a-zA-Z0-9±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬]+)+$/;
wyn = document.recordForm.client_email.value.match(reg);
var object = document.getElementById('label5');
if ((wyn == null) || (!invalid_mail.in_array_invalid(document.recordForm.client_email.value))) {
	validate=false;
	if (object) {object.style.color='#ff0000';}
}
else {
	if (object) {object.style.color='#97969B';}
}



//5. Przetwarzanie danych osobowych
var object = document.getElementById('agreeCh');
var object2 = document.getElementById('l6');
if (document.recordForm.agree_data_processing.checked !== true) {
	validate=false;
	if (object) {object.style.color='#ff0000';};
	if (object2) {object2.style.color='#ff0000';};
}
else {
	if (object) {object.style.color='#97969B';};
	if (object2) {object2.style.color='#97969B';};	
}

return validate;
}



function validateFormStatic3O(AForm) {
	validate=true;
	var errors = '';


	//1. Imię
	reg = /^[a-zA-Z±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬ -]{2,20}$/;
	wyn = document.recordForm.client_name.value.match(reg);
	var object = document.getElementById('label1');

	var tablicaImNaz = new Array('dupa','fuck','chuj','nie podam','sdf','asd','qwe');
	var tIm = true;
	var imF = new String(document.recordForm.client_name.value);
	
	for (var k = 0; k < tablicaImNaz.length; k++){
		if(document.recordForm.client_name.value.indexOf(tablicaImNaz[k]) != -1){
			tIm = false;
		}
	}

	for (var k = 2; k < imF.length; k++){
		if((imF.charAt(k) == imF.charAt(k-1)) && (imF.charAt(k) == imF.charAt(k-2))) {
			tIm = false;
		}
	}		

	if ((wyn == null) || (tIm == false)) {
		validate=false;
		if (object) {object.style.color='#ff0000';}
		errors += '- podaj swoje <span>imię</span><br />';
	} else {
		if (object) {object.style.color='#fff';}
	}


	//2. Nazwisko
	reg = /^[a-zA-Z±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬ -]{2,30}$/;
	wyn = document.recordForm.client_surname.value.match(reg);
	var object = document.getElementById('label2');
	var nazF = document.recordForm.client_surname.value;
	var tNaz = true;

	for (var k = 0; k < tablicaImNaz.length; k++){
		if(document.recordForm.client_surname.value.indexOf(tablicaImNaz[k]) != -1){
			tNaz = false;
		}
	}

	for (var k = 2; k < nazF.length; k++){
		if((nazF.charAt(k) == nazF.charAt(k-1)) && (nazF.charAt(k) == nazF.charAt(k-2))) 
			tNaz = false;
	}	

	if ((wyn == null) || (document.recordForm.client_name.value == document.recordForm.client_surname.value) || (tNaz == false)) {
		validate=false;
		if (object) {object.style.color='#ff0000';}
		errors += '- podaj swoje <span>nazwisko</span><br />';
	} else {
		if (object) {object.style.color='#fff';}
	}



		//3. Telefon 
		reg = /^[0-9]{9}$/;
		wyn = (document.recordForm.client_mobile.value.match(reg));
		var object = document.getElementById('label4');
		var tKom = true;
		var telKom = true;
		if(telKom) {
			var tablica = new Array('50', '51', '53', '600', '601', '602', '603', '604', '605', '606', '607', '608', '609', '660', '661', '662', '663', '664', '665', '6660', '6661', '6662', '6663', '6664', '6665', '6666', '6667', '6668', '6669', '667', '668', '669', '6901', '6902', '6903', '6904', '6905', '6906', '691', '692', '693', '694', '695', '696', '697', '698', '69900', '69901', '69902', '69903', '69904', '69905', '69906', '69907', '69908', '69909', '6991', '69920', '69921', '69922', '69923', '69924', '69925', '69926', '69927', '69928', '69929', '6993', '6994', '6995', '69960', '69961', '69962', '69963', '69964', '69965', '69966', '69967', '69968', '69969', '6997', '6998', '6999', '720', '721', '7220', '7221', '7222', '7223', '7224', '7225', '7226', '7227', '7228', '7229', '723', '724', '725', '726', '7271', '7272', '7273', '7274', '7275', '7276', '7277', '7278', '7279', '7280', '7281', '7282', '7283', '7284', '7285', '7286', '7287', '7288', '7289', '7290', '7291', '780', '781', '782', '7830', '7831', '7832', '7833', '7834', '7835', '7836', '7837', '7838', '7839', '784', '785', '7860', '7861', '7862', '7863', '7864', '7865', '7866', '7867', '7868', '7869', '7870', '7871', '7872', '7873', '7874', '7875', '7876', '7877', '7878', '7879', '788', '789', '790', '791', '792', '793', '794', '7950', '7951', '7952', '7953', '7954', '7955', '7956', '7957', '7958', '7959', '796', '797', '798', '799', '880', '8811', '8818', '882', '8830', '8831', '8832', '8833', '8834', '8835', '8836', '8837', '8838', '8839', '8841', '8842', '8844', '885', '886', '887', '888', '889');
			var tablicaBad = new Array('507222222','691888888','504444333','692333333','509100000','792123456','606234234','602728222','500600500','600400000','793333333','510111222','500444000','784522543','507222222','533111111','721777777','604123123','609123456','792222222','606444444','606600600','505999999','504666666','696666666','695444444','787878787','504333333','600000001','609333333','603454545','602234234','502666666','601140901','605456789','696888888','507100200','600888000','604678678','501123125','501123456','600000001','606555666','781781781','666997997','504123321','500000123','606453453','600011000','666111666','502600600','665456789','666999999','500110110','507100200','601321456','502001001','502444444','500500100','604123123','695444444','502777777','696666666','501001100','504500500','502555444','600232323','666997997','600500100','669669669','511444444','502752179','669669669','508222222','503234567','509169222','501456789','502543543','604222222','505222111','609222333','501333444','503444444','500800900','667123456','667123456','600258258','503444444','600123321','604222222','695444444','601666999','784444444','887888888','889777777','605344444','501002003','880888888','608444444','505505050','601222333','501234123','511555555','604600796','606134505','600234456','698888888','887888888','605111111','505505050','602777777','507123456','602900000','603603603','600001100','608555444','600122222','601321123','604600796','600500600','606444444','323323323','668555555','600555666','666999999','600000001','666999666','505500500','601321123','605143927','505322282','604966787','501456789','500456345','607999999','501345123','502543543','502121119','721800911','601272064','609543858','609355523','504564684','509806389','693301535','509098338','502587281','698993556','604222222','794997190','505222111','889555555','604222222','784444444','601666999','889777777','509586300','880888888','501002003','605344444','608444444','505505050','601222333','501234123','511555555','603678277','600234456','606134505','604600796','501976591','693603209','698888888','887888888','602777777','605111111','505505050','507123456','602900000','663333333','502999869','603603603','600001100','608555444','600122222','666555555','600500600','604600796','601321123','606444444','600555666','323323323','618481595','914553187','668555555','609196368','666999999','600000001','666999666','601321123','505500500','600444333','503606574','664666666','792111111','602123123','505505555','600777777','501444444','604440999','600997543','600100200','603123123','501111222','785692048','696696696','510300200','790260470','604333333','605605605','501123321','500444555','666999333','501000001','505505210','505500555','600200300','603123123','696498107','699666666','667667667','600444555','666888999','600001100','500300200','600601602','693222222','123123123','500328642','511000000','555444333','666123456','500100123','691666666','500777666','500777777','502123123','605123456','122222222','603123123','505222222','602600600','602100100','500300200','666555777','500300200','505231456','600234235','501444444','501100100','600333333','668170940','501001000','600444444','793377422','601876687','693747474','500100200','511066911','665651622','501444444','505505055','500777777','600100100','502505505','600900900','666222222','501500500','533333333','606387951','600222222','606111111','600400500','608888888','600123456','600111222','500000111','507555555','603703135','606656656','600997997','608456789','600500500','725555555','600456789','601666666','794222333','605555555','889889889','665555555','600600500','505000000','500200100','666888777','608777777','500222222','666666666','508124704','601950751','600888888','600666666','510100100','666111222','603444444','600999999','502555555','502503504','609111111','602123456','603333333','692666666','500333333','606777777','508111111','601777777','603444444','504000000','500222222','501545545','666111000','600222111','666345786','602603604','793456789','609222222','605444444','604123123','500444444','600111111','666555444','509000000','501666020','501001001','515555555','602444444','606777777','602603604','667687207','501101101','506555555','721555555','609555555','500500600','500501502','505111111','600555444','600222333','503000000','500111111','500123123','609121835','601753890','668123123','666000000','506222222','501000000','600100000','508508508','609123123','600666666','506355372','510232470','501111111','505456789','665666666','601601601','600600600','693333333','501501501','666555444','600100100','501000111','600500400','502222333','500000000','602333222','608111111','693333333','888888888','502333333','666111111','505505505','606123123','667665667','697111111','602555555','603111111','606555555','505555555','603555555','666111111','608100100','607555555','500232323','503111111','600555555','600222333','604111111','603188688','500500500','501555555','666666666','660222222','512123123','666222333','600000111','601456789','602111111','505555555','600000000','663555666','600200200','606666666','511111111','605234234','509456789','503333333','509222222','503123123','666999111','502000000','600123123','500100100','505666777','502456789','505666888','600111000','601000000','697333333','692111111','600001002','501333333','666999777','500100000','600700800','500600700','500400300','513666777','501502503','697999999','513666777','691111111','604000000','605456345','601555555','601333333','606234123','606345543','607222222','501222222','500000500','603666666','607777777','500555555','667668669','501222222','602222222','603704615','665222222','602666666','600700700','600700700','505506507','601999999','513123234','607333333','600234234','513513513','669222222','500123000','600997997','600222222','601555666','502500500','505333333','666888666','664738016','607888888','664738016','501345234','666888666','600001001','663666666','600678900','603888888','793377422','600444444','501001000','668170940','600333333','501100100','501444444','501601701','555555555','500432234','600300200','601123432','601100100','789123456','500100900','604444444','506234234','501234345','601100100','555555555','888222222','505606707','696696696','601293892','600006000','500600800','601333222','555555000','555555111','555555222','555555333','555555444','555555555','555555666','555555777','555555888','555555999','500600800','788788788','606789456','661333333','666888888','601293892','500321123','609000000','500666555','609999999','343434334','501567678','693693693','607666666','601232232','602111222','505222333','608555555','667555555','510510510','600333222','600666000','333333333','111111111','222222222','333333333','444444444','555555555','666666666','777777777','888888888','999999999','888111222','601222222','501010101','691222222','606888888','605555000','604999999','601602603','660111111','662666666','666123456','501111111','661555555','500000011','511000911','501200642','509000000','123456789','697000000','605476270','600333222','606888777','600777777','695666666','691222222','509425159','888777888','669111111','500222333','500789789','600300300','501111111','501456234','501111111','501456234','606888888','601321123','666555555','609777777','788788788','601321123','500666666','692555555','661555555','609123233','787555555','500000999','501111123','504123123','600252202','666999555','607277277','501100200');
			var tKom = false;
			for (var n = 0; n < tablica.length; ++n){
				if(document.recordForm.client_mobile.value.substring(0,tablica[n].length) == tablica[n]){
					tKom = true;
				}
			}
			for (var m = 0; m < tablicaBad.length; ++m){
				if(document.recordForm.client_mobile.value.substring(0,tablicaBad[m].length) == tablicaBad[m]){
					tKom = false;
				}
			}			
		}
		if (wyn == null || tKom == false) {
			validate=false;
			if (object) {object.style.color='#ff0000';}
 errors += '- podaj swój <span>nr telefonu komórkowego</span><br />';

		}
		else {
			if (object) {object.style.color='#fff';}
		}

//3. Telefon stacjonarny
reg = /^[0-9]{9}$/;
wyn = (document.recordForm.client_phone.value.match(reg));
var object = document.getElementById('label6');
if (wyn == null && document.recordForm.client_phone.value != '') {
	validate=false;
	if (object) {object.style.color='#ff0000';}
}
else {
	if (object) {object.style.color='#fff';}
}


//4. Email
reg = /^[a-zA-Z0-9±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬._-]{1,30}@[a-zA-Z0-9±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬]+(\.[a-zA-Z0-9±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬]+)+$/;
wyn = document.recordForm.client_email.value.match(reg);
var object = document.getElementById('label5');
if ((wyn == null) || (!invalid_mail.in_array_invalid(document.recordForm.client_email.value))) {
	validate=false;
	if (object) {object.style.color='#ff0000';}
	       errors += '- podaj swój <span>adres e-mail</span><br />';

}
else {
	if (object) {object.style.color='#fff';}
}



//5. Przetwarzanie danych osobowych
var object = document.getElementById('agreeCh');
var object2 = document.getElementById('l6');
if (document.recordForm.agree_data_processing.checked !== true) {
	validate=false;
	if (object) {object.style.color='#ff0000';};
	if (object2) {object2.style.color='#ff0000';};
	 errors += '- wyraĽ zgodę na <span>przetwarzanie danych osobowych</span>';
}
else {
	if (object) {object.style.color='#808080';};
	if (object2) {object2.style.color='#808080';};	
}
  //Wy¶wietlanie okienka z komunikatami błędów
    if (!validate) {
        document.getElementById('okienko_komunikat').innerHTML = 'Aby wysłać zgłoszenie:<br /><br />'+errors;
        document.getElementById('okienko').style.display = 'block';
    }

return validate;
}


function validateFormStatic3(AForm) {
	validate=true;

	//1. Imię
	reg = /^[a-zA-Z±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬ -]{2,20}$/;
	wyn = document.recordForm.client_name.value.match(reg);
	var object = document.getElementById('label1');

	var tablicaImNaz = new Array('dupa','fuck','chuj','nie podam','sdf','asd','qwe');
	var tIm = true;
	var imF = new String(document.recordForm.client_name.value);
	
	for (var k = 0; k < tablicaImNaz.length; k++){
		if(document.recordForm.client_name.value.indexOf(tablicaImNaz[k]) != -1){
			tIm = false;
		}
	}

	for (var k = 2; k < imF.length; k++){
		if((imF.charAt(k) == imF.charAt(k-1)) && (imF.charAt(k) == imF.charAt(k-2))) {
			tIm = false;
		}
	}		

	if ((wyn == null) || (tIm == false)) {
		validate=false;
		if (object) {object.style.color='#ff0000';}
	} else {
		if (object) {object.style.color='#97969B';}
	}


	//2. Nazwisko
	reg = /^[a-zA-Z±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬ -]{2,30}$/;
	wyn = document.recordForm.client_surname.value.match(reg);
	var object = document.getElementById('label2');
	var nazF = document.recordForm.client_surname.value;
	var tNaz = true;

	for (var k = 0; k < tablicaImNaz.length; k++){
		if(document.recordForm.client_surname.value.indexOf(tablicaImNaz[k]) != -1){
			tNaz = false;
		}
	}

	for (var k = 2; k < nazF.length; k++){
		if((nazF.charAt(k) == nazF.charAt(k-1)) && (nazF.charAt(k) == nazF.charAt(k-2))) 
			tNaz = false;
	}	

	if ((wyn == null) || (document.recordForm.client_name.value == document.recordForm.client_surname.value) || (tNaz == false)) {
		validate=false;
		if (object) {object.style.color='#ff0000';}
	} else {
		if (object) {object.style.color='#97969B';}
	}



		//3. Telefon 
		reg = /^[0-9]{9}$/;
		wyn = (document.recordForm.client_mobile.value.match(reg));
		var object = document.getElementById('label4');
		var tKom = true;
		var telKom = true;
		if(telKom) {
			var tablica = new Array('50', '51', '53', '600', '601', '602', '603', '604', '605', '606', '607', '608', '609', '660', '661', '662', '663', '664', '665', '6660', '6661', '6662', '6663', '6664', '6665', '6666', '6667', '6668', '6669', '667', '668', '669', '6901', '6902', '6903', '6904', '6905', '6906', '691', '692', '693', '694', '695', '696', '697', '698', '69900', '69901', '69902', '69903', '69904', '69905', '69906', '69907', '69908', '69909', '6991', '69920', '69921', '69922', '69923', '69924', '69925', '69926', '69927', '69928', '69929', '6993', '6994', '6995', '69960', '69961', '69962', '69963', '69964', '69965', '69966', '69967', '69968', '69969', '6997', '6998', '6999', '720', '721', '7220', '7221', '7222', '7223', '7224', '7225', '7226', '7227', '7228', '7229', '723', '724', '725', '726', '7271', '7272', '7273', '7274', '7275', '7276', '7277', '7278', '7279', '7280', '7281', '7282', '7283', '7284', '7285', '7286', '7287', '7288', '7289', '7290', '7291', '780', '781', '782', '7830', '7831', '7832', '7833', '7834', '7835', '7836', '7837', '7838', '7839', '784', '785', '7860', '7861', '7862', '7863', '7864', '7865', '7866', '7867', '7868', '7869', '7870', '7871', '7872', '7873', '7874', '7875', '7876', '7877', '7878', '7879', '788', '789', '790', '791', '792', '793', '794', '7950', '7951', '7952', '7953', '7954', '7955', '7956', '7957', '7958', '7959', '796', '797', '798', '799', '880', '8811', '8818', '882', '8830', '8831', '8832', '8833', '8834', '8835', '8836', '8837', '8838', '8839', '8841', '8842', '8844', '885', '886', '887', '888', '889');
			var tablicaBad = new Array('507222222','691888888','504444333','692333333','509100000','792123456','606234234','602728222','500600500','600400000','793333333','510111222','500444000','784522543','507222222','533111111','721777777','604123123','609123456','792222222','606444444','606600600','505999999','504666666','696666666','695444444','787878787','504333333','600000001','609333333','603454545','602234234','502666666','601140901','605456789','696888888','507100200','600888000','604678678','501123125','501123456','600000001','606555666','781781781','666997997','504123321','500000123','606453453','600011000','666111666','502600600','665456789','666999999','500110110','507100200','601321456','502001001','502444444','500500100','604123123','695444444','502777777','696666666','501001100','504500500','502555444','600232323','666997997','600500100','669669669','511444444','502752179','669669669','508222222','503234567','509169222','501456789','502543543','604222222','505222111','609222333','501333444','503444444','500800900','667123456','667123456','600258258','503444444','600123321','604222222','695444444','601666999','784444444','887888888','889777777','605344444','501002003','880888888','608444444','505505050','601222333','501234123','511555555','604600796','606134505','600234456','698888888','887888888','605111111','505505050','602777777','507123456','602900000','603603603','600001100','608555444','600122222','601321123','604600796','600500600','606444444','323323323','668555555','600555666','666999999','600000001','666999666','505500500','601321123','605143927','505322282','604966787','501456789','500456345','607999999','501345123','502543543','502121119','721800911','601272064','609543858','609355523','504564684','509806389','693301535','509098338','502587281','698993556','604222222','794997190','505222111','889555555','604222222','784444444','601666999','889777777','509586300','880888888','501002003','605344444','608444444','505505050','601222333','501234123','511555555','603678277','600234456','606134505','604600796','501976591','693603209','698888888','887888888','602777777','605111111','505505050','507123456','602900000','663333333','502999869','603603603','600001100','608555444','600122222','666555555','600500600','604600796','601321123','606444444','600555666','323323323','618481595','914553187','668555555','609196368','666999999','600000001','666999666','601321123','505500500','600444333','503606574','664666666','792111111','602123123','505505555','600777777','501444444','604440999','600997543','600100200','603123123','501111222','785692048','696696696','510300200','790260470','604333333','605605605','501123321','500444555','666999333','501000001','505505210','505500555','600200300','603123123','696498107','699666666','667667667','600444555','666888999','600001100','500300200','600601602','693222222','123123123','500328642','511000000','555444333','666123456','500100123','691666666','500777666','500777777','502123123','605123456','122222222','603123123','505222222','602600600','602100100','500300200','666555777','500300200','505231456','600234235','501444444','501100100','600333333','668170940','501001000','600444444','793377422','601876687','693747474','500100200','511066911','665651622','501444444','505505055','500777777','600100100','502505505','600900900','666222222','501500500','533333333','606387951','600222222','606111111','600400500','608888888','600123456','600111222','500000111','507555555','603703135','606656656','600997997','608456789','600500500','725555555','600456789','601666666','794222333','605555555','889889889','665555555','600600500','505000000','500200100','666888777','608777777','500222222','666666666','508124704','601950751','600888888','600666666','510100100','666111222','603444444','600999999','502555555','502503504','609111111','602123456','603333333','692666666','500333333','606777777','508111111','601777777','603444444','504000000','500222222','501545545','666111000','600222111','666345786','602603604','793456789','609222222','605444444','604123123','500444444','600111111','666555444','509000000','501666020','501001001','515555555','602444444','606777777','602603604','667687207','501101101','506555555','721555555','609555555','500500600','500501502','505111111','600555444','600222333','503000000','500111111','500123123','609121835','601753890','668123123','666000000','506222222','501000000','600100000','508508508','609123123','600666666','506355372','510232470','501111111','505456789','665666666','601601601','600600600','693333333','501501501','666555444','600100100','501000111','600500400','502222333','500000000','602333222','608111111','693333333','888888888','502333333','666111111','505505505','606123123','667665667','697111111','602555555','603111111','606555555','505555555','603555555','666111111','608100100','607555555','500232323','503111111','600555555','600222333','604111111','603188688','500500500','501555555','666666666','660222222','512123123','666222333','600000111','601456789','602111111','505555555','600000000','663555666','600200200','606666666','511111111','605234234','509456789','503333333','509222222','503123123','666999111','502000000','600123123','500100100','505666777','502456789','505666888','600111000','601000000','697333333','692111111','600001002','501333333','666999777','500100000','600700800','500600700','500400300','513666777','501502503','697999999','513666777','691111111','604000000','605456345','601555555','601333333','606234123','606345543','607222222','501222222','500000500','603666666','607777777','500555555','667668669','501222222','602222222','603704615','665222222','602666666','600700700','600700700','505506507','601999999','513123234','607333333','600234234','513513513','669222222','500123000','600997997','600222222','601555666','502500500','505333333','666888666','664738016','607888888','664738016','501345234','666888666','600001001','663666666','600678900','603888888','793377422','600444444','501001000','668170940','600333333','501100100','501444444','501601701','555555555','500432234','600300200','601123432','601100100','789123456','500100900','604444444','506234234','501234345','601100100','555555555','888222222','505606707','696696696','601293892','600006000','500600800','601333222','555555000','555555111','555555222','555555333','555555444','555555555','555555666','555555777','555555888','555555999','500600800','788788788','606789456','661333333','666888888','601293892','500321123','609000000','500666555','609999999','343434334','501567678','693693693','607666666','601232232','602111222','505222333','608555555','667555555','510510510','600333222','600666000','333333333','111111111','222222222','333333333','444444444','555555555','666666666','777777777','888888888','999999999','888111222','601222222','501010101','691222222','606888888','605555000','604999999','601602603','660111111','662666666','666123456','501111111','661555555','500000011','511000911','501200642','509000000','123456789','697000000','605476270','600333222','606888777','600777777','695666666','691222222','509425159','888777888','669111111','500222333','500789789','600300300','501111111','501456234','501111111','501456234','606888888','601321123','666555555','609777777','788788788','601321123','500666666','692555555','661555555','609123233','787555555','500000999','501111123','504123123','600252202','666999555','607277277','501100200');

			var tKom = false;
			for (var n = 0; n < tablica.length; ++n){
				if(document.recordForm.client_mobile.value.substring(0,tablica[n].length) == tablica[n]){
					tKom = true;
				}
			}
			for (var m = 0; m < tablicaBad.length; ++m){
				if(document.recordForm.client_mobile.value.substring(0,tablicaBad[m].length) == tablicaBad[m]){
					tKom = false;
				}
			}			
		}
		if (wyn == null || tKom == false) {
			validate=false;
			if (object) {object.style.color='#ff0000';}

		}
		else {
			if (object) {object.style.color='#97969B';}
		}

//3. Telefon stacjonarny
reg = /^[0-9]{9}$/;
wyn = (document.recordForm.client_phone.value.match(reg));
var object = document.getElementById('label6');
if (wyn == null && document.recordForm.client_phone.value != '') {
	validate=false;
	if (object) {object.style.color='#ff0000';}
}
else {
	if (object) {object.style.color='#97969B';}
}


//4. Email
reg = /^[a-zA-Z0-9±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬._-]{1,30}@[a-zA-Z0-9±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬]+(\.[a-zA-Z0-9±ćęłńó¶żĽˇĆĘŁŃÓ¦Ż¬]+)+$/;
wyn = document.recordForm.client_email.value.match(reg);
var object = document.getElementById('label5');
if ((wyn == null) || (!invalid_mail.in_array_invalid(document.recordForm.client_email.value))) {
	validate=false;
	if (object) {object.style.color='#ff0000';}
}
else {
	if (object) {object.style.color='#97969B';}
}



//5. Przetwarzanie danych osobowych
var object = document.getElementById('agreeCh');
var object2 = document.getElementById('l6');
if (document.recordForm.agree_data_processing.checked !== true) {
	validate=false;
	if (object) {object.style.color='#ff0000';};
	if (object2) {object2.style.color='#ff0000';};
}
else {
	if (object) {object.style.color='#97969B';};
	if (object2) {object2.style.color='#97969B';};	
}

return validate;
}



function dymek(t, a){
	if(t == "aaa"){
	var text = "<div style='width:557px; height:10px;background:url(../../_iMg/site/formularze3krokowe/do-top2.gif) no-repeat top center;margin:0;padding:0;position:relative;top:3px;'> </div><div style='width:527px;background:url(../../_iMg/site/formularze3krokowe/backg2.gif) repeat-y top center;color:#66646b;padding:5px 15px;margin:0;font-size:9px;text-align:left;font-family:sans-serif;'>1. Dane osobowe Użytkownika mog± być przetwarzane zgodnie z ustaw± z dnia 29 sierpnia 1997 r. o ochronie danych osobowych (tj. Dz.U.z 2002 roku, Nr 101, poz. 926 ze zm.), wył±cznie po wyrażeniu przez Użytkownika zgody na takie przetwarzanie i wykorzystanie. Udzielenie zgody następuje poprzez zaznaczenie odpowiedniego okna w formularzu rejestracyjnym.<br />2. Zgoda Użytkownika na przetwarzanie danych osobowych i wykorzystywanie udzielana jest dla wewnętrznych celów statystycznych i marketingowych na rzecz Open Finance SA oraz jednostek powi±zanych Getin Noble Bank SA, Noble Funds SA, Tax Care SA oraz Home Broker SA.<br />3. Administratorem danych osobowych Użytkownika jest Open Finance SA, ul. Domaniewska 39, 02-672 Warszawa.<br />4. Każdy Użytkownik, którego dane osobowe s± przetwarzane ma prawo:<br />a) wgl±du do swoich danych, ich uzupełnienia, uaktualnienia, sprostowania, czasowego lub stałego wstrzymania ich przetwarzania lub ich usunięcia, Skorzystanie z prawa uzupełnienia, uaktualnienia, sprostowania, czasowego lub stałego wstrzymania ich przetwarzania oraz domagania się usunięcia danych z systemu serwisu jest realizowane poprzez wysłanie do administratora danych (kontakt@open.pl) poczt± elektroniczn± stosownego ż±dania wraz z podaniem imienia i nazwiska Użytkownika. Skorzystanie z prawa domagania się usunięcia danych z systemu serwisu jest równoznaczne z wyrejestrowaniem się Użytkownika z systemu serwisu. Administrator może jednak pozostawić w zbiorze imię lub imiona i nazwisko Użytkownika oraz numer PESEL lub adres wył±cznie w celu uniknięcia ponownego wykorzystania danych tej osoby, w celach objętych sprzeciwem.<br />b) uzyskać na pi¶mie w terminie 30 dni, w powszechnie zrozumiałej formie, tre¶ć tych danych oraz następuj±cych informacji:<br />- daty pierwszego wprowadzenia danych tego Użytkownika,<br />- Ľródła pochodzenia danych Użytkownika,<br />- w jaki sposób dane s± udostępniane oraz jakim uprawnionym podmiotom, <br />- kiedy i w jakim zakresie dane zostały udostępnione uprawnionym podmiotom.</div><div style='width:557px; height:16px;background:url(../../_iMg/site/formularze3krokowe/do-bottom.gif) no-repeat bottom center;margin:0;padding:0;'>  </div>";
	var v = 330;
	var h = 148;
	a.onmouseover = getPosition;
	a.onmousemove = getPosition;
	a.onmouseout = hideNotes;
	}else{
	var text = "<div style='width:557px; height:10px;background:url(../../_iMg/site/formularze3krokowe/do-top2.gif) no-repeat top center;margin:0;padding:0;position:relative;top:3px;'> </div><div style='width:527px;background:url(../../_iMg/site/formularze3krokowe/backg2.gif) repeat-y top center;color:#66646b;padding:5px 15px;font-size:9px;text-align:left;font-family:sans-serif;'>Użytkownik przez zaznaczenie odpowiedniego okna w formularzu rejestracyjnym, może odmówić lub wyrazić zgodę na otrzymywanie informacji handlowej drog± elektroniczn±, zgodnie z ustaw± z dnia 26.08.2002 r. o ¶wiadczeniu usług drog± elektroniczn± (Dz.U. z 2002 roku, Nr 144, poz. 1204). W przypadku, gdy Użytkownik wyraził zgodę na otrzymywanie informacji handlowej drog± elektroniczn±, ma on prawo w każdym czasie ż±dać usunięcia niniejszej zgody przez administratora danych. Skorzystanie z prawa domagania się usunięcia zgody na otrzymanie informacji handlowej jest realizowane poprzez wysłanie do administratora danych (kontakt@open.pl) poczt± elektroniczn± stosownego ż±dania wraz z podaniem imienia i nazwiska użytkownika.</div><div style='width:557px; height:16px;background:url(../../_iMg/site/formularze3krokowe/zgod-bottom.gif) no-repeat bottom center;margin:0;padding:0;'> </div>";	
	var v = 330;
	var h = 148;	
	a.onmouseover = getPosition2;
	a.onmousemove = getPosition2;
	a.onmouseout = hideNotes;
	
	}
	var ancor = a;
	var notes = document.getElementById("dymekDiv");

	if(notes==null){
		notes = document.createElement("div");
		notes.id = "dymekDiv";
		notes.style.display = "none";
		document.body.appendChild(notes);
	}

	function getPosition(e){
		var IE = document.all?true:false				
	
	  	if (IE) {
    		mouseX = event.clientX + document.documentElement.scrollLeft;
		    mouseY = event.clientY + document.documentElement.scrollTop;
	  	}
	    else {
    		mouseX = e.pageX;
    		mouseY = e.pageY;
	  	}
	
   	if(navigator.appVersion.indexOf('MSIE 6') >= 0){
   		showNotesIe(mouseX, mouseY, 305, 148);}
   	else{
		showNotesBrows(mouseX, mouseY, 305, 148);}

	}
	
	function getPosition2(e){
		var IE = document.all?true:false				
	
	  	if (IE) {
    		mouseX = event.clientX + document.documentElement.scrollLeft;
		    mouseY = event.clientY + document.documentElement.scrollTop;
	  	}
	    else {
    		mouseX = e.pageX;
    		mouseY = e.pageY;
	  	}
	
   	if(navigator.appVersion.indexOf('MSIE 6') >= 0){
   		showNotesIe(mouseX, mouseY, 125, 240);}
   	else{
		showNotesBrows(mouseX, mouseY, 125, 240);}

	}
	
	function showNotesIe(x,y, v, h){
		var scrOfX = 0, scrOfY = 0;
  		if( typeof( window.pageYOffset ) == 'number' ) {
   		scrOfY = window.pageYOffset;
    		scrOfX = window.pageXOffset;
    		} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
   		scrOfY = document.body.scrollTop;
                scrOfX = document.body.scrollLeft;
                } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
                scrOfY = document.documentElement.scrollTop;
                scrOfX = document.documentElement.scrollLeft;
       		}
    	
	       var myWidth = 0, myHeight = 0;
  	       if( typeof( window.innerWidth ) == 'number' ) {
               myWidth = window.innerWidth;
               myHeight = window.innerHeight;
               } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
               myWidth = document.documentElement.clientWidth;
               myHeight = document.documentElement.clientHeight;
               } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
               myWidth = document.body.clientWidth;
               myHeight = document.body.clientHeight;
   	       }
	
		var newX = x + scrOfX;
		var newY = y + scrOfY;
		var ponizejX = myWidth - notes.offsetWidth;
		var ponizejY = myHeight - notes.offsetHeight;		

               /* if(x > ponizejX){
                newX = x + scrOfX - notes.offsetWidth;
                }

		if(y > ponizejY){
		newY = y + scrOfY - notes.offsetHeight;
		}*/

		showNotes (newX, newY, v, h);
	}

	function showNotesBrows(x,y,v,h){
		
		/* Tu znalazlem : http://www.howtocreate.co.uk/tutorials/javascript/browserwindow */
		mastaHakaPoprawka = 10;
		viewWidth = document.documentElement.clientWidth; 
		viewHeight = document.documentElement.clientHeight;
		noteWidth = notes.offsetWidth;
		noteHeight = notes.offsetHeight;			
		diffX = x + noteWidth - document.documentElement.scrollLeft - viewWidth + mastaHakaPoprawka; 
		diffY = y + noteHeight - document.documentElement.scrollTop - viewHeight + mastaHakaPoprawka; 
		newX = x;
		newY = y;
		
		/*if (diffX > 0) {
			newX -= diffX;
		}
		
		if (diffY > 0) {
			newY -= diffY;
		}
		*/
		showNotes (newX, newY, v, h);
	}
	
	function showNotes(x,y,v,h){
		notes.style.display = "block";
		notes.style.position = "absolute";
		notes.style.top = ( y - v ) + "px";
		notes.style.left = ( x - h ) + "px";
		notes.style.zIndex = 1000;
		notes.innerHTML = text;
	}
	
	function hideNotes(){
		notes.style.display = "none";
		notes.innerHTML = "";
	}
}













