// Add to Favorites

var bookmarkurl="http://"
var bookmarktitle="title"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

// Open Popups

function openwin(nombre,ancho,alto) {
props = 'width=' + ancho + ',height=' + alto +
',scrollbars=no,resizable=no';
window.open(nombre,'',props)
}

// Open Popups / YES

function openwin2(nombre,ancho,alto) {
props = 'width=' + ancho + ',height=' + alto +
',scrollbars=yes,resizable=no';
window.open(nombre,'',props)
}

//written by manuel villanueva 5/10/06 
function inCm(form) { ht=form.ht.value; if((ht==null)||(ht=="")||(isNaN(ht))){ form.answer.value="?"; form.show.value="?"; alert('Please enter a length with numbers only. Use a period for decimal place.'); form.ht.focus(); form.ht.select(); return false; } if (form.choice[0].checked){ var answer= ht * 0.3937008; var round=Math.round(10*answer)/10; var text1=" cm = "; var text2=" in"; var text3=" centimeters multiplied by 0.3937008 = "; var text4=" inches."; form.answer.value=ht + text1 + round + text2; form.show.value= ht+ text3 + round + text4; } if (form.choice[1].checked){ var answer=ht * 2.54; var round=Math.round(10*answer)/10; text1=" in = "; text2=" cm"; text3=" inches multiplied by 2.54 = "; text4=" centimeters."; form.answer.value=ht + text1 + round + text2; form.show.value= ht + text3 + round + text4; } }


function toggle(obj) {
 var el = document.getElementById(obj);
 el.style.display = (el.style.display != 'none' ? 'none' : '' );
}