<!--
function toggle_to_simple(){
	document.getElementById('sales_tab').className='searchformtab_selected';
	document.getElementById('products_tab').className='searchformtab_deselected';	
	document.getElementById('customers_tab').className='searchformtab_deselected';
	document.getElementById('hits_tab').className='searchformtab_deselected';
	document.getElementById('enquiries_tab').className='searchformtab_deselected';
	document.getElementById('reviews_tab').className='searchformtab_deselected';				
	document.getElementById('sales_form').className='sales_form_show';
	document.getElementById('products_form').className='products_hide';
	document.getElementById('customers_form').className='customers_form_hide';	
	document.getElementById('hits_form').className='hits_hide';	
	document.getElementById('enquiries_form').className='enquiries_hide';	
	document.getElementById('reviews_form').className='reviews_hide';				
}
function toggle_to_customers(){
	document.getElementById('customers_tab').className='searchformtab_selected';
	document.getElementById('products_tab').className='searchformtab_deselected';
	document.getElementById('sales_tab').className='searchformtab_deselected';	
	document.getElementById('hits_tab').className='searchformtab_deselected';	
	document.getElementById('enquiries_tab').className='searchformtab_deselected';
	document.getElementById('reviews_tab').className='searchformtab_deselected';		
	document.getElementById('customers_form').className='customers_form_show';
	document.getElementById('products_form').className='products_hide';
	document.getElementById('sales_form').className='sales_form_hide';	
	document.getElementById('hits_form').className='hits_hide';	
	document.getElementById('enquiries_form').className='enquiries_hide';	
	document.getElementById('reviews_form').className='reviews_hide';			
}
function toggle_to_products(){
	document.getElementById('products_tab').className='searchformtab_selected';
	document.getElementById('customers_tab').className='searchformtab_deselected';
	document.getElementById('sales_tab').className='searchformtab_deselected';	
	document.getElementById('hits_tab').className='searchformtab_deselected';
	document.getElementById('enquiries_tab').className='searchformtab_deselected';
	document.getElementById('reviews_tab').className='searchformtab_deselected';			
	document.getElementById('products_form').className='products_show';	
	document.getElementById('customers_form').className='customers_form_hide';
	document.getElementById('sales_form').className='sales_form_hide';	
	document.getElementById('hits_form').className='hits_hide';
	document.getElementById('enquiries_form').className='enquiries_hide';	
	document.getElementById('reviews_form').className='reviews_hide';			
}
function toggle_to_hits(){
	document.getElementById('hits_tab').className='searchformtab_selected';
	document.getElementById('products_tab').className='searchformtab_deselected';
	document.getElementById('customers_tab').className='searchformtab_deselected';
	document.getElementById('sales_tab').className='searchformtab_deselected';
	document.getElementById('enquiries_tab').className='searchformtab_deselected';
	document.getElementById('reviews_tab').className='searchformtab_deselected';			
	document.getElementById('hits_form').className='hits_show';	
	document.getElementById('products_form').className='products_hide';	
	document.getElementById('customers_form').className='customers_form_hide';
	document.getElementById('sales_form').className='sales_form_hide';	
	document.getElementById('enquiries_form').className='enquiries_hide';	
	document.getElementById('reviews_form').className='reviews_hide';		
}
function toggle_to_enquiries(){
	document.getElementById('enquiries_tab').className='searchformtab_selected';
	document.getElementById('hits_tab').className='searchformtab_deselected';
	document.getElementById('products_tab').className='searchformtab_deselected';
	document.getElementById('customers_tab').className='searchformtab_deselected';
	document.getElementById('sales_tab').className='searchformtab_deselected';
	document.getElementById('reviews_tab').className='searchformtab_deselected';			
	document.getElementById('hits_form').className='hits_hide';	
	document.getElementById('products_form').className='products_hide';	
	document.getElementById('customers_form').className='customers_form_hide';
	document.getElementById('sales_form').className='sales_form_hide';	
	document.getElementById('enquiries_form').className='enquiries_show';	
	document.getElementById('reviews_form').className='reviews_hide';		
}
function toggle_to_reviews(){
	document.getElementById('enquiries_tab').className='searchformtab_deselected';
	document.getElementById('hits_tab').className='searchformtab_deselected';
	document.getElementById('products_tab').className='searchformtab_deselected';
	document.getElementById('customers_tab').className='searchformtab_deselected';
	document.getElementById('sales_tab').className='searchformtab_deselected';
	document.getElementById('reviews_tab').className='searchformtab_selected';			
	document.getElementById('hits_form').className='hits_hide';	
	document.getElementById('products_form').className='products_hide';	
	document.getElementById('customers_form').className='customers_form_hide';
	document.getElementById('sales_form').className='sales_form_hide';	
	document.getElementById('enquiries_form').className='enquiries_hide';	
	document.getElementById('reviews_form').className='reviews_show';		
}
function rowhl(id, inrow) {
  var row = document.getElementById('tr'+id);
  var odd = id % 2;
  var c = (odd) ? '#f5f5f5' : '#f5f5f5';
  row.style.backgroundColor = (inrow) ? '#f1f1f1' : c;
}
function rowhlcat(id, inrow) {
  var row = document.getElementById('tr'+id);
  var odd = id % 2;
  var c = (odd) ? '#ffffff' : '#ffffff';
  row.style.backgroundColor = (inrow) ? '#f1f1f1' : c;
}
function newWindowAdmin(url,nam) {
   window.open(url,nam,"WIDTH=720,HEIGHT=500,resizable=yes,left=100,top=110,location=no,scrollbars")
}
function newWindow_multi(url,nam) { //admin show templates
   window.open(url,nam,"WIDTH=620,HEIGHT=500,resizable=yes,left=100,top=110,location=no,scrollbars")
}
function switchpageship(select) { // delivery
  var index;
  for(index=0; index<select.options.length; index++)
    if(select.options[index].selected)
      {
        if(select.options[index].value!="")
          window.location.href=select.options[index].value;
        break;
      }
}
function switchpagesid(select) { // CART_4_SHIPPING LINE
  var index;
  for(index=0; index<select.options.length; index++)
    if(select.options[index].selected)
      {
        if(select.options[index].value!="")
          window.location.href=select.options[index].value;
        break;
      }
}
function switchpagesel(select) { // SYS_DROP_CATS
  var index;
  var tt;
  for(index=0; index<select.options.length; index++)
    if(select.options[index].selected) {
        if(select.options[index].value!="")
          tt=select.options[index].value;
          window.location.href=tt;
        }
}
function switchmanuf(select) { // SYS_DROP_MANUFACTURERS
  var index;
  var tt;
  for(index=0; index<select.options.length; index++)
    if(select.options[index].selected) {
        if(select.options[index].value!="")
          tt=select.options[index].value;
          window.location.href="index.php?tp1=CRTNET182&manf_id="+ tt +" ";
        }
}
function popupwin (url, width, height) { // quantity discounts
  window.open(url,'NewWindow','width=' + width + ',height=' + height + ',resizable=yes,left=100,top=100,location=no,scrollbars=yes,toolbar=no,status=no,location=no')
}
function win_colours(url){ // admin only
 myWin = open(url, 'myWin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,screenX=175,left=175,screenY=150,top=150,width=500,height=300');
}
function admx_tpldelete(p_ii,p_ref,p_ftpid) 
{ 
  answer = confirm('Are you Sure? You want to remove this template '+p_ref+'')
  if (answer !=0) 
    { 
    location='index.php?tp1=adm640&deltmp=y&ftpid='+p_ftpid+'&tpname='+p_ref+'&tpid='+p_ii+'';
    } 
}
function admx_del_choice(p_ctp,p_cmcid,p_name,p_mlv) 
{ 
  answer = confirm('Are you Sure? You want to remove '+p_name+'')
  if (answer !=0) 
    { 
    location='index.php?tp1=adm210&act=del&ctp_id='+p_ctp+'&cmc_id='+p_cmcid+'&mlv='+p_mlv+'';
    } 
}
function admx_del_image(p_delid) // user images
{ 
  answer = confirm('Are you Sure? Confirm OK to delete this image?')
  if (answer !=0) 
    { 
    location='index.php?tp1=adm590&dl=y&ref='+p_delid+'';
    } 
}
function admx_del_html1(p_delid) // user images
{ 
  answer = confirm('Are you Sure? Confirm OK to delete this file?')
  if (answer !=0) 
    { 
    location='index.php?tp1=adm5941&dl=y&ref='+p_delid+'';
    } 
}
function admx_del_html2(p_delid) // user images
{ 
  answer = confirm('Are you Sure? Confirm OK to delete this file?')
  if (answer !=0) 
    { 
    location='index.php?tp1=adm5942&dl=y&ref='+p_delid+'';
    } 
}
function admx_del_html3(p_delid) // user images
{ 
  answer = confirm('Are you Sure? Confirm OK to delete this file?')
  if (answer !=0) 
    { 
    location='index.php?tp1=adm5943&dl=y&ref='+p_delid+'';
    } 
}
function admx_del_html4(p_delid) // user images
{ 
  answer = confirm('Are you Sure? Confirm OK to delete this file?')
  if (answer !=0) 
    { 
    location='index.php?tp1=adm5944&dl=y&ref='+p_delid+'';
    } 
}
function admx_del_html5(p_delid) // user images
{ 
  answer = confirm('Are you Sure? Confirm OK to delete this file?')
  if (answer !=0) 
    { 
    location='index.php?tp1=adm5945&dl=y&ref='+p_delid+'';
    } 
}
function admx_del_img(p_id,p_name,p_prog) // product/cat images
{ 
  answer = confirm('Are you Sure? Confirm OK to delete this image?')
  if (answer !=0) 
    { 
    location='index.php?tp1='+p_prog+'&dl=y&ctp_id='+p_id+'&picname='+p_name+'';
    }
}
function admx_del_prod(p_typeid,prod_name,p_prog) // product/cat images
{ 
  answer = confirm('Are you Sure? Confirm OK to delete product '+prod_name+'?')
  if (answer !=0) 
    { 
        location='index.php?tp1='+p_prog+'&pid='+p_typeid+'&delp=y';				
    }
}
function admx_del_cat(p_typeid,cat_name,p_prog) // product/cat images
{ 
  answer = confirm('Are you Sure? Confirm OK to delete category '+cat_name+'?')
  if (answer !=0) 
    { 
        location='index.php?tp1='+p_prog+'&cid='+p_typeid+'&delc=y';				
    }
}

function mouseover(el) {
  el.className = "raised";
}

function mouseout(el) {
  el.className = "button";
}

function mousedown(el) {
  el.className = "pressed";
}

function mouseup(el) {
  el.className = "raised";
}
//-->

