//  Copyright (C) 2005 by misronet.com

<!--
		var message="Access Denied";
				function click(e) {
					if (document.all) {
						if (event.button == 2) {
							alert(message);
							return false; } }
					if (document.layers) {
						if (e.which == 3) {
							alert(message);
							return false; } } }
				if (document.layers) {
					document.captureEvents(Event.MOUSEDOWN); }
				document.onmousedown=click;
// -->


function finishWindow() {

 helpWindow.document.write("<FORM><p align=center><INPUT Type='button' Value='Close Window' onClick='window.close()'></FORM>")
 helpWindow.document.write("<p>")
}
function analysis2(){
   helpWindow = open("","helpWin","toolbar=no,scrollbars=NO,location=no,width=400,height=250");
   helpWindow.document.write("<html><head><title>Puzzle Analysis - Provided by misronet.com</title></head><body bgcolor=#FFFFEA vlink=#0000FF><b><font face=Verdana size=3 color=#D70000>Puzzle solution</font></b><p align=left><font face=Verdana size=1>From the first clue we conclude that shokry must be 50, Adel must be 40, and that Adel is not Shokry</font></p><p align=left><font face=Verdana size=1>From the second clue, we conclude that <b>Adel</b>, <b>who is 40</b>, is not Farouk and he must be <b>Ahmed</b></font></p><p align=left><font face=Verdana size=1>From the third clue, we conclude that Nabil is not Shokry, and therefore <b>Magdy must be Shokry, and he is 50</b></font></p><p align=left><font face=Verdana size=1><b>Nabil must then be Farouk, and he is 45</b></font></p></body></html>")
   
 finishWindow()
  }
function analysis3(){
   helpWindow = open("","helpWin","toolbar=no,scrollbars=yes,location=no,width=400,height=400");
   helpWindow.document.write("<html><head><title>Puzzle Analysis - Provided by misronet.com</title></head><body bgcolor=#FFFFEA vlink=#0000FF><b><font face=Verdana size=3 color=#D70000>Puzzle solution</font></b><p align=left><font face=Verdana size=1><p><font face=Verdana size=2>From the second clue we conclude the following:</font></p><ul><li><font face=Verdana size=2>Ashraf is not called Fathy, and he is not the electrician</font></li><li><font face=Verdana size=2>Ashraf is not 35 years old and Fathy is not 25 years old</font></li></ul><p><font face=Verdana size=2>From the third clue we conclude the following:</font></p><ul><li><font face=Verdana size=2>Since Ashraf is not the electrician, and Nader is the painter, then the electrician must be Maher, and Ashraf must be the Steel Fixer</font></li><li><font face=Verdana size=2>Since Fathy is the electrician then Maher must be called Fathy</font></li></ul><p><font face=Verdana size=2>From clue number 4, we conclude the following:</font></p><ul><li><font face=Verdana size=2>Fathy who is older than Ashraf must be 35</font></li></ul><p><font face=Verdana size=2>From Clue Number 5, we conclude the following:</font></p><ul><li><font face=Verdana size=2>Since Badr is not 25 years old, and it is Fathy who is 35 then Badr must be 30, and he is the Steel Fixer</font></li><li><font face=Verdana size=2>Nader must then be Khedr and he is 25 years old</font></li></ul></body></html>")
    finishWindow()
  }

