/*
CheckFormValues.js
Marc R. Grosso
08 September 2006

This module checks the data from the order form.

font
height
color
*/

function check_order_form(form)  {

/*
//document.order.font.value
// myForm = document.getElementByID("order");
heightin = document.order.height.value;
fontin =  document.order.font.value;
colorin = document.order.color.value;

alert("value of height submitted = " + document.order.height.value);
alert("value of color submitted = " + document.order.color.value);
alert("value of font submitted = " + document.order.font.value);

alert("value of height passed in = " + heightin);
alert("value of color passed in = " + colorin);
alert("value of font passed in = " + fontin);

for (var i=0; i<document.order.height.options.length;i ++) {
    if (document.order.height.options[i].value == heightin) {
        document.order.height.options[i].selected = true;
		alert("value of height checked = " + heightin);
		alert("value of height found = " + document.order.height.options[i].value);
	}
}

for (var i=0; i<document.order.font.options.length; i++) {
    if (document.order.font.options[i].value == fontin) {
        document.order.font.options[i].selected = true;
		alert("value of font checked = " + fontin);
		alert("value of font found = " + document.order.font.options[i].value);
	}
}

for (var i=0; i<document.order.color.options.length; i++) {
    if (document.order.color.options[i].value == colorin) {
        document.order.color.options[i].selected = true;
		alert("value of color checked = " + colorin);
		alert("value of color found = " + document.order.color.options[i].value);
	}
}

*/
}

function H1(heightin) {
//	if(heightin) {
//        document.order.height.selected = true;
//		alert("value of height checked = " + heightin);
//		document.write(document.order.height + "selected");
//	}
}

function C1(colorin) {
//	if(colorin) {
//		document.order.color.selected = true;
//		alert("value of color checked = " + colorin);
//		document.write("selected");
//	}
}

function F1(fontin) {
//	if(fontin) {
//        document.order.font.selected = true;
//		alert("value of font checked = " + fontin);
//		document.write("selected");
//	}

}