function check(f){
	    if (doChecks(f)){
	        if (validateEmailAt(f, "email"))            
	        	{return true;}
	    }
	    return false;   
    }
    
    function contact_check_required(formHandle, transfer_type)
	{	
		//text fields only
		var stringHandler = formHandle[transfer_type].value
		var sh2 = stringHandler.substring(0,2)

		if( stringHandler == "")
		{		
			alert( "A required field is missing information. Please fill in the " + transfer_type +  " field.");		
			formHandle[transfer_type].focus();
			return false;	
		}	
		return true;
	}
	
    function updateDivision(d, box){	
    	if (box.checked)
    		{addDivision(d);}
    	else
    		{removeDivision(d);}
    		
    	document.focus;
   	}
           	
           	var numBATS = 0;
           	var numBTS = 0;
           	var numCTS = 0;
           	var numCPS = 0;
            var numEFTS = 0;
            var numEPS = 0;
            var numHPS = 0;
            var numIS = 0;
            var numPNS = 0;
            var numRCS = 0;
            
			function addDivision(d)
			{
	            
	            if (d == "Banking and Trust Solutions")
	            {
	            	numBATS++;
	            	if (numBATS == 1)
	            		changeDivision();
	            }
	            else if (d == "Business Transformation Services")
	            {
	            	numBTS++;
	            	if (numBTS == 1)
	            		changeDivision();
	            }
	            else if (d == "Commercial Treasury Solutions")
	            {
	            	numCTS++;
	            	if (numCTS == 1)
	            		changeDivision();
	            }
	            else if (d == "Consulting and Professional Services")
	            {
	            	numCPS++;
	            	if (numCPS == 1)
	            		changeDivision();
	            }
	            else if (d == "EFT Solutions")
	            {
	            	numEFTS++;
	            	if (numEFTS == 1)
	            		changeDivision();
	            }
	            else if (d == "ePayment Solutions")
	            {
	            	numEPS++;
	            	if (numEPS == 1)
	            		changeDivision();
	            }
	            else if (d == "Healthcare Payment Solutions")
	            {
	            	numHPS++;
	            	if (numHPS == 1)
	            		changeDivision();
	            }
				else if (d == "Image Solutions")
	            {
	            	numIS++;
	            	if (numIS == 1)
	            		changeDivision();
	            }
				else if (d == "Payment Network Solutions")
	            {
	            	numPNS++;
	            	if (numPNS == 1)
	            		changeDivision();
	            }
				else if (d == "Risk and Compliance Solutions")
	            {
	            	numRCS++;
	            	if (numRCS == 1)
	            		changeDivision();
	            }

   			}
   			
   			function removeDivision(d)
			{
	           if (d == "Banking and Trust Solutions")
	            {
	            	numBATS--;
	            	if (numBATS == 0)
	            		changeDivision();
	            }
	            else if (d == "Business Transformation Services")
	            {
	            	numBTS--;
	            	if (numBTS == 0)
	            		changeDivision();
	            }
	            else if (d == "Commercial Treasury Solutions")
	            {
	            	numCTS--;
	            	if (numCTS == 0)
	            		changeDivision();
	            }
	            else if (d == "Consulting and Professional Services")
	            {
	            	numCPS--;
	            	if (numCPS == 0)
	            		changeDivision();
	            }
	            else if (d == "EFT Solutions")
	            {
	            	numEFTS--;
	            	if (numEFTS == 0)
	            		changeDivision();
	            }
	            else if (d == "ePayment Solutions")
	            {
	            	numEPS--;
	            	if (numEPS == 0)
	            		changeDivision();
	            }
	            else if (d == "Healthcare Payment Solutions")
	            {
	            	numHPS--;
	            	if (numHPS == 0)
	            		changeDivision();
	            }
				else if (d == "Image Solutions")
	            {
	            	numIS--;
	            	if (numIS == 0)
	            		changeDivision();
	            }
				else if (d == "Payment Network Solutions")
	            {
	            	numPNS--;
	            	if (numPNS == 0)
	            		changeDivision();
	            }
				else if (d == "Risk and Compliance Solutions")
	            {
	            	numRCS--;
	            	if (numRCS == 0)
	            		changeDivision();
	            }		
   			}
   			
   			function changeDivision()
   			{
   				
   				var divField = document.forms['form1'].elements['00N30000001CvI0'];
   				var selected = new Array();
   				var index = 0;
	            
   				if (numBATS > 0)
   				{
   					selected[index] = "Banking and Trust Solutions";
   					index++;
   				}
   				if (numBTS > 0)
   				{
   					selected[index] = "Business Transformation Services";
   					index++;
   				}
   				if (numCTS > 0)
   				{
   					selected[index] = "Commercial Treasury Solutions";
   					index++;
   				}
   				if (numCPS > 0)
   				{
   					selected[index] = "Consulting and Professional Services";
   					index++;
   				}
	            if (numEFTS > 0)
	            {
   					selected[index] = "EFT Solutions";
   					index++;
   				}
	            if (numEPS > 0)
	            {
   					selected[index] = "ePayment Solutions";
   					index++;
   				}
	            if (numHPS > 0)
	            {
   					selected[index] = "Healthcare Payment Solutions";
   					index++;
   				}
	            if (numIS > 0)
	            {
   					selected[index] = "Image Solutions";
   					index++;
   				}
	            if (numPNS > 0)
	            {
   					selected[index] = "Payment Network Solutions";
   					index++;
   				}
	            if (numRCS > 0)
	            {
   					selected[index] = "Risk and Compliance Solutions";
   					index++;
   				}
            
            	divField.value = selected;
            	//alert("value: " + divField.value);
   			} 