function changeClass(name) {
document.getElementById(name).className="input_onfocus";
}

function changeClassBack(name) {
document.getElementById(name).className="input";
}

function redirect(name,destination) {
if (name == "") {
} else {
document.getElementById(name).disabled=true;
}
if (destination == "checkout.php") {
window.parent.location = destination;
} else {
window.location = destination;
}
}

function changemusic(name,value,gif) {
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime()+3600000*24*30);
document.cookie = name+"="+escape(value)+";expires="+expire.toGMTString();
if (value == "on") {
document.getElementById("music_image").innerHTML = "<a href=\"javascript:changemusic('music','off','"+gif+"');\"><img src=\"images/soundOn"+gif+".gif\" title=\"music is on\" border=\"0\" /></a>";
parent.frames["mainFrame"].document.getElementById(name).innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"1\" height=\"1\"><param name=\"movie\" value=\"flash/1pxFlashMusic.swf\" /><param name=\"quality\" value=\"high\" /><embed src=\"flash/1pxFlashMusic.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"1\" height=\"1\"></embed></object>";
} else {
document.getElementById("music_image").innerHTML = "<a href=\"javascript:changemusic('music','on','"+gif+"');\"><img src=\"images/soundOff"+gif+".gif\" title=\"music is off\" border=\"0\" /></a>";
parent.frames["mainFrame"].document.getElementById(name).innerHTML = "<img src=\"images/blank.gif\" border=\"0\" width=\"1\" height=\"1\" />";
}
}

function openwindow(url,name,specs) {
  var replace = "";
  window.open(url,name,specs,replace);
}

