// JavaScript Document function toggleDisplay(x) { if( document.getElementById(x).style.display == "none" ) { document.getElementById(x).style.display = "block"; } else { document.getElementById(x).style.display = "none"; } } function clearText(thefield){ if (thefield.defaultValue==thefield.value) thefield.value = "" } function parseselect(selectid,divid,svalue,svalue2,svalue3) { if (selectid.value == svalue || selectid.value == svalue2 || selectid.value == svalue3) { document.getElementById(divid).style.display = "block"; } else { document.getElementById(divid).style.display = "none"; } } function setchange() { // This function Copyright 2007 Adam Smith // adam@precisedesign.com | www.precisedesign.com // You may use this function on your web pages, provided this credit stays intact. var inputs=document.getElementsByTagName("input"); for (var i=0;i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i maxwidth) { oldwidth = getimage.width; oldheight = getimage.height; newheight = parseInt(oldheight * maxwidth / oldwidth); getimage.width = maxwidth; getimage.height = newheight; //alert("New width = "+maxwidth+" New height = "+newheight); getimage.style.marginLeft = 0; getimage.style.marginRight = 0; } }