function select($width,$height){
document.firm.s.value=$width;
document.firm.v.value=$height;
}

function select2($width,$height){
document.firm.sd.value=$width;
document.firm.vd.value=$height;
}
var state = 'none';
function showhide(layer_ref) {
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "state=document.all." + layer_ref + ".style.display");
}
if (document.layers) { //IS NETSCAPE 4 or below
state=document.layers[layer_ref].display;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
state=maxwell_smart.style.display;
}
if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.display = state;
}
}
