// Code written by Natalie V. Zubar, revised by Willy De Roeck. Translate by kwebbel.net
// Author claims no responsibility for esoteric method of past-life calculations and its results.
// If you decided to use it you were a thief in your past life and you will cheat forever!


function mod(x, x_div){


    for (var i=x; i>=x_div; i -= x_div);


    return i;


}





function checkNum(str, min, max) {


    if (str == "") {


        alert("Pole nie moze byc puste!");


        return false;    }





    for (var i = 0; i < str.length; i++) {


        var ch = str.substring(i, i + 1);


        if (ch < "0" || ch > "9") {


            alert("Numer, prosze!");


            return false;


        }


    }





    var val = parseInt(str, 10);


    if ((val < min) || (val > max)) {


        alert("Wpisz numer od 1 do "+max+".");


        return false;


    }





    return true;


}











function pastlife(form){


	var sex; 





//Check for a valid date			





     if ((checkNum(form.day.value,1,31)) && (checkNum(form.month.value,1,12)) &&


        (checkNum(form.year.value,0,99)))  {	


	var day = parseInt(form.day.value,10);


	var cur_month = parseInt(form.month.value,10);


	var cur_year = parseInt(form.year.value,10);





// define past life sex





	if (cur_month-2*(parseInt(cur_month/2)) == 0){


		if (cur_year - 4*(parseInt(cur_year/4)) == 0)


			sex = 1; else sex = 2} 


  	      else if (cur_year - 4*(parseInt(cur_year/4)) == 0)


			sex = 0; else sex = 1};











		msgWindow=window.open("","diagnosis","width=900,height=700,screenX=50,screenY=50,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no");
	msgWindow.document.open(); 
	msgWindow.document.bgColor="black"; 
	msgWindow.document.writeln("<BODY BACKGROUND=starsglow1.gif>");
	msgWindow.document.write("<div align=center><img src=http://users.pandora.be/gad/re/uvijn.jpg></div>");	
	msgWindow.document.writeln("<FONT Color=red Face=Arial><B><I>Diagnosis:</I></B></FONT><HR>");	
	msgWindow.document.write("<FONT Color=white Face=Arial>"); 
	msgWindow.document.write("Nie wiem jak to przyjmiesz, ale zyles jako ");








	var yearString = "ZYXWOTZYQVUTSXWVNZYXPQTZRWVUMYXWOTZYQVUTSXWVNZYXPUTZRWVUMYXWOTZYQVUTSXWVNZYXPUTZRWVUMYXWOTZYQVUTSXWV";





	var ys; ys = yearString.charAt(cur_year);





	var p1; var p2; var place;


	if (sex == 1){





		msgWindow.document.write("<FONT color=yellow>mezczyzna</FONT>");











	//for males	











	var indexString = "VTWZXYURPSOMNQYWZVTUXOMPSQRNWUXTYZVMRNQOPSUZVYWXTRPSOMNQTYUXVWZPNQMRSOYWZVTUXNSORPQM";





	





	var profString = "CDBADCABBACD";





		





	p1 = profString.charAt(cur_month-1);





	





	for (i=0;i<=6;i++){





		if (ys == indexString.charAt((cur_month-1)*7+i)) break}











	p2 = i+1;














	//PLACE OF BIRTH Male














	if (p2 == 1){





		if (day < 3) place=5;





		else if (day < 10) place=46;





		else if (day < 17) place=37;





		else if (day < 24) place=48;





		else if (day < 31) place=65;





		else place=6};











	if (p2 == 2){





		if (day < 8) place=28;





		else if (day < 15) place=58;





		else if (day < 22) place=10;





		else if (day < 29) place=38;





		else place=11};











	if (p2 == 3){





		if (day < 4) place=29;





		else if (day < 11) place=53;





		else if (day < 18) place=30;





		else if (day < 25) place=69;





		else place=1};











	if (p2 == 4){





		if (day < 7) place=74;





		else if (day < 14) place=4;





		else if (day < 21) place=47;





		else if (day < 28) place=20;





		else place=26};











	if (p2 == 5){





		if (day < 5) place=23;





		else if (day < 12) place=21;





		else if (day < 19) place=44;





		else if (day < 26) place=16;





		else place=43};











	if (p2 == 6){





		if (day < 6) place=34;





		else if (day < 13) place=27;





		else if (day < 20) place=14;





		else if (day < 27) place=41;





		else place=50};











	if (p2 == 7){





		if (day < 2) place=73;





		else if (day < 9) place=63;





		else if (day < 16) place=66;





		else if (day < 23) place=54;





		else if (day < 30) place=61;





		else place=72}





}





	else {





	//for females











   		msgWindow.document.write("<FONT color=yellow>kobieta</FONT>");











	var indexString = "OMPSQRNYWZVTUXSQMPNORUZVYWXTQORNSMPZXTWUVYOMPSQRNXVYUZTWNSORPQMVTWZXYUSQMPNORTYUXVWZ";





	





	var profString = "ACDBCABDDBCA";





		





	p1 = profString.charAt(cur_month-1);





	





	for (i=0;i<=6;i++){





		if (ys == indexString.charAt((cur_month-1)*7+i)) break}











	p2 = i+1;





 


		//PLACE OF BIRTH Female











	if (p2 == 1){





		if (day < 3) place=22;





		else if (day < 10) place=17;





		else if (day < 17) place=36;





		else if (day < 24) place=59;





		else if (day < 31) place=51;





		else place=9};











	if (p2 == 2){





		if (day < 8) place=40;





		else if (day < 15) place=2;





		else if (day < 22) place=64;





		else if (day < 29) place=56;





		else place=35};











	if (p2 == 3){





		if (day < 4) place=19;





		else if (day < 11) place=67;





		else if (day < 18) place=13;





		else if (day < 25) place=32;





		else place=31};











	if (p2 == 4){





		if (day < 7) place=15;





		else if (day < 14) place=49;





		else if (day < 21) place=12;





		else if (day < 28) place=39;





		else place=33};











	if (p2 == 5){





		if (day < 5) place=42;





		else if (day < 12) place=60;





		else if (day < 19) place=24;





		else if (day < 26) place=3;





		else place=52};











	if (p2 == 6){





		if (day < 6) place=18;





		else if (day < 13) place=25;





		else if (day < 20) place=57;





		else if (day < 27) place=45;





		else place=62};











	if (p2 == 7){





		if (day < 2) place=8;





		else if (day < 9) place=55;





		else if (day < 16) place=70;








		else if (day < 23) place=68;





		else if (day < 30) place=71;





		else place=7}





}





	





	var pro; pro=p1+p2;











	msgWindow.document.write(" w swojej poprzedniej ziemskiej egzystencji." + "<BR>");





	





	//msgWindow.document.write("month=" + cur_month + " place=" + place + " ys=" + ys + " pro=" + pro + "<BR>");











	





	//countries data





	var countryString="";





	if (place == 1) countryString="Alaska"; 

	else if (place == 2) countryString="Yukon"; 

	else if (place == 3) countryString=" Canada"; 

	else if (place == 4) countryString="Ontario"; 

	else if (place == 5) countryString="Quebeck";

	else if (place == 6) countryString="Labrador"; 

	else if (place == 7) countryString="Newfoundland"; 

	else if (place == 8) countryString="Greenland"; 

	else if (place == 9) countryString="USA North-West"; 

	else if (place == 10) countryString="USA South-West";

	else if (place == 11) countryString="USA North-Center"; 

	else if (place == 12) countryString="USA South-Center"; 

	else if (place == 13) countryString="USA North-East"; 

	else if (place == 14) countryString="USA South-East"; 

	else if (place == 15) countryString="Arktyka"; 

	else if (place == 16) countryString="Szkocja"; 

	else if (place == 17) countryString="Anglia"; 

	else if (place == 18) countryString="Centralna Anglia"; 

	else if (place == 19) countryString="Rumunia";

	else if (place == 20) countryString="Czechy"; 

	else if (place == 21) countryString="Irlandia"; 

	else if (place == 22) countryString="Europa pólnocna"; 

	else if (place == 23) countryString="Francja"; 

	else if (place == 24) countryString="Hiszpania"; 

	else if (place == 25) countryString="Portugalia"; 

	else if (place == 26) countryString="Austria"; 

	else if (place == 27) countryString="Niemcy"; 

	else if (place == 28) countryString="Ukraina"; 

	else if (place == 29) countryString="Wlochy"; 

	else if (place == 30) countryString="Turcja"; 

	else if (place == 31) countryString="Rosja"; 

	else if (place == 32) countryString="Syberia"; 

	else if (place == 33) countryString="Czeczenia"; 

	else if (place == 34) countryString="Grecja"; 

	else if (place == 35) countryString="Iran"; 

	else if (place == 36) countryString="Arabia Saudyjska"; 

	else if (place == 37) countryString="Polska"; 

	else if (place == 38) countryString="Wegry"; 

	else if (place == 39) countryString="Jugoslawia"; 

	else if (place == 40) countryString="Albania"; 

	else if (place == 41) countryString="Bulgaria"; 

	else if (place == 42) countryString="Izrael"; 

	else if (place == 43) countryString="Tybet"; 

	else if (place == 44) countryString="Birma"; 

	else if (place == 45) countryString="Tailandia"; 

	else if (place == 46) countryString="Chiny"; 

	else if (place == 47) countryString="Mongolia"; 

	else if (place == 48) countryString="Tajwan"; 

	else if (place == 49) countryString="Korea"; 

	else if (place == 50) countryString="Japania"; 

	else if (place == 51) countryString="Indonezja"; 

	else if (place == 52) countryString="Sumatra"; 

	else if (place == 53) countryString="Borneo"; 

	else if (place == 54) countryString="Filipiny"; 

	else if (place == 55) countryString="Nowa Gwinea"; 

	else if (place == 56) countryString="Australia"; 

	else if (place == 57) countryString="Timor"; 

	else if (place == 58) countryString="Karaiby";

	else if (place == 59) countryString="Antarktyda"; 

	else if (place == 60) countryString="Nowa Zelandia"; 

	else if (place == 61) countryString="Chile"; 

	else if (place == 62) countryString="Oceania";

	else if (place == 63) countryString="Indie"; 

	else if (place == 64) countryString="Centralne Indie"; 

	else if (place == 65) countryString="Pd. Indie"; 

	else if (place == 66) countryString="Egipt"; 

	else if (place == 67) countryString="Pn. Afryka"; 

	else if (place == 68) countryString="Gabon"; 

	else if (place == 69) countryString="Sahara"; 

	else if (place == 70) countryString="Pd. Afryka"; 

	else if (place == 71) countryString="Meksyk"; 

	else if (place == 72) countryString="Cypr";

	else if (place == 73) countryString="Egipt"; 

	else countryString="Bialorus";











	//year of past life calculation





	





	var ys1;











	     if (ys == "M") var mString = "185014001125102507000700180014751800130011751100";





	else if (ys == "N") var mString = "092518750425185017501350080006750825182515250875";





	else if (ys == "O") var mString = "172516750875070013251825177508001075165009001625";





	else if (ys == "P") var mString = "145005001800100008000550165017001325072511001550";





	else if (ys == "Q") var mString = "100014500950042517001525135011001625122517251025";





	else if (ys == "R") var mString = "097513751200127504500825137513500700092509250725";





	else if (ys == "S") var mString = "122506251250142509251150147507501300157506001125";





	else if (ys == "T") var mString = "117514001825127517500975185011501600187515251850";





	else if (ys == "U") var mString = "090009000775105013751675107515000825072510251500";





	else if (ys == "V") var mString = "122507501825140011501325167512751475160009501200";





	else if (ys == "W") var mString = "057516750775047517001450085017251775102517750400";





	else if (ys == "X") var mString = "180015751425157515501200160012001300037507751250";





	else if (ys == "Y") var mString = "107512501000165009501825155014250800175010750875";





	else                    var mString = "097505251175085015751125177513500700065013501050";





	





	ys1 = mString.charAt((cur_month-1)*4); 





	if (ys1 == "0") ys1 = ""; {





	ys1 += mString.charAt((cur_month-1)*4+1);





		ys1 += mString.charAt((cur_month-1)*4+2); ys1 += mString.charAt((cur_month-1)*4+3)} ;





		





	//past life profession











           if (pro == "A1") var proString = "robotnik, kanalarz";

	else if (pro == "A2") var proString = "filozof, mysliciel";

	else if (pro == "A3") var proString = "projektant, inzynier, rzemieslnik";

	else if (pro == "A4") var proString = "chemik, alchemik, wytworca trucizn";

	else if (pro == "A5") var proString = "marynarz, kucharz, ciesla";

	else if (pro == "A6") var proString = "jubiler, zegarmistrz";

	else if (pro == "A7") var proString = "znachor, chirurg, zielarz";

	else if (pro == "C1") var proString = "stajenny, pastuch, lesnik";

	else if (pro == "C2") var proString = "wodz, major, kaptain";

	else if (pro == "C3") var proString = "bibliotekarz, kolekcjoner, mecenas sztuki";

	else if (pro == "C4") var proString = "clown, muzyk, poeta, tancerz";

	else if (pro == "C5") var proString = "marynarz, kupiec, biznesmen, oszust";

	else if (pro == "C6") var proString = " pszczelarz, samotny mysliwy";

	else if (pro == "C7") var proString = "pisarz, dramaturg, czarownik";

	else if (pro == "B1") var proString = "budowlaniec, ciesla, zdun";

	else if (pro == "B2") var proString = "naukowiec, astrolog, astronom";

	else if (pro == "B3") var proString = "rzemieslnik, mechanik";

	else if (pro == "B4") var proString = "wojownik, mysliwy, rybak, poborca podatkowy";

	else if (pro == "B5") var proString = "artysta, magik, miglanc";

	else if (pro == "B6") var proString = "zeglarz, szewc";

	else if (pro == "B7") var proString = "architekt, budowniczy";

	else if (pro == "D1") var proString = "trener, kolekcjoner motyli";

	else if (pro == "D2") var proString = "pisarz, dziennikarz, zakonnik";

	else if (pro == "D3") var proString = "farmer, krawiec";

	else if (pro == "D4") var proString = "dramaturg, dyrector, muzyk, bard";

	else if (pro == "D5") var proString = "bankier, utracjusz, oszust, sedzia";

	else if (pro == "D6") var proString = "nauczyciel, matematyk,geolog";

	else var proString = "tancerz, spiewak, aktor";





	 





	//characteristics




	if (p2 == 1) {

		if (place-2*(parseInt(place/2)) > 0) var charString = "Osoba z predyspozycjami szefa. Taka co jezeli jest zebrakiem - to szybko zostaje krolem zebrakow";

		else var charString = "Rewolucyjny typ. Inspiruje wszedzie zmiany -w politice, biznesie, religi, wlasnej kuchni. Zawsze przewodzi."

		};

	if (p2 == 2) {

		if (place-2*(parseInt(place/2)) > 0) var charString = "Artystyczna osobowosc, zawsze zmienia brzydkie w piekne, szare w kolorowe. Poza tym zawsze wszystko na NIE.";

		else var charString = "Cicha i spokojna osoba. Ma talent tworczy, czeka na spokojny czas. Tylko czasem cos wyprowadza z rownowagi."

		};



	if (p2 == 3) {

		if (place-2*(parseInt(place/2)) > 0) var charString = "Wieczny poszukiwacz prawdy i sprawiedliwosci. Urodzony za wczesnie. I o tym wie.";

		else var charString = "Milosnik podrozy, przygody, dodatkowe zajecia: szpieg lub detektyw."

		};



	if (p2 == 4) {

		if (place-2*(parseInt(place/2)) > 0) var charString = "Niesamowicie praktyczna osoba. Materialista w kazdym calu. Jezeli komus zle to jego wina.";

		else var charString ="Milosnik podrozy, przygody, dodatkowe zajecia: szpieg lub detektyw." 

		};



	if (p2 == 5) {

		if (place-2*(parseInt(place/2)) > 0) var charString = "Artystyczna dusza, mistyk, dobrze oplacany. Najchetniej w sluzbie ciemnych mocy";

		else var charString = "Naturalny talent psychologa, wie jak osiagnac cel. Opanowany w kazdej sytuacji."

		};



	if (p2 == 6) {

		if (place-2*(parseInt(place/2)) > 0) var charString = "Zywy ogien. Olbrzymi talent do wcielania sie w inne postacie w zyciu i w sztuce."	

		else var charString = "Amator nowinek i nowych sytuacji. Uwielbia zmiany w zyciu, milosci i seksie"

		};



	if (p2 == 7) {

		if (place-2*(parseInt(place/2)) > 0) var charString = "Zimny mozg naukowca. Nikt go nie rozumie ale wszyscy go szanuja";

		else var charString = "Nigdy nie powie TAK, lub NIE. Udaje naiwnego, ale wie co robi. Lubiany, ale bez przesady."

		};



	// past life lesson



	if (p2 == 1){

 		     if (day < 12) var lesString = "Twoja lekcja --  postaraj sie robic to co lubisz a nie to co musisz.";

		else if (day < 22) var lesString = "Twoja lekcja -- zajmij sie badaniem umyslu - swiat w ktorym teraz jestes to tylko ok. 100 lat .";

		             else  var lesString = "Twoja lekcja -- pomagaj innym - przyniesie ci to radosc. Tylko dobro mozna dawac w nieograniczonej ilosci"};

	if (p2 == 2) {

		     if (day < 12) var lesString = "Twoja lekcja -- postepuj zgodnie z intuicja to najlepsza droga w twoim zyciu.";

		else if (day < 22) var lesString = "Twoja lekcja -- Usmiechaj sie i czyn wkolo piekno. Nie znajdziesz wiecej niz jest w tobie";

		              else var lesString = "Twoja lekcja -- Mysl o innych. Nie dostaniesz wiecej niz sam dales."};

	if (p2 == 3) {

		     if (day < 12) var lesString = "Twoja lekcja -- Nie wierz w to, ze sam decydujesz o wszystkim. Trzesienie ziemi nie jest sprawiedliwe ani niesprawiedliwe - po prostu jest nagle.";

		else if (day < 22) var lesString = "Twoja lekcja -- Szukaj mistrza ktory nauczy cie jak zyc wlasciwie.";

		              else var lesString = "Twoja lekcja -- Urodziles sie ponownie aby splacic dlug pomagajac innym."};

	if (p2 == 4) {

		     if (day < 12) var lesString = "Twoja lekcja -- Masz cel. Przynies troche radosci bezbronnym slabym kobietom";

		else if (day < 22) var lesString = "Twoja lekcja -- Wszystko co osiagasz jest bez znaczenia. Kazdy kwiat jest piekniejszy od tego czym sie chwalisz. Przytul bezdomne biedne zwierze a twoja misja bedzie spelniona";

		              else var lesString = "Twoja lekcja -- Jedna zla mysl zabija 100 dobrych uczynkow. Naucz sie tego, bo zawsze bedziesz sie rodzil z tego samego powodu"};

	if (p2 == 5) {

		     if (day < 12) var lesString = "Twoj problem -- Zazdrosc. Chcesz miec wiecej?. Zrezygnuj a poczujesz sie lepiej  ";

		else if (day < 22) var lesString = "Twoj problem -- Kontrola wszystkiego. To tak jak gdyby zagarnac wode w jedna strone wanny. Zawsze poziom sie wyrowna. Pomysl o tym.";

		              else var lesString = "Twoj problem -- Brak pieniedzy. Nieprzypadkowo los uczynil cie biednym. To konsekwencja twoich poprzednich inkarnacji."};

	if (p2 == 6) {

		     if (day < 12) var lesString = "Rozejrzyj sie. Swiat pelen jest biednych i chorych istot. Musicie pomoc sobie sami.";

		else if (day < 22) var lesString = "Twoja lekcja -- Nie wiesz jaki jest CEL, a jaka DROGA. Wykorzystaj szanse w obecnym zyciu bo drugiej moze nie byc.";

		              else var lesString = "Twoja lekcja -- Nie ma wroga nie ma wojny. Zrezygnuj z posiadania rzeczy niemozliwych do osiagniecia - bedziesz szczesliwy"};

	if (p2 == 7) {

		     if (day < 12) var lesString = "Twoja lekcja -- W konsekwqencji poprzednich inkarnacji musisz pracować duzo aby otrzymac niewiele.";

		else if (day < 22) var lesString = "Twoja lekcja -- Wszystko ma poczatek i koniec. Mija bol, smutek i szczescie. Zostaje tylko dobro podarowane innym.";

		              else var lesString = "Twoja lekcja -- Swiat to ty!. Nie znajdzie wiecej niz jest w tobie. Jezeli jestes dobry spotkasz dobro - jezeli zly, to sam rozumiesz."};	


msgWindow.document.write("<p>Urodziles sie gdzies na terytorium obecnego panstwa  " + countryString.fontcolor("yellow"));

	msgWindow.document.write(" prawdopodobnie ok. roku " + ys1.fontcolor("yellow") + ".<p>");

	msgWindow.document.write("Twoje wykonywane zajecie " + proString.fontcolor("yellow") + ".<p><HR><p>");

	msgWindow.document.write("<p>Twoja psychologiczna charakterystyka w tamtym czasie:<p>" + charString.fontcolor("yellow") + "<p><HR><p>");

	msgWindow.document.write("<p>Nauka jaka zostala wyniesiona z tamej egzystencji:<p>" + lesString.fontcolor("yellow") + "<p><HR><DIV align=center><p><a href=http://www.kwebbel.net/voyance/polski.html>Test twojego jasnowidzenia</a><p><a href=http://www.kwebbel.net/kalkulatora/>Kiedy stracę włosy lub stanę się łysy?</a><p>&nbsp;<p><b><a href=http://www.kwebbel.net/translate>HELP ! Who can translate an new site into your language ???</a></b><p></FONT> ");

msgWindow.document.write("<P><iframe scrolling=no frameborder=no src=pubreincarnatiepool.html style=width:728px; height: 150px; border:0; overflow:hidden;></iframe></DIV><P>");

msgWindow.document.write("<P><DIV align=right><FONT COLOR=#ff0000 SIZE=+1>More ...  </FONT> <A HREF=http://www.kwebbel.net/other.html><IMG SRC=pijl.gif border=0></A><P></DIV>");


//
      
}

 

