/**
All Darden specific functions go here
**/

/** This value represents the default URL for the site.  It is required for the 3rd party templates to function properly **/

var g_defaultPath = 'http://www.dardenrestaurants.com/';

function printerWindow(pageName)
{
	
	var sURL;
	var sName;
	var sFeatures;
	
	sURL = pageName + '.asp?printer_friendly=true';
	sName = pageName;
	sFeatures = 'height=600, width=800, left=50, top=50, scrollbars=yes, menubar=yes';
	
	window.open(sURL, sName, sFeatures);
	
	
}

function lookAtMe()
{
	
	window.focus();
	
}

function W2Validate(W2Request)  {

{	
		//Tax Year validation
		if (document.W2Request.TaxYear.value=="")
		{alert("Please select a tax year for your request.")
		document.W2Request.TaxYear.focus();return false}

		//SSN field validation
		if (document.W2Request.SSN1.value.length<3 | document.W2Request.SSN2.value.length<2 | document.W2Request.SSN3.value.length<4) {
			alert("Please enter your complete Social Security Number.");
			document.W2Request.SSN1.focus();
			return false;}
		
		//First Name validation
		if (document.W2Request.FName.value=="")
		{alert("Please tell us your first name.")
		document.W2Request.FName.focus();return false}

		//Last Name validation
		if (document.W2Request.LName.value=="")
		{alert("Please tell us your last name.")
		document.W2Request.LName.focus();return false}
		
		//Street Address validation
		if (document.W2Request.Address.value=="")
		{alert("Please tell us your street address.")
		document.W2Request.Address.focus();return false}

		//City Name validation
		if (document.W2Request.City.value=="")
		{alert("Please tell us the city in which you live.")
		document.W2Request.City.focus();return false}
		
		//State validation
		if (document.W2Request.State.value=="")
		{alert("Please select the state in which you live.")
		document.W2Request.State.focus();return false}

		//Zip Code validation
		if (document.W2Request.ZipCode.value=="" | document.W2Request.ZipCode.value.length<5)
		{alert("Please tell us your full Zip Code.")
		document.W2Request.ZipCode.focus();return false}

		//PhoneNum field validation
		if (document.W2Request.PhoneNum1.value.length<3 | document.W2Request.PhoneNum2.value.length<3 | document.W2Request.PhoneNum3.value.length<4) {
			alert("Please enter your complete Phone Number.")
			document.W2Request.PhoneNum1.focus()
			return false}		
		
		//Email field validation
			if (document.W2Request.Email.value=="")
			{alert("Please enter a valid e-mail address.")
			document.W2Request.Email.focus();return false}

				{if (document.W2Request.Email.value.indexOf("@")==-1 ||
 				document.W2Request.Email.value.indexOf(".")==-1 ||
				document.W2Request.Email.value.indexOf(" ")!=-1 || 
				document.W2Request.Email.value.length<6)
				{alert("This is not a valid e-mail address. Please re-enter.");
				document.W2Request.Email.focus();return false;
			}

		}

	}

}

function getRadioValue(radio) {
for (index=0; index<radio.length; index++)
{ if (radio[index].checked) return radio[index].value; }
return null;
}
function checkNum(field) {
var valid = "0123456789"
var temp;
for (var i=0; i<field.value.length; i++) {
temp = "" + field.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") return false;
}
return true
}
function isValidDate(dateStr) {

// To require a 4 digit year entry, use this line instead:
var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{4})$/;