function analysis4(){
   helpWindow = open("","helpWin","toolbar=no,scrollbars=yes,location=no,width=400,height=400");
   helpWindow.document.write("<html><head><title>Puzzle Analysis - Provided by misronet.com</title></head><body bgcolor=#FFFFEA vlink=#0000FF><b><font face=Verdana size=3 color=#D70000>Puzzle solution</font></b><p align=left><font face=Verdana size=1>Sami is not the director of the 150 employees Firm, since he has more employees to direct than Hesham (clue 8), and neither of them directs the 310 employees Firm since that is directed by Ashraf (clue 3). Sami is not the director of the Firm with 190 employees (clue 6). Hesham works with Firm (B) per clue 4, and so he is not directing the 230 employees firm (clue 5). It is concluded that he can not be the director of the 270 employees firm since Sami is not directing the 310 firm. Hesham must be the director of the firm with 150 employees. Firm (B) then has 150 employees.</font></p><p align=left><font face=Verdana size=1>Firm (B) is not owned by Fayed who owns Firm (A) per clue 7, and it is not owned by Hany per clue 5. Firm (B) is not owned by Anwar who has 190 employees in his Firm, and it is not owned by Wagdy who has Emil directing his firm per clue 4. Therefore Firm (B) must be owned by Rami.</font></p><p align=left><font face=Verdana size=1>Anwar does not own Firm (A) which is owned by Fayed (clue 3), and he does not own Firm (B) because he has 190 employees in his Firm (clue 6 ), while Firm (B) has 150 employees. He does not own Firm (D) which has 230 employees (clue 5), and his Firm is not (E) as per clue 6. Therefore his Firm must be (C).</font></p><p align=left><font face=Verdana size=1>Firm (C) is not directed by Hesham (see above), and is not directed by Emil since Emil works for Wagdy. It is not directed by Ashraf who works with the firm with 310 employees as per clue 3, and it is not directed by Sami as per clue 6. Therefore the director of Firm (C) must be Waheed.</font></p><p align=left><font face=Verdana size=1>Firm (A) has 80 employees more than (C) as per clue 7, and so it must have 270 employees. The director of (A)is neither Hesham, nor Emil, nor Waheed, nor Ashraf because Hesham works with Rami (see above), Emil with Wagdy (clue 4), and Waheed works with Anwar (see above). Ashraf works with the 310 employees Firm. Therefore Sami must be the director of Firm (A).</font></p><p align=left><font face=Verdana size=1>From the above, Ashraf must be working for Hany in firm (E).</font></p><p align=left><font face=Verdana size=1 color=#BB0000><b>Brief</b></font></p><ul><li><p align=left><font face=Verdana size=1>Fayed owns Firm (A) which is directed by Sami and which has 270 mployees.</font></li><li><p align=left><font face=Verdana size=1>Hany owns Firm (E) which is directed by Ashraf and which has 310 employees.</font></li><li><p align=left><font face=Verdana size=1>Anwar owns Firm (C) which is directed by Waheed and which has 190 employees.</font></li><li><p align=left><font face=Verdana size=1>Rami owns Firm (B) which is directed by Hesham and which has 150 employees.</font></li><li><p align=left><font face=Verdana size=1>Wagdy owns Firm ( D) which is directed by Emil and which has 230 employees.</font></li></ul><p align=center>&nbsp;</p></body></html>")
    finishWindow()
  }



function analysis5(){
   helpWindow = open("","helpWin","toolbar=no,scrollbars=no,location=no,width=400,height=420");
   helpWindow.document.write("<html><head><title>Puzzle Analysis - Provided by misronet.com</title></head><body bgcolor=#FFFFEA vlink=#0000FF><b><font face=Verdana size=3 color=#D70000>Puzzle solution</font></b><p><font face=Verdana size=1>The stage starting at P5, ends at P3 and it is not the first stage (clue 4), and it is not the third stage (clue6). Hence the stage ending at P5 is not the fifth stage (the railway is circular). The stage ending at P5, is not the forth stage because that stage was awarded to Contractor (C) according to clue 7, whilst the forth stage was awarded to Contractor (D) according to clue 3. Neither the stage from P5 to P3, nor its precedent stage ending at P5, is the third stage since stage 3 ends at P1. Hence the stage ending at P5, is not the second stage and it must be the First stage, and the stage from P5 to P3 is the second stage.</font></p><p><font face=Verdana size=1>Contractor (E) was awarded the contract for the stage starting at P4. This is not the First stage which was awarded to Contractor (C) according to clue 7 and the above analysis. It is not the second stage which starts at P5, and it is not the third which starts at P3, and it is not the forth stage which was awarded to contractor (D). Therefore Contractor (E) must have been awarded the fifth stage, starting at P4, and finishing at P2.</font></p><p><font face=Verdana size=1>Stage 3 was not awarded to Contractor (A) according to clue 6. Contractor (A) was not awarded forth stage because it was awarded to Contractor (D), and he was not awarded stage 5 because it was awarded to Contractor (E), and he was not awarded stage 1 because that was taken by (C). Therefore Contractor (A) must have been awarded stage 2.</font></p></body></html>")
    finishWindow()
  }
