//Laminating Hide/Show
function hideLam() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'none';
		}
	}
}

function showLam() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'table-row';
		}
	}
}

function doClickLam(t,x){
	if (t.type == 'radio'){
		if (t.value == 'Laminate') {
			showLam(x);
		} else {
			hideLam(x);
		}
	} else if (t.type == 'reset') {
		hideLam(x);
	}
}

//Plastic Coil Binding Hide/Show
function hidePCB() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'none';
		}
	}
}

function showPCB() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'table-row';
		}
	}
}

function doClickPCB(t,x){
	if (t.type == 'radio'){
		if (t.value == 'Plastic Coil') {
			showPCB(x);
		} else {
			hidePCB(x);
		}
	} else if (t.type == 'reset') {
		hideLam(x);
	}
}

//GBC Hide/Show
function hideGBC() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'none';
		}
	}
}

function showGBC() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'table-row';
		}
	}
}

function doClickGBC(t,x){
	if (t.type == 'radio'){
		if (t.value == 'GBC') {
			showPCB(x);
		} else {
			hidePCB(x);
		}
	} else if (t.type == 'reset') {
		hideLam(x);
	}
}

//Wire-O Hide/Show
function hideWireO() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'none';
		}
	}
}

function showWireO() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'table-row';
		}
	}
}

function doClickWireO(t,x){
	if (t.type == 'radio'){
		if (t.value == 'Wire O') {
			showPCB(x);
		} else {
			hidePCB(x);
		}
	} else if (t.type == 'reset') {
		hideLam(x);
	}
}

//Saddle Hide/Show
function hideSaddle() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'none';
		}
	}
}

function showSaddle() {
	var n = arguments.length,
	el, id;
	for (var i=0; i<n; i++) {
		id = arguments[i];
		if ((el = document.getElementById(id)) || (el = document.all[id])) {
			if (el.style) el.style.display = 'table-row';
		}
	}
}

function doClickSaddle(t,x){
	if (t.type == 'radio'){
		if (t.value == 'Saddle Bind') {
			showPCB(x);
		} else {
			hidePCB(x);
		}
	} else if (t.type == 'reset') {
		hideLam(x);
	}
}

function initLam(){
	if (document.forms) {
		var f = document.forms;
		for (var i=0,len=f.length; i<len; i++) {
			f[i].reset();
		}
	}
}