function select_fabric(a, group, jsret)
{
	var w=window.open("./inc/calculators/fabricpick/fabricpick.php?v="+a+"&g="+group+"&jsfunc="+jsret, "fabricwin", "toolbar=no, scrollbars=yes, status=no, height=625, width=700");
	w.focus();
}

function select_fabric_any(a, group, jsret)
{
	var w=window.open("./inc/calculators/fabricpick/fabricpick.php?v="+a+"&g="+group+"&jsfunc="+jsret+"&anyv=", "fabricwin", "toolbar=no, scrollbars=yes, status=no, height=625, width=700");
	w.focus();
}

function changecss(theClass,element,value) {

//documentation for this script at http://www.shawnolson.net/a/503/

 var cssRules;

 if (document.all) { cssRules = 'rules'; }
 else if (document.getElementById) { cssRules = 'cssRules'; }

 for (var S = 0; S < document.styleSheets.length; S++){

  for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {

   if (document.styleSheets[S][cssRules][R].selectorText == theClass) {

	document.styleSheets[S][cssRules][R].style[element] = value;

   }

  }

 }

}