
function showExternalLink() 
{
	document.write("<td colspan=\"2\" width=\"100%\" valign=\"top\">");
	document.write("<table bgcolor=\"#FFFFFF\" border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr>");
	document.write("<td width=\"85\" valign=\"top\" background=\"/images/redesign/col_orglft_top02.gif\">");
	document.write("<img src=\"/images/redesign/col_orglft_top02.gif\" width=\"85\" height=\"1\">");
	document.write("</td>");
	document.write("<td align=\"left\" width=\"100%\" valign=\"top\">&nbsp;</td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</td>");
	document.write("<td width=\"17\" valign=\"top\" background=\"/images/redesign/col_orgrgt_rpt.gif\">&nbsp;</td>");
}

function showTeachLinks() 
{
	document.write("<td colspan=\"2\" width=\"100%\" valign=\"top\">");
	document.write("<table bgcolor=\"#FFFFFF\" border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr>");
	document.write("<td width=\"85\" valign=\"top\" background=\"/images/redesign/col_orglft_top02.gif\">");
	document.write("<img src=\"/images/redesign/col_orglft_top02.gif\" width=\"85\" height=\"1\">");
	document.write("</td>");
	document.write("<td align=\"left\" width=\"100%\" valign=\"top\">&nbsp;</td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</td>");
	document.write("<td width=\"17\" valign=\"top\" background=\"/images/redesign/col_orgrgt_rpt.gif\">&nbsp;</td>");
}

function goToPage() //Function Start: invoked when the "Enter" image button is clicked on the homepage.
{
	StateIndex=document.form1.select1.selectedIndex; //Stores the State index number
	PageIndex2=document.form1.select2.selectedIndex; //Stores the descipline index number

	//alert("Descipline Selected: "+PageIndex2);

	//alert("State Selected: "+StateIndex);

	var state=document.form1.select1.options[StateIndex].value; //Stores the value of the State index
	var descipline=document.form1.select2.options[PageIndex2].value; //Stores the value of the descipline index

		if (state != "") //validating if the state selection is not empty
		{
			if (descipline != "") //validating if the descipline selection is not empty
				{ 
					   
						  if (descipline == "../ss/ca/eng") { 
						
	                      location.href = "/ss/ca/eng/index.html";
						  
	                      }
						  else if(descipline == "2009")
						  {
							   location.href = '/socialstudies/2009/student/index.html';
							
						  }							  
						  else if (descipline == "2007")
						  
						  {
							     //location.href = "/socialstudies/"+descipline+"/student/"+state+"pickbook.html"; 
							  	 location.href = '/ss/'+ state.toLowerCase() + '/';
						  }
						  
						  
						  else if (descipline == "107") { 
						
	                      alert("Please select a Program");

			              return;
						  
	                      } else if (descipline == "2000") 
							  { 
						  
						            if((state == "CA")||(state == "GA")||(state == "MO")||(state == "MS")||(state == "NJ")||(state == "NY")||(state == "OH")||(state == "OK")||(state == "PA")||(state == "TN")||(state == "TX")) {
						
	                                 location.href = "/socialstudies/2000/student/"+state+"pickbook.html";
						  
	                          } else {
								  
						             location.href = "/socialstudies/2000/student/nationalpickbook.html";
							  
							  }
							  
						    }
						  
				else if ((state =="0")||(state==""))
			  {
							   
	                     window.location.reload( false ); 
						  
						  
	                                        }
				
				else
			  {
							   
	                      location.href = "/socialstudies/"+descipline+"/student/"+state+"pickbook.html"; 
						  
	                                        }
                             
				} 		
				
				
						if ((state == "CA")&&(descipline != "2000")) //validating if the state selection is not empty
		    {
				
			location.href = "/ss/ca/eng/index.html";
			} 
			
			//else
		     //   {
					
			//alert("Please select a Subject 2");

			//return;
		  //     }
		} 

		else
		{
			alert("Please select a state 2");

			return;
		}
} 



//end of Funtion