
     	var DIRECTIONS = "DIRECTIONS: Add each problem.";
     	var DIRECTIONS1 = "DIRECTIONS: Subtract each problem.";
     	var DIRECTIONS2 = "DIRECTIONS: Multiply each problem.";
     	var DIRECTIONS3 = "DIRECTIONS: Divide each problem.";
     	var DIRECTIONS4 = "DIRECTIONS: Complete each problem.";
     	var RAND = 8800; 
    	var CONTROL =  1000;
	var RAND1 = 7;
	var CONTROL1 = 2;
	var PLACE1;
	var CORRECT = "";
	var t = 0;

	function CreateNumber ()
	{
      		NUMBER = Math.random() * RAND + CONTROL;
	   	 NUMBER = Math.round(NUMBER);
	  	NUMBER1 = Math.random() * RAND + CONTROL;
	   	 NUMBER1 = Math.round(NUMBER1);
	  	NUMBER2 = Math.random() * RAND + CONTROL;
	   	 NUMBER2 = Math.round(NUMBER2);
		if(SKILL == 4)
		{
	   		if (NUMBER == NUMBER1) 
			{
				NUMBER = NUMBER + 15;
	    		}
	   		if (NUMBER1 > NUMBER) 
			{
				HOLDER = NUMBER;
				NUMBER = NUMBER1;
				NUMBER1 = HOLDER;
	    		}
		}
		if(SKILL > 4)
		{
			NUMBER1 = Math.random() * RAND1 + CONTROL1;
	   		 NUMBER1 = Math.round(NUMBER1);
			HOLDER = NUMBER1;
		}
		PLACEVALUE = NUMBER /100;
		PLACEVALUE1 = NUMBER1 /100;
		PLACEVALUE2 = NUMBER2 /100;
		switch (SKILL)
	 	{	
			case 0:
		  
	   		break;
			case 1:
		     
	   		break;
			case 2:
		  		PLACE1 =  NUMBER + NUMBER1;
	   		break;
			case 3:
		  		PLACE1 =  NUMBER + NUMBER1 + NUMBER2;
	   		break;
			case 4:  
		  		PLACE1 =  NUMBER - NUMBER1;  
	        	break;
			case 5:
		     		PLACE1 = NUMBER * HOLDER;
	        	break;
	      	}
		if(SKILL == 6)
		{
      			NUMBER = Math.random() * RAND + CONTROL;
	   		 NUMBER = Math.round(NUMBER);
	  		NUMBER1 = Math.random() * RAND1 + CONTROL1;
	   		 NUMBER1 = Math.round(NUMBER1);
			SETUP = NUMBER * NUMBER1;
			SETDOWN = SETUP/10;
			PLACE = NUMBER/100;
			PLACE1 = PLACE;
			PLACEVALUE = SETUP/100;
			PROBLEM1 = NUMBER1;
			PLACEVALUE = "$" + PLACEVALUE;
			PLACE = "$" + PLACE;
	  		if (PLACEVALUE.length == 6&& SETDOWN ==parseInt (SETDOWN)) 
			{
	      			PLACEVALUE = PLACEVALUE + "0";
	   		}
	  		if (PLACEVALUE.length == 5) 
			{
	      			PLACEVALUE = PLACEVALUE + "0";
	   		}
 	  		if (PLACEVALUE.length == 4) 
			{
	      			PLACEVALUE = PLACEVALUE + ".00";
	   		}
			PROBLEM = (PLACEVALUE.substring(1,7));
			PLACE = (PLACE.substring(1,7));
			t++
			CORRECT = CORRECT + t + ") " + PLACE + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
       		}
		else
		{
			PLACE = PLACE1/100;
			PLACE1 = PLACE;
			PLACEVALUE = "$" + PLACEVALUE;
			PLACEVALUE1 = "$" + PLACEVALUE1;
			PLACEVALUE2 = "$" + PLACEVALUE2;
			PLACE = "$" + PLACE;
	  		if (PLACEVALUE.length == 5) 
			{
	      			PLACEVALUE = PLACEVALUE + "0";
	   		}
 	  		if (PLACEVALUE.length == 3) 
			{
	      			PLACEVALUE = PLACEVALUE + ".00";
	   		}
	  		if (PLACEVALUE1.length == 5) 
			{
	      			PLACEVALUE1 = PLACEVALUE1 + "0";
	   		}
 	  		if (PLACEVALUE1.length == 3) 
			{
	      			PLACEVALUE1 = PLACEVALUE1 + ".00";
	   		}
	  		if (PLACEVALUE2.length == 5) 
			{
	      			PLACEVALUE2 = PLACEVALUE2 + "0";
	   		}
 	  		if (PLACEVALUE2.length == 3) 
			{
	      			PLACEVALUE2 = PLACEVALUE2 + ".00";
	   		}
			PROBLEM = (PLACEVALUE.substring(1,6));
			PROBLEM1 = (PLACEVALUE1.substring(1,6));
			PROBLEM2 = (PLACEVALUE2.substring(1,6));
			PLACE = (PLACE.substring(1,7));
			if(SKILL >4)
			{
				PROBLEM1 = HOLDER;
			}
			t++
			CORRECT = CORRECT + t + ") " + PLACE + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";    
		}
    	}


