////declare variables
// USA/CAN Plumbing Reps Oct 05, 2004
var rep1 = 'fwarner@visioninfosoft.com, pcrouch@visioninfosoft.com' //Fred Warner
var rep1_name = 'Fred J. Warner'
var rep1_ph = '800-258-7752 x554'
var rep1_fax = '760-579-0291'
var rep1_pic = 'spacer.gif' 

var rep2 = 'steve.gallegos@visioninfosoft.com, pcrouch@visioninfosoft.com' //David Freund
var rep2_name = 'Steve Gallegos'
var rep2_ph = '(877) 900-0477'
var rep2_fax = '760-579-0291'
var rep2_pic = 'spacer.gif' 

// Default
var rep3 = 'fwarner@visioninfosoft.com, pcrouch@visioninfosoft.com' //Default & International


function SalesRep(theForm)
{

  switch (theForm.state.value) {
    case 'AL':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;	
    case 'AK':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;	
    case 'AZ':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;
    case 'AR':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       		break;
    case 'CA':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'CO':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
       		break;
    case 'CT':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;
    case 'DC':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
       break;
    case 'DE':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'FL':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;
    case 'GA':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
       break;
    case 'HI':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'ID':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'IL':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;
    case 'IN':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'IA':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'KS':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
       break;
    case 'KY':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;
    case 'LA':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
       break;
    case 'ME':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'MD':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'MA':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;
    case 'MI':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
       break;
    case 'MN':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'MS':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'MO':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'MT':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'NE':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'NV':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'NH':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'NJ':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'NM':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;
    case 'NY':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;	   
    case 'NC':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
       break;
    case 'ND':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'OH':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'OK':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'OR':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'PA':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'RI':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'SC':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'SD':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'TN':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'TX':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'UT':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;
    case 'VT':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
       break;
    case 'VA':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'WA':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'WV':	theForm.Vision_Rep.value = rep2;
				theForm.Vision_RepName.value = rep2_name;
				theForm.Vision_RepPH.value = rep2_ph;
				theForm.Vision_RepFAX.value = rep2_fax;
				theForm.Vision_RepPic.value = rep2_pic;
		break;
    case 'WI':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
       break;
    case 'WY':	theForm.Vision_Rep.value = rep1;
				theForm.Vision_RepName.value = rep1_name;
				theForm.Vision_RepPH.value = rep1_ph;
				theForm.Vision_RepFAX.value = rep1_fax;
				theForm.Vision_RepPic.value = rep1_pic;
		break;
	case '':
    default:	theForm.Vision_Rep.value = rep3;
       break
  	}
	
	  return (true);
}