

function statusRemover() {
	window.status = '';
	return true;
}



function btnOn(btn)
{
	btn.className = "submtOn";
}


function btnOff(btn)
{
	btn.className = "submt";
}


function allBoxes(which) {
		for (i=0; i<document.search_form[which].length; i++) {
      document.search_form[which][i].checked = true
		}
	}
	function noBoxes(which) {
    for (i=0; i<document.search_form[which].length; i++) {
      document.search_form[which][i].checked = false;
		}
	}



function educationWinOpen(url, parameters) {
	window.open(url, "certwin", parameters)
}



function jewelryImageWindow(product_id) {
	var jewelryWin

	if (jewelryWin && !jewelryWin.closed) {
		jewelryWin	.focus();
	}
	else {
		var w = 200;
		var h = 100;
		var params = "scrollbars=1,resizable=1,status=0,location=0,width="+ w +",height="+ h ;

	if (document.all) {
			var top = (screen.height - h)/2;
			var left = (screen.width- w)/2;
			params += ",left="+ left +",top="+ top ;
		}

		jewelryWin = window.open(
			"/jewelry_window.php?product_id="+ product_id,
			"jewelry_window",
			params
		);
	}
}





function pieceRowOn(row) {
	row.style.backgroundColor = '#e0efff';
}


function pieceRowOff(row, color) {
	row.style.backgroundColor = color;
}



function jewelryPrintWindow(store_name, style_id) {
//alert(); return;
	window.open('jewelry_print.php?store_name='+ store_name +'&style_id='+style_id);
}


function objBg(obj, color) {
	if (document.getElementById) {
		if (color == '#000000') { color = '#cccccc'; }
		obj.style.backgroundColor = color;
	}
}




function erPopper(num) {

	var jewelryWin;

	if (jewelryWin && !jewelryWin.closed) {
		jewelryWin.focus();
	} else {
		var w = 200;
		var h = 100;
		var params = "scrollbars=1,resizable=1,status=0,location=0,width="+ w +",height="+ h ;
		if (document.all) {
			var top = (screen.height - h)/2;
			var left = (screen.width- w)/2;
			params += ",left="+ left +",top="+ top ;
		}

		jewelryWin = window.open(
			"/includes/engagement_rings_popup.php?product_id="+ num,
			"jewelry_window",
			params
		);
	}
}

