//functions.js //test var loc = "" + window.location; if(loc.indexOf('outfitter')>0){ window.location.href="http://www.wildbirdcenter.com/stores/jen"; } function calendar_DoFSCommand(command, args){ return true; } function nospam(u,d){ url ="mailto:" + u + "@" + d; location.href = url; } var stateName; function setState(name){ stateName = name; } function storecount(n){ if(!n>=1){ document.write('
There are no stores in ' + stateName + '
'); } } function validate_tellafriend(){ var form = document.forms['tellafriend']; var send = 1; for(var i=0; i < form.elements.length; i++){ if(form.elements[i].value==""){ send = 0; } } if(send==1){ return true; } else{ alert("please enter all form fields"); return false; } } var bookmarkurl="http://www.wildbird.com" ; var bookmarktitle="Wild Bird Centers of America, Inc. - Home page" ; function addbookmark(){ //if (document.all){ window.external.AddFavorite(bookmarkurl,bookmarktitle); //} } function flash_height(h){ var obj = document.getElementsByTagName("object"); var emb = document.getElementsByTagName("embed"); for(var i=0; i < obj.length; i++){ if(obj[i].getAttribute("id")=="calendar"){ obj[i].setAttribute("height",h); } } for(var i=0;i < emb.length;i++){ if(emb[i].getAttribute("id")=="calendar"){ emb[i].setAttribute("height",h); } } } window.onload=function(){ var leftCol = document.getElementById('leftCol'); var h4 = null; var divs = document.getElementsByTagName('div'); for(var i=0;i