////declare variables
// USA Electrical updated March 31, 2003
var rep1 = 'acobb@visioninfosoft.com, pcrouch@visioninfosoft.com' //Aaron Cobb
var rep1_name = 'Aaron Cobb' //Aaron Cobb
var rep1_ph = '877-294-6263' //Aaron Cobb
var rep1_fax = '760-579-0339' //Aaron Cobb
var rep1_pic = 'acobb.jpg' //Aaron Cobb
var rep2 = 'jhertel@visioninfosoft.com, jcollias@visioninfosoft.com' //Jim Hertel
var rep2_name = 'Jim Hertel' //Jim Hertel
var rep2_ph = '877-973-3744' //Jim Hertel
var rep2_fax = '760-579-0339' //Jim Hertel
var rep2_pic = 'spacer.gif' //Jim Hertel -jhertel.jpg
var rep3 = 'jcobb@visioninfosoft.com, pcrouch@visioninfosoft.com'  //Michael Armbruster
var rep3_name = 'Joy Cobb' //Michael Armbruster
var rep3_ph = '877-388-2461' //Michael Armbruster
var rep3_fax = '760-579-0291' //Michael Armbruster
var rep3_pic = 'spacer.gif' //Michael Armbruster
var rep3b = 'jcobb@visioninfosoft.com, jcollias@visioninfosoft.com'  //Michael Armbruster
var rep3b_name = 'Joy Cobb' //Michael Armbruster
var rep3b_ph = '877-388-2461' //Michael Armbruster
var rep3b_fax = '760-579-0291' //Michael Armbruster
var rep3b_pic = 'spacer.gif' //Michael Armbruster
var rep4 = 'sridolph@visioninfosoft.com, pcrouch@visioninfosoft.com'  //Scott Ridolph
var rep4_name = 'Scott Ridolph' //Scott Ridolph
var rep4_ph = '877-602-5327' //Scott Ridolph
var rep4_fax = '760-579-0339' //Scott Ridolph
var rep4_pic = 'sridolph.jpg' //Scott Ridolph
var rep5 = 'tstempora@visioninfosoft.com, jcollias@visioninfosoft.com' //Tom Stempora
var rep5_name = 'Tom Stempora' //Tom Stempora
var rep5_ph = '877-294-6135' //Tom Stempora
var rep5_fax = '760-579-0339' //Tom Stempora
var rep5_pic = 'tstempora.jpg' //Tom Stempora
var rep6 = 'ddelliquadri@visioninfosoft.com' //Default
var rep6_name = 'Vision InfoSoft' //Tom Stempora
var rep6_ph = '800-258-7752' //Tom Stempora
var rep6_fax = '760-579-0291' //Tom Stempora
var rep6_pic = 'spacer.gif' //Tom Stempora

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 = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_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 = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_pic;
		break;
    case 'CO':  theForm.Vision_Rep.value = rep3;
				theForm.Vision_RepName.value = rep3_name;
				theForm.Vision_RepPH.value = rep3_ph;
				theForm.Vision_RepFAX.value = rep3_fax;
				theForm.Vision_RepPic.value = rep3_pic;
       		break;
    case 'CT':	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 'DC':	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 'DE':  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 'FL':	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 '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 = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_pic;
		break;
    case 'KS':  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 '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 = rep3b;
				theForm.Vision_RepName.value = rep3b_name;
				theForm.Vision_RepPH.value = rep3b_ph;
				theForm.Vision_RepFAX.value = rep3b_fax;
				theForm.Vision_RepPic.value = rep3b_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 = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_pic;
		break;
    case 'MI':  theForm.Vision_Rep.value = rep3b;
				theForm.Vision_RepName.value = rep3b_name;
				theForm.Vision_RepPH.value = rep3b_ph;
				theForm.Vision_RepFAX.value = rep3b_fax;
				theForm.Vision_RepPic.value = rep3b_pic;
       		break;
    case 'MN':	theForm.Vision_Rep.value = rep3b;
				theForm.Vision_RepName.value = rep3b_name;
				theForm.Vision_RepPH.value = rep3b_ph;
				theForm.Vision_RepFAX.value = rep3b_fax;
				theForm.Vision_RepPic.value = rep3b_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 = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_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 = 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 '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 = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_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 = 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 'NY':  theForm.Vision_Rep.value = rep3b;
				theForm.Vision_RepName.value = rep3b_name;
				theForm.Vision_RepPH.value = rep3b_ph;
				theForm.Vision_RepFAX.value = rep3b_fax;
				theForm.Vision_RepPic.value = rep3b_pic;
       		break;	   
    case 'NC':  theForm.Vision_Rep.value = rep3b;
				theForm.Vision_RepName.value = rep3b_name;
				theForm.Vision_RepPH.value = rep3b_ph;
				theForm.Vision_RepFAX.value = rep3b_fax;
				theForm.Vision_RepPic.value = rep3b_pic;
       		break;
    case 'ND':	theForm.Vision_Rep.value = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_pic;
		break;
    case 'OH':  theForm.Vision_Rep.value = rep3;
				theForm.Vision_RepName.value = rep3_name;
				theForm.Vision_RepPH.value = rep3_ph;
				theForm.Vision_RepFAX.value = rep3_fax;
				theForm.Vision_RepPic.value = rep3_pic;
       		break;
    case 'OK':	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 'OR':  theForm.Vision_Rep.value = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_pic;
       		break;
    case 'PA':	theForm.Vision_Rep.value = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_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 = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_pic;
       		break;
    case 'TN':	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 'TX':  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 'UT':	theForm.Vision_Rep.value = rep3b;
				theForm.Vision_RepName.value = rep3b_name;
				theForm.Vision_RepPH.value = rep3b_ph;
				theForm.Vision_RepFAX.value = rep3b_fax;
				theForm.Vision_RepPic.value = rep3b_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 = 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 'WA':  theForm.Vision_Rep.value = rep4;
				theForm.Vision_RepName.value = rep4_name;
				theForm.Vision_RepPH.value = rep4_ph;
				theForm.Vision_RepFAX.value = rep4_fax;
				theForm.Vision_RepPic.value = rep4_pic;
       		break;
    case 'WV':	theForm.Vision_Rep.value = rep3b;
				theForm.Vision_RepName.value = rep3b_name;
				theForm.Vision_RepPH.value = rep3b_ph;
				theForm.Vision_RepFAX.value = rep3b_fax;
				theForm.Vision_RepPic.value = rep3b_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 = rep3;
				theForm.Vision_RepName.value = rep3_name;
				theForm.Vision_RepPH.value = rep3_ph;
				theForm.Vision_RepFAX.value = rep3_fax;
				theForm.Vision_RepPic.value = rep3_pic;
		break; 
	 case 'XX':	theForm.Vision_Rep.value = rep3;
				theForm.Vision_RepName.value = rep3_name;
				theForm.Vision_RepPH.value = rep3_ph;
				theForm.Vision_RepFAX.value = rep3_fax;
				theForm.Vision_RepPic.value = rep3_pic;
		break; 	
    case '':    
    default:    theForm.Vision_Rep.value = rep6;
				theForm.Vision_RepName.value = rep6_name;
				theForm.Vision_RepPH.value = rep6_ph;
				theForm.Vision_RepFAX.value = rep6_fax;
				theForm.Vision_RepPic.value = rep6_pic;
       break
  	}

	  return (true);
}
