	function doProcessing() {
		document.getElementById('button').className = 'thide';
		document.getElementById('processing').className = 'tshow';
	}
    function doProcessing1() {
		document.getElementById('buttonadj').className = 'thide';
		document.getElementById('processing').className = 'tshow';
	}
    /* used for opening the window */
	function openWin(page, name, details) {
		newWin = window.open(page, name, details);
		if (window.focus) { newWin.focus() }
	}
	


	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 programspaceBusiness() {
		document.getElementById('programspaceBusiness').className = 'tshow';
		document.getElementById('programspaceTechnology').className = 'thide';
		document.getElementById('programspaceMedical').className = 'thide';
		document.getElementById('programspaceDesign').className = 'thide';
		document.getElementById('programspaceCulinary').className = 'thide';
		document.getElementById('programspaceLegal').className = 'thide';		
		  
		 var addHeight1 = 983;
		 var addHeight2 = 890;
		 var addHeight3 = 1000;
		 
	    document.getElementById("programnamewrapper").style.height=addHeight1;
	    document.getElementById("programname").style.height=addHeight2;  
	    document.getElementById("programcontentpop").style.height=addHeight3; 			    
	} 
	function programspaceTechnology() {
		document.getElementById('programspaceBusiness').className = 'thide';
		document.getElementById('programspaceTechnology').className = 'tshow';
		document.getElementById('programspaceMedical').className = 'thide';
		document.getElementById('programspaceDesign').className = 'thide';
		document.getElementById('programspaceCulinary').className = 'thide';
		document.getElementById('programspaceLegal').className = 'thide';
		var addHeight1 = 933;
	    var addHeight2 = 840;
	    var addHeight3 = 950;
		 
        document.getElementById("programnamewrapper").style.height=addHeight1;
	    document.getElementById("programname").style.height=addHeight2;  
	    document.getElementById("programcontentpop").style.height=addHeight3; 
	} 
	function programspaceMedical() {
		document.getElementById('programspaceBusiness').className = 'thide';
		document.getElementById('programspaceTechnology').className = 'thide';
		document.getElementById('programspaceMedical').className = 'tshow';
		document.getElementById('programspaceDesign').className = 'thide';
		document.getElementById('programspaceCulinary').className = 'thide';
		document.getElementById('programspaceLegal').className = 'thide';
		var addHeight1 = 883;
	    var addHeight2 = 790;
	    var addHeight3 = 900;
		 
        document.getElementById("programnamewrapper").style.height=addHeight1;
	    document.getElementById("programname").style.height=addHeight2;  
	    document.getElementById("programcontentpop").style.height=addHeight3; 
	}
	function programspaceDesign() {
		document.getElementById('programspaceBusiness').className = 'thide';
		document.getElementById('programspaceTechnology').className = 'thide';
		document.getElementById('programspaceMedical').className = 'thide';
		document.getElementById('programspaceDesign').className = 'tshow';
		document.getElementById('programspaceCulinary').className = 'thide';
		document.getElementById('programspaceLegal').className = 'thide';
		var addHeight1 = 683;
	    var addHeight2 = 590;
	    var addHeight3 = 700;
		 
        document.getElementById("programnamewrapper").style.height=addHeight1;
	    document.getElementById("programname").style.height=addHeight2;  
	    document.getElementById("programcontentpop").style.height=addHeight3; 
	}
	function programspaceCulinary() {
		document.getElementById('programspaceBusiness').className = 'thide';
		document.getElementById('programspaceTechnology').className = 'thide';
		document.getElementById('programspaceMedical').className = 'thide';
		document.getElementById('programspaceDesign').className = 'thide';
		document.getElementById('programspaceCulinary').className = 'tshow';
		document.getElementById('programspaceLegal').className = 'thide';
		var addHeight1 = 583;
	    var addHeight2 = 490;
	    var addHeight3 = 600;
		 
        document.getElementById("programnamewrapper").style.height=addHeight1;
	    document.getElementById("programname").style.height=addHeight2;  
	    document.getElementById("programcontentpop").style.height=addHeight3; 
	}
	function programspaceLegal() {
		document.getElementById('programspaceBusiness').className = 'thide';
		document.getElementById('programspaceTechnology').className = 'thide';
		document.getElementById('programspaceMedical').className = 'thide';
		document.getElementById('programspaceDesign').className = 'thide';
		document.getElementById('programspaceCulinary').className = 'thide';
		document.getElementById('programspaceLegal').className = 'tshow';
		var addHeight1 = 656;
	    var addHeight2 = 563;
	    var addHeight3 = 670;
		
		 
        document.getElementById("programnamewrapper").style.height=addHeight1;
	    document.getElementById("programname").style.height=addHeight2;  
	    document.getElementById("programcontentpop").style.height=addHeight3; 
	}    
   

    var usstates=new Array('AL','AK','AZ','AR','CA','CO','CT','DE','DC','FL','GA','HI','ID','IL','IN','IA','KS','KY','LA','ME','MD','MA','MI','MN','MS','MO','MT','NE','NV','NH','NJ','NM','NY','NC','ND','OH','OK','OR','PA','RI','SC','SD','TN','TX','UT','VT','VA','WA','WV','WI','WY','PR','AA','AE','AP');
    var umstates=new Array('VI','GU','AS','FM','MH','PW','NN');
    var castates=new Array('AB','BC','MB','NB','NF','NS','NT','NU','VU','ON','PE','PQ','QC','SK','YT');
    var mxstates=new Array('AC','BA','BS','CM','CP','CH','CU','DF','DU','GN','GE','HD','JA','MX','MC','MR','NA','NL','OX','PU','QE','SL','SI','SO','TB','TM','TP','TL','VE','YU','ZA','QR');

    function handleSPChange()
    {

       try {
            var state,country;

            country=document.getElementById("CN");
            state=document.getElementById("SP");
            if (null!=country.value && null!=state.value)
            {
               country.value = getCountrybyState(state.value);
               return true;
            }
        }catch(e){}
    }

    function getCountrybyState(state)
    {
      var country;
      if (isstate(state,usstates))
      {
          country='US';
      }else
      if (isstate(state,umstates))
      {
          country='UM';
      }else
      if (isstate(state,castates))
      {
          country='CA';
      }else
      if (isstate(state,mxstates))
      {
          country='MX';
      }else
      {
          country='US';
      }
      return country;
    }

    function isstate(state,states)
    {
       var found=false;
       for(var i=0;i<states.length&&!found;i++)
       {
            if (states[i]==state)
            {
                found=true;
            }
       }
       return found;
    }



    