function dropmenu() {
	var menu2 = new MENU("top");
	
	menu2.entry(1, 32, "<b>RoHS/Lead-Free</b>","pdffiles/rohscertificateofcompliance.pdf", "_blank");	
	menu2.entry(1, 32, "<b>Technical Articles</b>","#", "");
	menu2.entry(2, 32, "<b>Dielectric Characteristics</b>","pdffiles/DielectricCharacteristics.pdf", "_blank");
	menu2.entry(2, 32, "<b>Environmental Characteristics</b>","pdffiles/EnvironmentalCharacteristics.pdf", "_blank");
	menu2.entry(2, 32, "<b>Soldering Guidelines</b>","pdffiles/SolderingGuidelines.pdf", "_blank");
	menu2.entry(2, 32, "<b>Tape and Reel Specifications</b>","pdffiles/TapeandReel Specifications.pdf", "_blank");
	menu2.entry(2, 32, "<b>Test Specifications</b>","pdffiles/TestSpecifications.pdf", "_blank");
	menu2.entry(2, 32, "<b>Basic Capacitor Formulas</b>","pdffiles/BasicCapacitorFormulas.pdf", "_blank");
	menu2.entry(1, 32, "<b>Check Stock</b>","checkstock.htm", "");
	menu2.entry(1, 32, "<b>Print Forms</b>","#", "");
	menu2.entry(2, 32, "<b>Quote Inquiry</b>","pdffiles/QuoteInquiry.pdf", "_blank");
	menu2.entry(2, 32, "<b>Application for Net Terms</b>","pdffiles/ApplicationforNetTerms.pdf", "_blank");
	menu2.entry(1, 32, "<b>Careers</b>","careers.htm", "");
	/*menu2.entry(2, 32, "<b>Current Job</b>","#", "");
	
	menu2.mainTop = 10;
	menu2.mainLeft = 160;
	menu2.mainBGColor = "back.jpg";*/	
	menu2.create();
}	

function openwin(URL)
{
window.open(URL,'aa','toolbar=no,scrollbars,width=620,height=550,left=0,top=0,menubar=no,status=no,directories=no,location=no');
}

function redirect(){
	
	add1 = document.form1.address.value
	csz1 = document.form1.statezip.value
	redurl = add1.replace(" ","+") + csz1.replace(" ","+");
	alert(redurl);
	}
	
function replaceString() { 
	str1 = 'addr='+ document.form1.address.value 
	str2 = '&csz=' + document.form1.statezip.value
	str3  = '&country=us'
	sString = str1 + str2 + str3
	//alert(sString);
	sReplaceThis = " "
	sWithThis = "+"
    if (sReplaceThis != "" && sReplaceThis != sWithThis) {
      var counter = 0;
      var start = 0;
      var before = "";
      var after = "";
      while (counter<sString.length) {
        start = sString.indexOf(sReplaceThis, counter);
        if (start == -1){
         break;
         } else {
           before = sString.substr(0, start);
           after = sString.substr(start + sReplaceThis.length, sString.length);
           sString = before + sWithThis + after;
           counter = before.length + sWithThis.length;
          }
        }
      }
     redurl = 'http://maps.yahoo.com/maps_result?' + sString
	 window.open(redurl);
	 //alert(redurl);
   return sString;
   
  }
