function doProcessing() {
	document.getElementById('button').className = 'thide';
	document.getElementById('processing').className = 'tshow';
	//document.form.submit();
} 

function heightDecider()
{
    
	var tableheight=0;
	if(document.getElementById("formtable") != null) document.getElementById("formtable").offsetHeight;
	document.getElementById("formbottom").style.top=tableheight+120;
	document.getElementById("formbody").style.height=tableheight+570;
	document.getElementById("formleftborder").style.height=tableheight;	
	document.getElementById("formrightborder").style.height=tableheight;
	document.getElementById("midform").style.height=document.getElementById("formleftborder").offsetHeight+document.getElementById("formbottom").offsetHeight+620;	
	document.getElementById("formfooter").style.top=document.getElementById("formbottom").offsetTop+520;
	
	//document.getElementById("midform").style.height=document.getElementById("formleftborder").offsetHeight+document.getElementById("formbottom").offsetHeight+100;	
	
}

function changeEduLevel(){
	
	
	document.forms[0].elements['programAreaChangeFlag'].value = 'Y';
    document.forms[0].submit();
}

function changeProgram(){
	
	document.forms[0].elements['programChangeFlag'].value = 'Y';
    document.forms[0].submit();
}
/*
function changeFormProgram() {
    var a1 = document.forms[0].ProgramOfInterest.options[document.forms[0].ProgramOfInterest.selectedIndex].value;
	alert('***********programCode****************'+a1);
	
	 document.getElementById('BachelorMajorDiv').className='thide';
	 document.getElementById('CollegeGPADiv').className='thide';
	 document.getElementById('CollegeGPA2Div').className='thide';
	 document.getElementById('PracticingK12Div').className='thide';
	 document.getElementById('CollegeGPA3Div').className='thide';
	 document.getElementById('LicensedNurseDiv').className='thide';
	 document.getElementById('CurrentOccupationDiv').className='thide';
	 document.getElementById('JobTitleDiv').className='thide';
	 document.getElementById('OnlineCourseTakenDiv').className='thide';
	 document.getElementById('TeachClassDiv').className='thide';
	 document.getElementById('HaveWorkExperienceDiv').className='thide';
	 document.getElementById('Practicing7-12Div').className='thide';
   
	if ( a1 == "MBA" ) {

        document.getElementById('BachelorMajorDiv').className='tshow';
        document.getElementById('CollegeGPADiv').className='tshow';
        document.getElementById('NursingDiploma').className='thide';
		document.getElementById('PreRequirmentQues').className='thide';
		document.getElementById('CollegeGPA2Div').className='thide';
	    document.getElementById('PracticingK12Div').className='thide';
	    document.getElementById('CollegeGPA3Div').className='thide';
	    document.getElementById('LicensedNurseDiv').className='thide';
	    document.getElementById('CurrentOccupationDiv').className='thide';
	    document.getElementById('JobTitleDiv').className='thide';
	    document.getElementById('OnlineCourseTakenDiv').className='thide';
	    document.getElementById('TeachClassDiv').className='thide';
	    document.getElementById('HaveWorkExperienceDiv').className='thide';
	    document.getElementById('Practicing7-12Div').className='thide';

    }

  
}
*/
// document.getElementById('licence').className='thide';
   // document.getElementById('NursingDiploma').className='thide';
	//document.getElementById('PreRequirmentQues').className='thide';


   // if ( a1 == "MBA" /*&& (a2 == "High School Diploma" || a2 == 'Some college 0-23 credits' || a2 == 'Some college 35-59 credits')*/ ) 
	//{
	//    document.getElementById('licence').className='tshow';
       /* document.getElementById('NursingDiploma').className='tshow';
		document.getElementById('PreRequirmentQues').className='thide';
       */  
 /*   } else if ( a1 == "M.E.GN" ) {

        document.getElementById('teach').className='tshow';
        document.getElementById('licence').className='thide';
        document.getElementById('NursingDiploma').className='thide';
		document.getElementById('PreRequirmentQues').className='thide';

    }
    else if(a1 == "NURSING.GEN.INTERES2" || a1 == "NURSING.GEN.INTEREST" ) {


        document.getElementById('teach').className='thide';
        document.getElementById('licence').className='tshow';
        document.getElementById('NursingDiploma').className='thide';
		document.getElementById('PreRequirmentQues').className='thide';
    }
    
   else if(a1 == "MS.W1EGR.CE" || a1 == "MS.W1EGR.CS" || a1 == "MS.W1EGR.EE" || a1 == "MS.W1EGR.SE" || a1 == "MS.W1EGR.SY") {
	
		
		document.getElementById('teach').className='thide';
        document.getElementById('PreRequirmentQues').className='tshow';
        document.getElementById('NursingDiploma').className='thide';
		document.getElementById('licence').className='thide';
   }*/
//}

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=no,status=no,toolbar=no,scrollbars=yes");

      }

      catch(e)

      {

            confirmWin=window.open(urltxt, "kwu", 

                         "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +

                         "resizable=no,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;

}