function ajax_image_change(){
 var myAjax2 = new Ajax.Updater('ajax_image_div', 'ajax.changeimage.php', {method: 'post', parameters: 'colour='+escape($F('scid')) + '&product_id='+escape($F('productid')) });
}

var colour_selection="";
var size_selection = "";

function check_colour()
{
if ((colour_selection=="") || (size_selection==""))
{
if (colour_selection=="") {
alert("You need to select a colour.");
return (false);
}
else {
alert("You need to enter the number per size required.");
return (false);
}

}

return true;
}


function highlight_tab( tabName) {

 document.getElementById('tab_back1').style.background = "url(images/c2o_new_2009/product/desc_light_tab.gif)";
 document.getElementById('tab_back2').style.background = "url(images/c2o_new_2009/product/desc_light_tab.gif)";
 document.getElementById('tab_back3').style.background = "url(images/c2o_new_2009/product/desc_light_tab.gif)";
 document.getElementById('tab_back4').style.background = "url(images/c2o_new_2009/product/desc_light_tab.gif)";
 document.getElementById('tab_back1').style.color = "#696161";
 document.getElementById('tab_back2').style.color = "#696161";
 document.getElementById('tab_back3').style.color = "#696161";
 document.getElementById('tab_back4').style.color = "#696161";

 document.getElementById(tabName).style.background = "url(images/c2o_new_2009/product/desc_dark_tab.gif)";
 document.getElementById(tabName).style.color = "#FFFFFF"; 

 var myAjax3 = new Ajax.Updater('ajax_desc_div', 'ajax.productdesc.php', {method: 'post', parameters: 'tab_number='+  tabName + '&product_id='+escape($F('productid')) });

}

function highlight_tab_stores( tabName) {

 document.getElementById('tab_back1').style.background = "url(images/c2o_new_2009/product/desc_light_tab_stores.gif)";
 document.getElementById('tab_back2').style.background = "url(images/c2o_new_2009/product/desc_light_tab_stores.gif)";
 document.getElementById('tab_back3').style.background = "url(images/c2o_new_2009/product/desc_light_tab_stores.gif)";
 document.getElementById('tab_back4').style.background = "url(images/c2o_new_2009/product/desc_light_tab_stores.gif)";
 document.getElementById('tab_back1').style.color = "#696161";
 document.getElementById('tab_back2').style.color = "#696161";
 document.getElementById('tab_back3').style.color = "#696161";
 document.getElementById('tab_back4').style.color = "#696161";

 document.getElementById(tabName).style.background = "url(images/c2o_new_2009/product/desc_dark_tab_stores.gif)";
 document.getElementById(tabName).style.color = "#FFFFFF"; 

 var myAjax3 = new Ajax.Updater('ajax_desc_div', 'ajax.productdesc.php', {method: 'post', parameters: 'tab_number='+  tabName + '&product_id='+escape($F('productid')) });

}


function ajax_hide_mini_cart(){
 new Effect.SlideUp('ajax_mini_roll_cart');
 var myAjax7 = new Ajax.Updater('ajax_mini_roll_cart', 'ajax.minicart_add.php', {method: 'post', parameters: 'show_filler=true' });
 cart_box_open = "";
}

var cart_box_open="";

function ajax_check_and_hide_mini_cart() {
 if (cart_box_open=="yes") {
  ajax_hide_mini_cart();
 }
}


