Question : Why am I getting a blank page on this code?

I am new to JavaScript.  This program is not working and I don't know why (see code).  I just get a blank page when I run it.  What am I doing wrong?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!-- Program by Maria Kelly
     -->
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <title>Sorting a line of text</title>
   </head>
   <body>
     <script type = "text/javascript" >
         <!--
			 var index;

			 //Prompt user for input
			 var str1 = prompt("Please enter a line of lowercase text.", "");

			 //Prompt user for input
			 var str2 = prompt("Would you like the text to be sorted in ascending or descending order?", "");

			 //Split the text entered by user an insert into an array
			 var inputArray = str1.split(" ");

			 While (str2 = "descending"){
			    //Sort the array in descending order
			    inputArray.reverse();
			    //Display the array in reverse order
				for (index = 0; index < inputArray.length; index++)
				   document.write(inputArray[index], "<br />");
			}
			While (str2 = "ascending"){
			    //Sort the array in ascending order
  				inputArray.sort();
			    //Display the array in ascending order
			    for (index = 0; index < inputArray.length; index++)
			       document.write(inputArray[index], "<br />");
			}
		 // -->
     </script>
   </body>
 </html>

Answer : Why am I getting a blank page on this code?

To be properly licensed, OEM requires the following:
 - OEM COA attached to the box (you indicated this).
 - OEM CD/DVD original media that came with the box.
 - OEM Manual that came with the box.

Without those three components that SBS box is not legit.

No, in the case of 2003 products, OEM means OEM media must be used.

Philip
Random Solutions  
 
programming4us programming4us