
function popupPreview(urltxt, wid, high) 
{ 		
  
  wid+=0;
  high+=0;
  var flagvar=0;
  
  try{
		//confirmWin.close();
		confirmWin=window.open(urltxt, "kwu", 
                         "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +
                         "resizable=yes,status=no,toolbar=no,scrollbars=yes");
	}
	catch(e)
	{
		confirmWin=window.open(urltxt, "kwu", 
                         "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +
                         "resizable=yes,status=no,toolbar=no,scrollbars=yes");
	}

  if (window.confirmWin)
  { 
    if (window.focus) 
    { 
      if ((navigator.appName.indexOf("Microsoft Internet Explorer")!=-1)
          &&
          (navigator.appVersion.indexOf("4.") != -1)
          &&
          (parent.length>0))
      { 
       // window.confirmWin.close(); 
        flagvar=1;
        timevar = setTimeout("openit(urltxt)", 300);      
      }
      else
      {
        confirmWin.focus();
      }
    } 
    else
    {  
      if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)  // If this is a MSIE Browser
      {  
        if (navigator.appVersion.indexOf("3.") != -1)  // MSIE 3.x
        {
          if (isLoaded == true)
          {
            alert("If the large image does not pop up, press the 'Product Close-up' tab in your task bar, or locate the image browser behind your open window." );
            return;
          }
          else
          {
            alert("If the Site Menu bar does not pop up, press the 'Product Close-up' tab in your task bar, or locate the image browser behind your open window." );
            return;
          } 
        } 
      }
    }
  }          
  else
  {
    confirmWin = window.open(urltxt, "kwu", 
                             "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +
                   "resizeable=no,status=no,toolbar=no");
    var isLoaded = true;
  }
  
  // This is important for Netscape 2.0 to enable the opener property
  if (flagvar!=1)
  {
    if (confirmWin.opener == null)
    {
      confirmWin.opener = self;
    }
  }
  wid=0;
  high=0;
} 




function changeProgram() {

        
		//var a4program = form.A4.options[form.A4.selectedIndex].value;
		var a4program = document.forms[0].A80.options[document.forms[0].A80.selectedIndex].value;
        if (a4program == '') return;

    if("BSN".match(a4program))
	{
           document.getElementById("gpaNur").className='show';
		   document.getElementById("LicenseNur").className='show';

    } else{
		   document.getElementById("gpaNur").className='hide';
		   document.getElementById("LicenseNur").className='hide';
	}

    if(a4program.match("CSTC"))
	{
		   document.getElementById("associate").className='show';
		   document.getElementById("enforcement").className='show';


    } else{
		   document.getElementById("associate").className='hide';
		   document.getElementById("enforcement").className='hide';

	}

     if(a4program.match("MSNN_NA") ||a4program.match("MSNN_NE") )
	{
		   document.getElementById("bachelor1").className='show';
		   document.getElementById("gpa1").className='show';
          document.getElementById("licence").className='show';


    } else{
		   document.getElementById("bachelor1").className='hide';
		   document.getElementById("gpa1").className='hide';
           document.getElementById("licence").className='hide';
     }

     if(a4program.match("MSHE_CT") ||a4program.match("MSHE_SS") )
	{
		   document.getElementById("gpaed").className='show';
    } else{
		   document.getElementById("gpaed").className='hide';
     }
                
     if(( a4program.match("MBA") || a4program.match("MB_M") || a4program.match("MBA_MCQ") ||a4program.match("MBA_IT") || a4program.match("MBA_HR") || a4program.match("MBA_F") ||
         a4program.match("MBA_C") || a4program.match("MBA_E") || a4program.match("MSCJ") || a4program.match("MSCJ_GI") || a4program.match("MSCJ_L") || a4program.match("MSCJ_LEM") || a4program.match("MSCJ_P")
        ) && !(a4program.match("NWMBA") ) )
	{
         document.getElementById("bachelor").className='show';
		 document.getElementById("gpaBus").className='show';

    } else{
		document.getElementById("bachelor").className='hide';
		document.getElementById("gpaBus").className='hide';
	
	}
	
	if(a4program.match("NWMBA"))
	{
		document.getElementById("bachelor").className='show';
		document.getElementById("gpa3").className='show';
	}
	else if(( a4program.match("MBA") || a4program.match("MB_M") || a4program.match("MBA_MCQ") ||a4program.match("MBA_IT") || a4program.match("MBA_HR") || a4program.match("MBA_F") ||
		     a4program.match("MBA_C") || a4program.match("MBA_E") || a4program.match("MSCJ") || a4program.match("MSCJ_GI") || a4program.match("MSCJ_L") || a4program.match("MSCJ_LEM") || a4program.match("MSCJ_P")) && !(a4program.match("NWMBA") ) )
	{
		//document.getElementById("bachelor").className='hide';
		document.getElementById("gpaBus").className='show';
		document.getElementById("gpa3").className='hide';
    }
	else
	{
	    document.getElementById("gpaBus").className='hide';
		document.getElementById("gpa3").className='hide';
		document.getElementById("bachelor").className='hide';
	}
	
	
	
	
		if(( a4program.match("MA") || a4program.match("MATL_LL2") || a4program.match("MATL_LL") || a4program.match("MATL_TM3") || a4program.match("MATL_TM3") ||
		 a4program.match("MATL_TM") || a4program.match("MATL_TS2") || a4program.match("MATL_TS") || a4program.match("MATL_SN") || a4program.match("MATL_TT") ||  a4program.match("PDT") ) && !(a4program.match("AASMA"))) 
	{
         document.getElementById("classroom").className='show'; 
		  document.getElementById("gpa275").className='show';
		  document.getElementById("k12").className='show';

    } else{
	  	 document.getElementById("classroom").className='hide';
		 document.getElementById("gpa275").className='hide';
		 document.getElementById("k12").className='hide';
	}
	
	if(( a4program.match("ITIC") || a4program.match("MED") ))
	{
         document.getElementById("iowa").className='show';
		   document.getElementById("gpa").className='show';
		   document.getElementById("p712").className='show';

    } else {
	
		document.getElementById("iowa").className='hide';
		document.getElementById("gpa").className='hide';
		document.getElementById("p712").className='hide';
   }

  if(a4program.match("MSM_CL")|| a4program.match("MSM_HCM")|| a4program.match("MSM_PM")|| a4program.match("MSM_SCML")) {
       document.getElementById("bachelor").className='show';
	   document.getElementById("gpaBus").className='show';
     }
		
		
	//if(a4program.match("ASN")){
		
	//   document.getElementById("careerGoal").className='show';
	//}	
	//else
	//{
	//	document.getElementById("careerGoal").className='hide';
	//}
	
}
function nextState() 

	  	{	
	  			
			var country = document.form.SP.value.substring(0,2);
	        var armedCountry = document.form.SP.value.substring(0,5);
			if(country == "US")  
			{
			document.form.CN.value = "US";
			} 
			else if(country == "CA")
			{
			document.form.CN.value = "CA";
			} 
			else if(armedCountry == "Armed")
			{
			document.form.CN.value = "US";
		    }			
		document.form.submit();
			if(country == "US")  
			{
			document.form.CN.value = "US";
		    } 
			else if(country == "CA")
			{
		    document.form.CN.value = "CA";
		    } 
			else if(armedCountry == "Armed")
			{
			document.form.CN.value = "US";
			}
		    return false;
	  	}	
	
	