  function showbig(picname){
    window.open('/includes/foto.php5?pic='+picname,'_blank','scrollbars=yes,taskbar=no,resizeable=no,status=no,menubar=no,top=30,left=30,width=30,height=30');
  }

  function newwin(URL){
    window.open(URL,'blank','scrollbars=yes,taskbar=no,resizeable=no,status=no,menubar=no,top=200,left=200,width=600,height=300');
  }
  
  function PreLoad(source){
    var NewImage = new Image();
    NewImage.src = source;
  }
  
  function prepareSubmit(frm){
    var len = frm.all("editbox").length; if (!len) len = 1;
    for (var i=0; i<len; i++)
      frm.all("codebox", i).innerText = frm.all("codebox", i).style.display ? borderOn(frm.all("codebox", i).innerText) : borderOn(frm.all("editbox", i).innerHTML);
  }
   
 function changeColor(mid,textColor,bgColor){
 	if(bgColor!="null")
    mid.style.backgroundColor = bgColor;
  if(textColor!="null")
    mid.style.color = textColor ;
 }
 
 function menuOver(mid){
 	changeColor(mid,'null',"#CC1111");
 }
 
 function menuOut(mid){
 	changeColor(mid,'null',"#FF0000");
 }

 function menuProcess(menuId,tdId){
 	 if(menuId.style.display=='none'){
     menuId.style.display = 'block';
   }else{
   	 menuId.style.display = 'none';
   }
 }
 
 function inputAddress(name){
 	 window.open('index.php5?module=other&class=address&action=inputAddress&inputName='+name,"",'width=550, height=350');
 }
 function addToBasket(num){
 	 window.open('classes/production/addToBasketClass.php5?goodsId='+num,'','width=300, height=180');
 }
 
 function basketProcess(id,pictureId,cookieName){
 	 if(id.style.display=='none'){
     id.style.display = 'block';
     pictureId.src='/images/design/pull_in.gif';     
     document.frames("sessionSet").location.href = "index.php5?module=other&class=setSession&varName=" + cookieName + "&varValue=1&noIndex" ;     
   }else{
   	 
   	 id.style.display = 'none';
   	 document.frames("sessionSet").location.href = "index.php5?module=other&class=setSession&varName=" + cookieName + "&varValue=0&noIndex" ;
   	 //prompt("","index.php5?module=other&class=setSession&varName=" + cookieName + "&varValue=0" );
   	 pictureId.src='/images/design/pull_out.gif';

   }
   
 }