var matchArray = dateStr.match(datePat); // is the format ok?
if (matchArray == null) {
alert("Date is not in a valid format.")
return false;
}
month = matchArray[1]; // parse date into variables
day = matchArray[3];
year = matchArray[4];
if (month < 1 || month > 12) { // check month range
alert("Month must be between 1 and 12.");
return false;
}
if (day < 1 || day > 31) {
alert("Day must be between 1 and 31.");
return false;
}
if ((month==4 || month==6 || month==9 || month==11) && day==31) {
alert("Month of "+month+" doesn't have 31 days!")
return false
}
if (month == 2) { // check for february 29th
var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
if (day>29 || (day==29 && !isleap)) {
alert("February " + year + " doesn't have " + day + " days!");
return false;
   }
}
return true;  // date is valid
} 
function checkDecimals(fieldName, fieldValue) {

decallowed = 2;  // how many decimals are allowed?

if (isNaN(fieldValue) || fieldValue == "") {
return false
}
else {
if (fieldValue.indexOf('.') == -1) fieldValue += ".";
dectext = fieldValue.substring(fieldValue.indexOf('.')+1, fieldValue.length);

if (dectext.length > decallowed)
{
return false
      }
   }
}
function whichArea(obj){

  if(obj.txtServiceArea.selectedIndex == 3){
	   obj.txtGeoAreaType.disabled = false;
	   obj.txtGeoAreaType.length=5
	   obj.txtGeoAreaType.options[0].value="Midwest"
	   obj.txtGeoAreaType.options[0].text="Midwest"
	   obj.txtGeoAreaType.options[1].value="Northeast"
	   obj.txtGeoAreaType.options[1].text="Northeast"
	   obj.txtGeoAreaType.options[2].value="Northwest"
	   obj.txtGeoAreaType.options[2].text="Northwest"
	   obj.txtGeoAreaType.options[3].value="Southeast"
	   obj.txtGeoAreaType.options[3].text="Southeast"
	   obj.txtGeoAreaType.options[4].value="Southwest"
	   obj.txtGeoAreaType.options[4].text="Southwest"
	   obj.txtGeoAreaType.selectedIndex = 0
   return
   }
   if(obj.txtServiceArea.selectedIndex == 4){
	   obj.txtGeoAreaType.disabled = false;
	   obj.txtGeoAreaType.length=2
	   obj.txtGeoAreaType.options[0].value="City"
	   obj.txtGeoAreaType.options[0].text="City"
	   obj.txtGeoAreaType.options[1].value="State"
	   obj.txtGeoAreaType.options[1].text="State"
	   obj.txtGeoAreaType.selectedIndex = 0
   return
   }
   if(obj.txtServiceArea.selectedIndex == 0 || obj.txtServiceArea.selectedIndex == 1 || obj.txtServiceArea.selectedIndex == 2){
	   obj.txtGeoAreaType.length=1
	   obj.txtGeoAreaType.options[0].value="N/A"
	   obj.txtGeoAreaType.options[0].text="N/A"
	   obj.txtGeoAreaType.selectedIndex = 0
	   obj.txtGeoAreaType.disabled = true;
   return
   }
  }
 function whichVendor(obj){
	 
   if(obj.VendorCategory.selectedIndex == 0){ //DEFAULT
	   obj.VendorSubCategory.length=1
	   obj.VendorSubCategory.options[0].value="N/A"
	   obj.VendorSubCategory.options[0].text="N/A"
	   obj.VendorSubCategory.selectedIndex = 0
	   obj.VendorSubCategory.disabled = true;
   return
   }
	 
   if(obj.VendorCategory.selectedIndex == 1){ //CEP
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=12
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Air Conditioning"
	   obj.VendorSubCategory.options[1].text="Air Conditioning"
	   obj.VendorSubCategory.options[2].value="Decor"
	   obj.VendorSubCategory.options[2].text="Decor"
	   obj.VendorSubCategory.options[3].value="Furnishings"
	   obj.VendorSubCategory.options[3].text="Furnishings"
	   obj.VendorSubCategory.options[4].value="Kitchen Equipment"
	   obj.VendorSubCategory.options[4].text="Kitchen Equipment"
	   obj.VendorSubCategory.options[5].value="Music"
	   obj.VendorSubCategory.options[5].text="Music"
	   obj.VendorSubCategory.options[6].value="POS & Security Systems"
	   obj.VendorSubCategory.options[6].text="POS & Security Systems"
	   obj.VendorSubCategory.options[7].value="Power Company"
	   obj.VendorSubCategory.options[7].text="Power Company"
	   obj.VendorSubCategory.options[8].value="Shredding"
	   obj.VendorSubCategory.options[8].text="Shredding"
	   obj.VendorSubCategory.options[9].value="Signage"
	   obj.VendorSubCategory.options[9].text="Signage"
	   obj.VendorSubCategory.options[10].value="Trash"
	   obj.VendorSubCategory.options[10].text="Trash"
	   obj.VendorSubCategory.options[11].value="Water Filtration & Softening"
	   obj.VendorSubCategory.options[11].text="Water Filtration & Softening"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }
   
   if(obj.VendorCategory.selectedIndex == 2){ //DESIGN AND CONSTRUCTION
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=12
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Architects"
	   obj.VendorSubCategory.options[1].text="Architects"
	   obj.VendorSubCategory.options[2].value="Blue Print Reproduction"
	   obj.VendorSubCategory.options[2].text="Blue Print Reproduction"
	   obj.VendorSubCategory.options[3].value="Electricians"
	   obj.VendorSubCategory.options[3].text="Electricians"
	   obj.VendorSubCategory.options[4].value="Engineering"
	   obj.VendorSubCategory.options[4].text="Engineering"
	   obj.VendorSubCategory.options[5].value="General Contractor"
	   obj.VendorSubCategory.options[5].text="General Contractor"
	   obj.VendorSubCategory.options[6].value="Interior Design"
	   obj.VendorSubCategory.options[6].text="Interior Design"
	   obj.VendorSubCategory.options[7].value="Landscape Design"
	   obj.VendorSubCategory.options[7].text="Landscape Design"
	   obj.VendorSubCategory.options[8].value="Manufacturing"
	   obj.VendorSubCategory.options[8].text="Manufacturing"
	   obj.VendorSubCategory.options[9].value="Painting Contractors"
	   obj.VendorSubCategory.options[9].text="Painting Contractors"
	   obj.VendorSubCategory.options[10].value="Remodels"
	   obj.VendorSubCategory.options[10].text="Remodels"
	   obj.VendorSubCategory.options[11].value="Stainless Steel Fabrication"
	   obj.VendorSubCategory.options[11].text="Stainless Steel Fabrication"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

   if(obj.VendorCategory.selectedIndex == 3){ //DISTRIBUTION LOGISTICS
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=6
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="3rd Party Logistics"
	   obj.VendorSubCategory.options[1].text="3rd Party Logistics"
	   obj.VendorSubCategory.options[2].value="Air Freight and Overnight Expeditors"
	   obj.VendorSubCategory.options[2].text="Air Freight and Overnight Expeditors"
	   obj.VendorSubCategory.options[3].value="Brokering"
	   obj.VendorSubCategory.options[3].text="Brokering"
	   obj.VendorSubCategory.options[4].value="Consulting"
	   obj.VendorSubCategory.options[4].text="Consulting"
	   obj.VendorSubCategory.options[5].value="Trucking"
	   obj.VendorSubCategory.options[5].text="Trucking"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

   if(obj.VendorCategory.selectedIndex == 4){ //FINANCE
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=1
	   obj.VendorSubCategory.options[0].value="none"
	   obj.VendorSubCategory.options[0].text="(None)"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

   if(obj.VendorCategory.selectedIndex == 5){ //GENERAL SERVICES
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=16
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Catering"
	   obj.VendorSubCategory.options[1].text="Catering"
	   obj.VendorSubCategory.options[2].value="Cleaning"
	   obj.VendorSubCategory.options[2].text="Cleaning"
	   obj.VendorSubCategory.options[3].value="Electrician"
	   obj.VendorSubCategory.options[3].text="Electrician"
	   obj.VendorSubCategory.options[4].value="Equipment Repair"
	   obj.VendorSubCategory.options[4].text="Equipment Repair"
	   obj.VendorSubCategory.options[5].value="Grounds Care"
	   obj.VendorSubCategory.options[5].text="Grounds Care"
	   obj.VendorSubCategory.options[6].value="HVAC/Refrigeration"
	   obj.VendorSubCategory.options[6].text="HVAC/Refrigeration"
	   obj.VendorSubCategory.options[7].value="Interior Decoration"
	   obj.VendorSubCategory.options[7].text="Interior Decoration"
	   obj.VendorSubCategory.options[8].value="Janitorial"
	   obj.VendorSubCategory.options[8].text="Janitorial"
	   obj.VendorSubCategory.options[9].value="Knife Sharpener"
	   obj.VendorSubCategory.options[9].text="Knife Sharpener"
	   obj.VendorSubCategory.options[10].value="Locksmith"
	   obj.VendorSubCategory.options[10].text="Locksmith"
	   obj.VendorSubCategory.options[11].value="Paving"
	   obj.VendorSubCategory.options[11].text="Paving"
	   obj.VendorSubCategory.options[12].value="Pest Service"
	   obj.VendorSubCategory.options[12].text="Pest Service"
	   obj.VendorSubCategory.options[13].value="Plant Service"
	   obj.VendorSubCategory.options[13].text="Plant Service"
	   obj.VendorSubCategory.options[14].value="Plumbers"
	   obj.VendorSubCategory.options[14].text="Plumbers"
	   obj.VendorSubCategory.options[15].value="Security"
	   obj.VendorSubCategory.options[15].text="Security"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

   if(obj.VendorCategory.selectedIndex == 6){ //HUMAN RESOURCES
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=22
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Airlines"
	   obj.VendorSubCategory.options[1].text="Airlines"
	   obj.VendorSubCategory.options[2].value="Assessment instruments and companies"
	   obj.VendorSubCategory.options[2].text="Assessment instruments and companies"
	   obj.VendorSubCategory.options[3].value="Awards/Incentives/Gifts"
	   obj.VendorSubCategory.options[3].text="Awards/Incentives/Gifts"
	   obj.VendorSubCategory.options[4].value="Career fairs"
	   obj.VendorSubCategory.options[4].text="Career fairs"
	   obj.VendorSubCategory.options[5].value="Caterers"
	   obj.VendorSubCategory.options[5].text="Caterers"
	   obj.VendorSubCategory.options[6].value="Consultants"
	   obj.VendorSubCategory.options[6].text="Consultants"
	   obj.VendorSubCategory.options[7].value="Convention Signage/Displays"
	   obj.VendorSubCategory.options[7].text="Convention Signage/Displays"
	   obj.VendorSubCategory.options[8].value="Courier service"
	   obj.VendorSubCategory.options[8].text="Courier service"
	   obj.VendorSubCategory.options[9].value="Employment advertising firms"
	   obj.VendorSubCategory.options[9].text="Employment advertising firms"
	   obj.VendorSubCategory.options[10].value="Employment advertising publications"
	   obj.VendorSubCategory.options[10].text="Employment advertising publications"
	   obj.VendorSubCategory.options[11].value="Employment Search firms"
	   obj.VendorSubCategory.options[11].text="Employment Search firms"
	   obj.VendorSubCategory.options[12].value="Flowers"
	   obj.VendorSubCategory.options[12].text="Flowers"
	   obj.VendorSubCategory.options[13].value="Hotels"
	   obj.VendorSubCategory.options[13].text="Hotels"
	   obj.VendorSubCategory.options[14].value="Insurance"
	   obj.VendorSubCategory.options[14].text="Insurance"
	   obj.VendorSubCategory.options[15].value="Limousine service"
	   obj.VendorSubCategory.options[15].text="Limousine service"
	   obj.VendorSubCategory.options[16].value="Relocation"
	   obj.VendorSubCategory.options[16].text="Relocation"
	   obj.VendorSubCategory.options[17].value="Schools and seminar providers"
	   obj.VendorSubCategory.options[17].text="Schools and seminar providers"
	   obj.VendorSubCategory.options[18].value="Temporary employment agencies"
	   obj.VendorSubCategory.options[18].text="Temporary employment agencies"
	   obj.VendorSubCategory.options[19].value="Training Materials"
	   obj.VendorSubCategory.options[19].text="Training Materials"
	   obj.VendorSubCategory.options[20].value="Training Program designers and developers"
	   obj.VendorSubCategory.options[20].text="Training Program designers and developers"
	   obj.VendorSubCategory.options[21].value="Travel"
	   obj.VendorSubCategory.options[21].text="Travel"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

   if(obj.VendorCategory.selectedIndex == 7){ //IT
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=5
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Consulting"
	   obj.VendorSubCategory.options[1].text="Consulting"
	   obj.VendorSubCategory.options[2].value="Hardware"
	   obj.VendorSubCategory.options[2].text="Hardware"
	   obj.VendorSubCategory.options[3].value="Software"
	   obj.VendorSubCategory.options[3].text="Software"
	   obj.VendorSubCategory.options[4].value="Training"
	   obj.VendorSubCategory.options[4].text="Training"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

   if(obj.VendorCategory.selectedIndex == 8){ //INTERNAL AUDIT
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=4
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Common Area Maintenance Audits"
	   obj.VendorSubCategory.options[1].text="Common Area Maintenance Audits"
	   obj.VendorSubCategory.options[2].value="Control Reviews"
	   obj.VendorSubCategory.options[2].text="Control Reviews"
	   obj.VendorSubCategory.options[3].value="Documentation of 404 Systems"
	   obj.VendorSubCategory.options[3].text="Documentation of 404 Systems"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

if(obj.VendorCategory.selectedIndex == 9){ //LEGAL
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=15
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Advertising"
	   obj.VendorSubCategory.options[1].text="Advertising"
	   obj.VendorSubCategory.options[2].value="Americans with Disabilities Act"
	   obj.VendorSubCategory.options[2].text="Americans with Disabilities Act"
	   obj.VendorSubCategory.options[3].value="Commercial Litigation"
	   obj.VendorSubCategory.options[3].text="Commercial Litigation"
	   obj.VendorSubCategory.options[4].value="Commercial Transactions & Transportation Matters"
	   obj.VendorSubCategory.options[4].text="Commercial Transactions & Transportation Matters"
	   obj.VendorSubCategory.options[5].value="Construction Law"
	   obj.VendorSubCategory.options[5].text="Construction Law"
	   obj.VendorSubCategory.options[6].value="Corporate/SEC"
	   obj.VendorSubCategory.options[6].text="Corporate/SEC"
	   obj.VendorSubCategory.options[7].value="Eminent Domain/Distribution"
	   obj.VendorSubCategory.options[7].text="Eminent Domain/Distribution"
	   obj.VendorSubCategory.options[8].value="Environmental"
	   obj.VendorSubCategory.options[8].text="Environmental"
	   obj.VendorSubCategory.options[9].value="Intellectual Property"
	   obj.VendorSubCategory.options[9].text="Intellectual Property"
	   obj.VendorSubCategory.options[10].value="Labor and Employment"
	   obj.VendorSubCategory.options[10].text="Labor and Employment"
	   obj.VendorSubCategory.options[11].value="Liquor Licensing & Compliance"
	   obj.VendorSubCategory.options[11].text="Liquor Licensing & Compliance"
	   obj.VendorSubCategory.options[12].value="Promotions"
	   obj.VendorSubCategory.options[12].text="Promotions"
	   obj.VendorSubCategory.options[13].value="Publicity"
	   obj.VendorSubCategory.options[13].text="Publicity"
	   obj.VendorSubCategory.options[14].value="Real Estate"
	   obj.VendorSubCategory.options[14].text="Real Estate"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

if(obj.VendorCategory.selectedIndex == 10){ //MARKETING
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=13
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Advertising"
	   obj.VendorSubCategory.options[1].text="Advertising"
	   obj.VendorSubCategory.options[2].value="Collateral Production/Distribution"
	   obj.VendorSubCategory.options[2].text="Collateral Production/Distribution"
	   obj.VendorSubCategory.options[3].value="Coupons"
	   obj.VendorSubCategory.options[3].text="Coupons"
	   obj.VendorSubCategory.options[4].value="Creative Design"
	   obj.VendorSubCategory.options[4].text="Creative Design"
	   obj.VendorSubCategory.options[5].value="Direct Mail"
	   obj.VendorSubCategory.options[5].text="Direct Mail"
	   obj.VendorSubCategory.options[6].value="Merchandising"
	   obj.VendorSubCategory.options[6].text="Merchandising"
	   obj.VendorSubCategory.options[7].value="Paid Media"
	   obj.VendorSubCategory.options[7].text="Paid Media"
	   obj.VendorSubCategory.options[8].value="Photography"
	   obj.VendorSubCategory.options[8].text="Photography"
	   obj.VendorSubCategory.options[9].value="Premium-Etc"
	   obj.VendorSubCategory.options[9].text="Premium-Etc"
	   obj.VendorSubCategory.options[10].value="Print Production"
	   obj.VendorSubCategory.options[10].text="Print Production"
	   obj.VendorSubCategory.options[11].value="Promotions"
	   obj.VendorSubCategory.options[11].text="Promotions"
	   obj.VendorSubCategory.options[12].value="Research"
	   obj.VendorSubCategory.options[12].text="Research"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

   if(obj.VendorCategory.selectedIndex == 11){ //MEDIA & COMMUNICATION
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=15
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Bindery"
	   obj.VendorSubCategory.options[1].text="Bindery"
	   obj.VendorSubCategory.options[2].value="Die Cutting"
	   obj.VendorSubCategory.options[2].text="Die Cutting"
	   obj.VendorSubCategory.options[3].value="Envelops (Converter, Jet Printing)"
	   obj.VendorSubCategory.options[3].text="Envelops (Converter, Jet Printing)"
	   obj.VendorSubCategory.options[4].value="Finishing Printers"
	   obj.VendorSubCategory.options[4].text="Finishing Printers"
	   obj.VendorSubCategory.options[5].value="Folding"
	   obj.VendorSubCategory.options[5].text="Folding"
	   obj.VendorSubCategory.options[6].value="Inserting"
	   obj.VendorSubCategory.options[6].text="Inserting"
	   obj.VendorSubCategory.options[7].value="Laminating"
	   obj.VendorSubCategory.options[7].text="Laminating"
	   obj.VendorSubCategory.options[8].value="Numbering"
	   obj.VendorSubCategory.options[8].text="Numbering"
	   obj.VendorSubCategory.options[9].value="Off Set"
	   obj.VendorSubCategory.options[9].text="Off Set"
	   obj.VendorSubCategory.options[10].value="Perforating"
	   obj.VendorSubCategory.options[10].text="Perforating"
	   obj.VendorSubCategory.options[11].value="Pre Press(Type Setting,Design,Desk Top Publishing)"
	   obj.VendorSubCategory.options[11].text="Pre Press (Type Setting, Design, Desk Top Publishing)"
	   obj.VendorSubCategory.options[12].value="Score"
	   obj.VendorSubCategory.options[12].text="Score"
	   obj.VendorSubCategory.options[13].value="Screen Printing"
	   obj.VendorSubCategory.options[13].text="Screen Printing"
	   obj.VendorSubCategory.options[14].value="Silk Screen"
	   obj.VendorSubCategory.options[14].text="Silk Screen"
	   obj.VendorSubCategory.options[14].value="Translations"
	   obj.VendorSubCategory.options[14].text="Translations"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

if(obj.VendorCategory.selectedIndex == 12){ //PURCHASING
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=50
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Commodities - Appetizers"
	   obj.VendorSubCategory.options[1].text="Commodities - Appetizers"
	   obj.VendorSubCategory.options[2].value="Commodities - Bags"
	   obj.VendorSubCategory.options[2].text="Commodities - Bags"
	   obj.VendorSubCategory.options[3].value="Commodities - Bases/Sauces"
	   obj.VendorSubCategory.options[3].text="Commodities - Bases/Sauces"
	   obj.VendorSubCategory.options[4].value="Commodities - Batters/Breaders"
	   obj.VendorSubCategory.options[4].text="Commodities - Batters/Breaders"
	   obj.VendorSubCategory.options[5].value="Commodities - Beverage Mixers"
	   obj.VendorSubCategory.options[5].text="Commodities - Beverage Mixers"
	   obj.VendorSubCategory.options[6].value="Commodities - Breads/Doughs/Mixes"
	   obj.VendorSubCategory.options[6].text="Commodities - Breads/Doughs/Mixes"
	   obj.VendorSubCategory.options[7].value="Commodities - Cheese"
	   obj.VendorSubCategory.options[7].text="Commodities - Cheese"
	   obj.VendorSubCategory.options[8].value="Commodities - Chemicals"
	   obj.VendorSubCategory.options[8].text="Commodities - Chemicals"
	   obj.VendorSubCategory.options[9].value="Commodities - Coffee & Tea"
	   obj.VendorSubCategory.options[9].text="Commodities - Coffee & Tea"
	   obj.VendorSubCategory.options[10].value="Commodities - Containers"
	   obj.VendorSubCategory.options[10].text="Commodities - Containers"
	   obj.VendorSubCategory.options[11].value="Commodities - Dairy"
	   obj.VendorSubCategory.options[11].text="Commodities - Dairy"
	   obj.VendorSubCategory.options[12].value="Commodities - Desserts"
	   obj.VendorSubCategory.options[12].text="Commodities - Desserts"
	   obj.VendorSubCategory.options[13].value="Commodities - Dressings"
	   obj.VendorSubCategory.options[13].text="Commodities - Dressings"
	   obj.VendorSubCategory.options[14].value="Commodities - Film/Foil"
	   obj.VendorSubCategory.options[14].text="Commodities - Film/Foil"
	   obj.VendorSubCategory.options[15].value="Commodities - Gloves"
	   obj.VendorSubCategory.options[15].text="Commodities - Gloves"
	   obj.VendorSubCategory.options[16].value="Commodities - Italian Specialties"
	   obj.VendorSubCategory.options[16].text="Commodities - Italian Specialties"
	   obj.VendorSubCategory.options[17].value="Commodities - Napkins/Liners"
	   obj.VendorSubCategory.options[17].text="Commodities - Napkins/Liners"
	   obj.VendorSubCategory.options[18].value="Commodities - Linens"
	   obj.VendorSubCategory.options[18].text="Commodities - Linens"
	   obj.VendorSubCategory.options[19].value="Commodities - Packaging and Paper (Misc.)"
	   obj.VendorSubCategory.options[19].text="Commodities - Packaging and Paper (Misc.)"
	   obj.VendorSubCategory.options[20].value="Commodities - Pasta, Dry"
	   obj.VendorSubCategory.options[20].text="Commodities - Pasta, Dry"
	   obj.VendorSubCategory.options[21].value="Commodities - Pasta, Filled"
	   obj.VendorSubCategory.options[21].text="Commodities - Pasta, Filled"
	   obj.VendorSubCategory.options[22].value="Commodities - Produce, Canned"
	   obj.VendorSubCategory.options[22].text="Commodities - Produce, Canned"
	   obj.VendorSubCategory.options[23].value="Commodities - Produce, Frozen"
	   obj.VendorSubCategory.options[23].text="Commodities - Produce, Frozen"
	   obj.VendorSubCategory.options[24].value="Commodities - Produce, Salads & Value-added"
	   obj.VendorSubCategory.options[24].text="Commodities - Produce, Salads & Value-added"
	   obj.VendorSubCategory.options[25].value="Commodities - Promotional"
	   obj.VendorSubCategory.options[25].text="Commodities - Promotional"
	   obj.VendorSubCategory.options[26].value="Commodities - Seasonings"
	   obj.VendorSubCategory.options[26].text="Commodities - Seasonings"
	   obj.VendorSubCategory.options[27].value="Commodities - Soda & Juice"
	   obj.VendorSubCategory.options[27].text="Commodities - Soda & Juice"
	   obj.VendorSubCategory.options[28].value="Commodities - Soups"
	   obj.VendorSubCategory.options[28].text="Commodities - Soups"
	   obj.VendorSubCategory.options[29].value="Commodities - Spices"
	   obj.VendorSubCategory.options[29].text="Commodities - Spices"
	   obj.VendorSubCategory.options[30].value="Commodities - Sweeteners"
	   obj.VendorSubCategory.options[30].text="Commodities - Sweeteners"
	   obj.VendorSubCategory.options[31].value="Commodities - Tomato Products"
	   obj.VendorSubCategory.options[31].text="Commodities - Tomato Products"
	   obj.VendorSubCategory.options[32].value="Commodities - Value Added Seafood - Clams"
	   obj.VendorSubCategory.options[32].text="Commodities - Value Added Seafood - Clams"
	   obj.VendorSubCategory.options[33].value="Commodities - Value Added Seafood - Seafood Mixes (DC, Lump, Crab Cake)"
	   obj.VendorSubCategory.options[33].text="Commodities - Value Added Seafood - Seafood Mixes (DC, Lump, Crab Cake)"
	   obj.VendorSubCategory.options[34].value="Frozen Seafood - Lobster, Meat"
	   obj.VendorSubCategory.options[34].text="Frozen Seafood - Lobster, Meat"
	   obj.VendorSubCategory.options[35].value="Frozen Seafood - Other Seafood"
	   obj.VendorSubCategory.options[35].text="Frozen Seafood - Other Seafood"
	   obj.VendorSubCategory.options[36].value="Frozen Seafood - Shrimp Breaded"
	   obj.VendorSubCategory.options[36].text="Frozen Seafood - Shrimp Breaded"
	   obj.VendorSubCategory.options[37].value="Office products"
	   obj.VendorSubCategory.options[37].text="Office products"
	   obj.VendorSubCategory.options[38].value="Paper products"
	   obj.VendorSubCategory.options[38].text="Paper products"
	   obj.VendorSubCategory.options[39].value="Protein - Beef Products"
	   obj.VendorSubCategory.options[39].text="Protein - Beef Products"
	   obj.VendorSubCategory.options[40].value="Protein - Chicken Products"
	   obj.VendorSubCategory.options[40].text="Protein - Chicken Products"
	   obj.VendorSubCategory.options[41].value="Protein - Other Protein"
	   obj.VendorSubCategory.options[41].text="Protein - Other Protein"
	   obj.VendorSubCategory.options[42].value="Protein - Pork"
	   obj.VendorSubCategory.options[42].text="Protein - Pork"
	   obj.VendorSubCategory.options[43].value="Protein - Sausage"
	   obj.VendorSubCategory.options[43].text="Protein - Sausage"
	   obj.VendorSubCategory.options[44].value="Protein - Steaks"
	   obj.VendorSubCategory.options[44].text="Protein - Steaks"
	   obj.VendorSubCategory.options[45].value="Protein - Veal"
	   obj.VendorSubCategory.options[45].text="Protein - Veal"
	   obj.VendorSubCategory.options[46].value="Regional Items - Beverage - Beer"
	   obj.VendorSubCategory.options[46].text="Regional Items - Beverage - Beer"
	   obj.VendorSubCategory.options[47].value="Regional Items - Beverage - Wine"
	   obj.VendorSubCategory.options[47].text="Regional Items - Beverage - Wine"
	   obj.VendorSubCategory.options[48].value="Smallwares - Janitorial"
	   obj.VendorSubCategory.options[48].text="Smallwares - Janitorial"
	   obj.VendorSubCategory.options[49].value="Smallwares - Utensils/Tools"
	   obj.VendorSubCategory.options[49].text="Smallwares - Utensils/Tools"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }
   
   if(obj.VendorCategory.selectedIndex == 13){ //SECURITY
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=8
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Background Checks"
	   obj.VendorSubCategory.options[1].text="Background Checks"
	   obj.VendorSubCategory.options[2].value="Burglary Alarm Systems"
	   obj.VendorSubCategory.options[2].text="Burglary Alarm Systems"
	   obj.VendorSubCategory.options[3].value="Close Circuit TV"
	   obj.VendorSubCategory.options[3].text="Close Circuit TV"
	   obj.VendorSubCategory.options[4].value="Door Hardware"
	   obj.VendorSubCategory.options[4].text="Door Hardware"
	   obj.VendorSubCategory.options[5].value="Locking Systems"
	   obj.VendorSubCategory.options[5].text="Locking Systems"
	   obj.VendorSubCategory.options[6].value="On-site Security"
	   obj.VendorSubCategory.options[6].text="On-site Security"
	   obj.VendorSubCategory.options[7].value="Restaurant Safe"
	   obj.VendorSubCategory.options[7].text="Restaurant Safe"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

if(obj.VendorCategory.selectedIndex == 14){ //SMALLWARES
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=10
	   obj.VendorSubCategory.options[0].value=""
	   obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[1].value="Bar Items"
	   obj.VendorSubCategory.options[1].text="Bar Items"
	   obj.VendorSubCategory.options[2].value="Ceramics"
	   obj.VendorSubCategory.options[2].text="Ceramics"
	   obj.VendorSubCategory.options[3].value="Durable Plastics"
	   obj.VendorSubCategory.options[3].text="Durable Plastics"
	   obj.VendorSubCategory.options[4].value="Flatware"
	   obj.VendorSubCategory.options[4].text="Flatware"
	   obj.VendorSubCategory.options[5].value="Glassware"
	   obj.VendorSubCategory.options[5].text="Glassware"
	   obj.VendorSubCategory.options[6].value="Janitorial"
	   obj.VendorSubCategory.options[6].text="Janitorial"
	   obj.VendorSubCategory.options[7].value="Pots & Pans"
	   obj.VendorSubCategory.options[7].text="Pots & Pans"
	   obj.VendorSubCategory.options[8].value="Table Top"
	   obj.VendorSubCategory.options[8].text="Table Top"
	   obj.VendorSubCategory.options[9].value="Utensils & Appliances"
	   obj.VendorSubCategory.options[9].text="Utensils & Appliances"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }
   
   if(obj.VendorCategory.selectedIndex == 15){ //OTHER
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=2
	   //obj.VendorSubCategory.options[0].value=""
	   //obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[0].value="Other"
	   obj.VendorSubCategory.options[0].text="Other"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }

   //options used only by new supplier version of disclosure form

   if(obj.VendorCategory.selectedIndex == 16){ //CORPORATE DEPT PURCHASING
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=2
	   //obj.VendorSubCategory.options[0].value=""
	   //obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[0].value="None"
	   obj.VendorSubCategory.options[0].text="None"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }
   
   if(obj.VendorCategory.selectedIndex == 17){ //CORPORATE PURCHASING
	   obj.VendorSubCategory.disabled = false;
	   obj.VendorSubCategory.length=2
	   //obj.VendorSubCategory.options[0].value=""
	   //obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[0].value="None"
	   obj.VendorSubCategory.options[0].text="None"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }
   
   if(obj.VendorCategory.selectedIndex == 18){ //OPERATIONS PURCHASING
	   obj.VendorSubCategory.disabled = false;
	   //obj.VendorSubCategory.options[0].value=""
	   //obj.VendorSubCategory.options[0].text="(Choose)"
	   obj.VendorSubCategory.options[0].value="None"
	   obj.VendorSubCategory.options[0].text="None"
	   obj.VendorSubCategory.selectedIndex = 0
   return
   }
   
   if(obj.VendorStatus.selectedIndex == 2){
	   document.vendorForm.VendorNum.disabled = true;
   return
   }
  }

function validate() {

if(document.vendorForm.txtVendorName.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtVendorName.focus();
  return false;
  }
if(document.vendorForm.txtFedIDNum.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtFedIDNum.focus();
  return false;
  }
if(document.vendorForm.txtSICNum.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtSICNum.focus();
  return false;
  }
if(document.vendorForm.txtOwnerFirst.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtOwnerFirst.focus();
  return false;
  }
if(document.vendorForm.txtOwnerLast.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtOwnerLast.focus();
  return false;
  }
if(document.vendorForm.txtContactFirst.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtContactFirst.focus();
  return false;
  }
if(document.vendorForm.txtContactLast.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtContactLast.focus();
  return false;
  }
if(document.vendorForm.txtAddr1.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtAddr1.focus();
  return false;
  }
if(document.vendorForm.txtAddrCity.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtAddrCity.focus();
  return false;
  }
if(document.vendorForm.txtAddrSt.selectedIndex==0) 
  {
  alert("You must make a selection from the drop-down menu.");
  document.vendorForm.txtAddrSt.focus();
  return false;
  }
if(document.vendorForm.txtAddrZip.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtAddrZip.focus();
  return false;
  }
if(document.vendorForm.txtPhoneNum.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtPhoneNum.focus();
  return false;
  }
if(document.vendorForm.txtEmailAddress.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtEmailAddress.focus();
  return false;
  }
if (document.vendorForm.txtBusinessType.selectedIndex==0) {
alert("\nYou must make a selection from the drop-down menu.");
document.vendorForm.txtBusinessType.focus();
return false;
}
if(document.vendorForm.txtDateEstablished.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtDateEstablished.focus();
  return false;
  }
if (isValidDate(document.vendorForm.txtDateEstablished.value) == false) {
  document.vendorForm.txtDateEstablished.focus();
  return false;
}
var today=new Date(document.vendorForm.Date.value)
var Edate=new Date(document.vendorForm.txtDateEstablished.value)
if (Edate >= today)
  {
  alert("Established Date must be before Todays date.");
  document.vendorForm.txtDateEstablished.focus();
  return false;
  }
if(document.vendorForm.txtServiceArea.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtServiceArea.focus();
  return false;
  }
if(document.vendorForm.txtNumEmployees.value=="")
  {

  alert("Please complete the required fields.");
  document.vendorForm.txtNumEmployees.focus();
  return false;
  }
if(checkNum(document.vendorForm.txtNumEmployees) == false)
  {
  alert("Please enter only numbers.");
  document.vendorForm.txtNumEmployees.focus();
  return false;
  }
if(document.vendorForm.txtNumMinEmployees.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtNumMinEmployees.focus();
  return false;
  }
if(checkNum(document.vendorForm.txtNumMinEmployees) == false)
  {
  alert("Please enter only numbers.");
  document.vendorForm.txtNumMinEmployees.focus();
  return false;
  }
if(document.vendorForm.txtProductService.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtProductService.focus();
  return false;
  }
if(document.vendorForm.txtAnnualSales.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.txtAnnualSales.focus();
  return false;
  }
if (document.vendorForm.txtAnnualSales.value!="")
  {
    if (checkDecimals(document.vendorForm.txtAnnualSales, document.vendorForm.txtAnnualSales.value) == false)
	  {
	  alert("Please enter a number with no more than 2 decimals.");
  	  document.vendorForm.txtAnnualSales.focus();
      return false;
	  }
  }
if (getRadioValue(document.vendorForm.SmallBusiness) == null) 
 {
 alert('Please select yes or no.');
 document.vendorForm.SmallBusiness[0].focus();
 return false;
 }
if (getRadioValue(document.vendorForm.WomanOwned) == null) 
 {
 alert('Please select yes or no.');
 document.vendorForm.WomanOwned[0].focus();
 return false;
 }
if (getRadioValue(document.vendorForm.MinorityOwned) == null) 
 {
 alert('Please select yes or no.');
 document.vendorForm.MinorityOwned[0].focus();
 return false;
 }
if (getRadioValue(document.vendorForm.MinorityOwned) == "Yes")
 {
 	if (document.vendorForm.Ethnicity.selectedIndex==0) {
		alert("\nYou must make a selection from the drop-down menu.");
		document.vendorForm.Ethnicity.focus();
		return false;
	}
 }
//If they check Yes on Woman Owned or Minority Owned then require the certification fields 
 
if (getRadioValue(document.vendorForm.MinorityOwned) == "Yes" || getRadioValue(document.vendorForm.WomanOwned) == "Yes") {
 
		if (getRadioValue(document.vendorForm.CertifiedYN) == null) 
		 {
		 alert('Please select yes or no.');
		 document.vendorForm.CertifiedYN[0].focus();
		 return false;
		 }
		if (getRadioValue(document.vendorForm.CertifiedYN) == "No")
		 {
		 alert('You must be Certified to submit this form');
		 document.vendorForm.CertifiedYN[0].focus();
		 return false;
		 }
		if(document.vendorForm.CertifiedBy.value=="")
		  {
		  alert("Please complete the required fields.");
		  document.vendorForm.CertifiedBy.focus();
		  return false;
		  }
		if(isValidDate(document.vendorForm.CertifDate.value) == false)
		  {
		  document.vendorForm.CertifDate.focus();
		  return false;
		  }
		if(isValidDate(document.vendorForm.CertifExpireDate.value) == false)
		  {
		  document.vendorForm.CertifExpireDate.focus();
		  return false;
		  }
		var one=new Date(document.vendorForm.CertifExpireDate.value)
		var two=new Date(document.vendorForm.CertifDate.value)
		if (one < two)
		  {
		  alert("Certification Date must be before Certification Expire Date.");
		  document.vendorForm.CertifExpireDate.focus();
		  return false;
		  }
 }
//End

if(document.vendorForm.MemberNMSDC.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.MemberNMSDC.focus();
  return false;
  }
if(document.vendorForm.MemberWBENC.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.MemberWBENC.focus();
  return false;
  }
if (document.vendorForm.VendorCategory.selectedIndex==0) {
alert("\nYou must make a selection from the drop-down menu.");
document.vendorForm.VendorCategory.focus();
return false;
}
if (document.vendorForm.VendorSubCategory.selectedIndex==0) {
alert("\nYou must make a selection from the drop-down menu.");
document.vendorForm.VendorSubCategory.focus();
return false;
}
if(document.vendorForm.OfficerFirst1.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.OfficerFirst1.focus();
  return false;
  }
if(document.vendorForm.OfficerLast1.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.OfficerLast1.focus();
  return false;
  }
if(document.vendorForm.OfficerJobTitle1.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.OfficerJobTitle1.focus();
  return false;
  }
if(document.vendorForm.OfficerPctOwn1.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.OfficerPctOwn1.focus();
  return false;
  }
if(checkNum(document.vendorForm.OfficerPctOwn1) == false)
  {
  alert("Please enter only numbers.");
  document.vendorForm.OfficerPctOwn1.focus();
  return false;
  }
if(document.vendorForm.OfficerPctOwn1.value < 0 || document.vendorForm.OfficerPctOwn1.value > 100)
  {
  alert("Numbers must be between 0 and 100.");
  document.vendorForm.OfficerPctOwn1.focus();
  return false;
  }
/*if(document.vendorForm.OfficerAddr1_1.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.OfficerAddr1_1.focus();
  return false;
  }
if(document.vendorForm.OfficerCity1.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.OfficerCity1.focus();
  return false;
  }
if (document.vendorForm.OfficerSt1.selectedIndex==0) {
alert("\nYou must make a selection from the drop-down menu.");
document.vendorForm.OfficerSt1.focus();
return false;
}
if(document.vendorForm.OfficerZip1.value=="")
  {
  alert("Please complete the required fields.");
  document.vendorForm.OfficerZip1.focus();
  return false;
  }*/
if(document.vendorForm.OfficerPctOwn2.value!="")
  {
	  if(checkNum(document.vendorForm.OfficerPctOwn2) == false)
	  {
	  alert("Please enter only numbers.");
	  document.vendorForm.OfficerPctOwn2.focus();
	  return false;
	  }
	  if(document.vendorForm.OfficerPctOwn2.value < 0 || document.vendorForm.OfficerPctOwn2.value > 100)
	  {
	  alert("Numbers must be between 0 and 100.");
	  document.vendorForm.OfficerPctOwn2.focus();
	  return false;
	  }
  }
if(document.vendorForm.OfficerPctOwn3.value!="")
  {
	  if(checkNum(document.vendorForm.OfficerPctOwn3) == false)
	  {
	  alert("Please enter only numbers.");
	  document.vendorForm.OfficerPctOwn3.focus();
	  return false;
	  }
	  if(document.vendorForm.OfficerPctOwn3.value < 0 || document.vendorForm.OfficerPctOwn3.value > 100)
	  {
	  alert("Numbers must be between 0 and 100.");
	  document.vendorForm.OfficerPctOwn3.focus();
	  return false;
	  }
  }
if(document.vendorForm.OfficerPctOwn4.value!="")
  {
	  if(checkNum(document.vendorForm.OfficerPctOwn4) == false)
	  {
	  alert("Please enter only numbers.");
	  document.vendorForm.OfficerPctOwn4.focus();
	  return false;
	  }
	  if(document.vendorForm.OfficerPctOwn4.value < 0 || document.vendorForm.OfficerPctOwn4.value > 100)
	  {
	  alert("Numbers must be between 0 and 100.");
	  document.vendorForm.OfficerPctOwn4.focus();
	  return false;
	  }
  }

}
function drawNav(path)
{
	
	/* Netscape 7 */
	if (typeof path == 'undefined')
	{
		
		path = g_defaultPath;
		
	}
	
	/* Other Browsers */
	if (path == null || path == '')
	{
		
		path = g_defaultPath;
		
	}
	
	var html = '<table border = "0" style="z-index:900" cellpadding="0" cellspacing="0"><tr><td class="mainNav"><img src="' + path + 'images/spacer.gif" width="1" height="18" alt=""></td><td class="mainNav" align="center" valign="middle"><a href = "' + path +'default.asp" class="mainNav">Home</a></td><td class="mainNav">&nbsp;</td><td class="mainNav" align="center" valign="middle"><a href = "' + path + 'rest_locator.asp" class="mainNav">Restaurant Locator</a></td><td class="mainNav">&nbsp;</td><td class="mainNav" align="center" valign="middle"><a href = "' + path + 'abt_gc_faq.asp" class="mainNav">Gift Cards</a></td><td class="mainNav">&nbsp;</td><td class="mainNav" align="center" valign="middle"><a href = "' + path + 'careers.asp" class="mainNav">Careers at Darden</a></td><td class="mainNav">&nbsp;</td><td class="mainNav" align="center" valign="middle"><a href = "' + path + 'abt_contact.asp" class="mainNav">Contact Information</a></td><td class="mainNav">&nbsp;</td><td class="mainNav" align="center" valign="middle"><a href = "' + path + 'search.asp" class="mainNav">Search</a></td><td class="mainNav">&nbsp;</td></tr><tr><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="285" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="34" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="10" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="90" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="10" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="50" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="10" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="85" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="10" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="95" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="10" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="35" height="1" alt=""></td><td class="mainNav"><img src = "' + path + 'images/spacer.gif" width="5" height="1" alt=""></td></tr></table>';
	
	document.write(html);
	
	return false;
}

function openWindow()
{

window.open('div_mv_thankx_ltr.asp','win1','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=600,height=500');
//window.open(path,'win1','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=' + width + ',height=' + height + '');

}