// HTML javascripts
function change_bgcolor(hex_color, element, what_style) {
//construct the division name
//change the background color of the div
if (what_style == "bg"){
document.getElementById(element).style.backgroundColor = hex_color;
}
if (what_style == "parentBg"){
opener.document.getElementById(element).style.backgroundColor = hex_color;
}
if (what_style == "parentText"){
opener.document.getElementById(element).style.color = hex_color;
}
if (what_style == "text") {
document.getElementById(element).style.color = hex_color;
}
}