// JavaScript Document
var gpwb_tmr, action_counter;
action_counter=0;

function rotate_action()
{
  
  if (document.getElementById("actionbox"+action_counter) && gpwb_tmr && document.getElementById("actionbox"+(action_counter+1)))
  {
  document.getElementById("actionbox"+action_counter).style.display="none";
  action_counter++;
  }
  else
  {
  action_counter=0;
  for (i=0;document.getElementById("actionbox"+i);i++){document.getElementById("actionbox"+i).style.display="block"}
  }
  gpwb_tmr = window.setTimeout("rotate_action()",3000);
  
}

function fn_cust_recount(osource,svalue,oresult,nmaxlength,opricesum,oprice,nletterprice,nbaseprice,scurrency)
{
  var s, n
  
  s=svalue.replace(/[\., ']/g,"");
  
  oresult.innerHTML=(nmaxlength-s.length).toString()+'x';
  n=parseInt(s.length);
  if (n>nmaxlength) {n=nmaxlength;osource.value=svalue.substring(0,svalue.length-1);oresult.innerHTML='0x';}
  oprice.innerHTML=scurrency+(nletterprice*n).toString();
  opricesum.innerHTML=scurrency+(nbaseprice+(nletterprice*n)).toString();
}

function fn_cust_reset(ovalue,oletters,osumprice,oprice,nprice,scurrency,nmaxlength)
{
ovalue.value='';
oletters.innerHTML=nmaxlength.toString()+'x';
osumprice.innerHTML=scurrency+nprice.toString();
oprice.innerHTML=scurrency+'0';
}

function fn_cust_show()
{
  var obj
  if (obj=document.getElementById('customize_it')) {obj.className='';} 

}

function fn_cust_hide()
{
  var obj
  if (obj=document.getElementById('customize_it')) {obj.className=' nodis';} 
}