function check(){   
       var str = document.forms[0].StaffName.value;   
       if (str == ""){      
               alert("\neMail whom?");      
               return false;      
       }   
       if (str == "Name of Employee"){      
               alert("\nPlease select and employee.");      
               return false;      
       }
	return true;     
}
function send()
{

var realname = document.stafform.StaffName.value

if ( (check()) ){
	parent.location = 'mailto:' + document.stafform[realname].value + '@shamrockauto.com';
	}
}

//Array function compatible with Netscape 2.0x and 3.0x

function MakeArray(n) {                 
   this.length = n;
   for (var i = 1; i <= n; i++) { 
     this[i] = 0 }
     return this
     }

//create a list of employees full names below
//each employee who has a graphic requires a name entry here

var NameVal = new MakeArray(1);
        NameVal[0] = 1; //number of tips
        NameVal[1] = "Ted W.";
		NameVal[2] = "Penny P.";
		NameVal[3] = "Dave R.";
		NameVal[4] = "Joel N.";
		NameVal[5] = "Virgil S.";
		NameVal[6] = "Jerry C.";
		NameVal[7] = "Randy C.";
		NameVal[8] = "Harry S.";
        NameVal[9] = "Larry H.";
		NameVal[10] = "Matt B.";
		NameVal[11] = "Kelly A.";
		NameVal[12] = "Mike P.";
		NameVal[13] = "Justin H.";
		NameVal[14] = "George R.";
		NameVal[15] = "Jim S.";
		NameVal[16] = "Beth H.";
		NameVal[17] = "Brett S.";
		NameVal[18] = "Bob R.";
		NameVal[19] = "Kathy E.";
		NameVal[20] = "Sue S.";
		NameVal[21] = "Cherie B.";

		
var InfoVal = new MakeArray(1);
        InfoVal[0] = 1; //number of tips
		InfoVal[1] = "Dealer Principal ";
		InfoVal[2] = "Office Manager ";
		InfoVal[3] = "Sales Manager ";
		InfoVal[4] = "Sales Manager ";
		InfoVal[5] = "Nissan Manager ";
		InfoVal[6] = "Service Director ";
		InfoVal[7] = "Parts Manager ";
		InfoVal[8] = "Bodyshop ";
		InfoVal[9] = "Internet Sales ";
		InfoVal[10] = "Sales ";
		InfoVal[11] = "Sales ";
		InfoVal[12] = "Sales ";
		InfoVal[13] = "Sales ";
		InfoVal[14] = "SAAB Specialist ";
		InfoVal[15] = "Sales ";
		InfoVal[16] = "Assistant Office Manager ";
		InfoVal[17] = "Assistant Service Director ";
		InfoVal[18] = "Service Advisor ";
		InfoVal[19] = "Warranty Clerk ";
		InfoVal[20] = "Appointment Coordinator ";
		InfoVal[21] = "Parts Counter ";

		

function writeAll(imgIndex ){        
      document.stafform.StaffName.value=(NameVal[imgIndex]);
		      document.stafform.StaffInfo.value=(InfoVal[imgIndex]);
}

