function doSubmit(form_target,postcmd_val){var frm=document.forms[form_target];if(postcmd_val!=undefined){frm.postcmd.value=postcmd_val;}
frm.submit();}
function dummyImg(img,imgfile){if(imgfile==undefined){imgfile="img/spacer.gif";}
img.src=imgfile;}
function toggleDisplay(divtarget,setVisible){var newstate="none";var target=$F(divtarget);if(target){var s=target.style;if(s.display=="none"|setVisible==true){newstate="block";}
s.display=newstate;}}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function $F(id){return document.getElementById(id);}
function toggleDisplay(divtarget,setVisible){var newstate="none";var target=$F(divtarget);if(target){var s=target.style;if(s.display=="none"|setVisible==true){newstate="block";}
s.display=newstate;}}
function act_height(id){height=$F(id).clientHeight;if(height==0){height=$F(id).offsetHeight;}
return height;}
function blindup(id,d){if(!d){d=250;}
acth=act_height(id);maxh=max_height(id);if(acth==maxh){$F(id).style.display="block";var ypos;ypos=Math.ceil(d/acth);for(i=0;i<=acth;i++){newh=acth-i;STO("$F('"+id+"').style.height='"+newh+"px'",ypos*i);}}}
function blinddown(id,d){if(!d){d=250;}
acth=act_height(id);if(acth==0){maxh=max_height(id);$F(id).style.display="block";$F(id).style.height="0px";var ypos;ypos=Math.ceil(d/maxh);for(i=1;i<=maxh;i++){STO("$F('"+id+"').style.height='"+i+"px'",ypos*i);}}}
function STO(_24,_25){return window.setTimeout(_24,_25);}
function max_height(id){var ids=$F(id).style;ids.overflow="hidden";if(act_height(id)!=0){return act_height(id);}else{origdisp=ids.display;origheight=ids.height;origpos=ids.position;origvis=ids.visibility;ids.visibility="hidden";ids.height="";ids.display="block";ids.position="absolute";height=act_height(id);ids.display=origdisp;ids.height=origheight;ids.position=origpos;ids.visibility=origvis;return height;}}
function expandAll(id_arr){var l=id_arr.length;for(var i=0;i<l;i++){expandBox(id_arr[i]);}}
function expandBox(id){var fexp='exp_'+id;var plist='folderlist_'+id;var pimg='folderimg_'+id;var divexp=$F(fexp);var divpimg=$F(pimg);var divplist=$F(plist);if(divplist.style.display==''||divplist.style.display=='none'){divpimg.style.display='none';divplist.style.display='block';divexp.src='img/ico_closefolder.gif';divexp.blur();}else{divpimg.style.display='block';divplist.style.display='none';divexp.src='img/ico_openfolder.gif';divexp.blur();}}
function changeImg(imgtarget){var imgpath="img_products/large/"+imgtarget;var el=$F('imgbig');el.src=imgpath;}
function openPopup(url,name,height,width){var popup=window.open(url,name,'height='+height+',width='+width+',resizable=1,scrollbars=1');if(window.focus){popup.focus()}
return false;}
function viewLocation(imgtarget){var url="location.php?imgtarget="+imgtarget;openPopup(url,'location',900,900);}