function docreset_d(){document.dform.elements[0].selectedIndex=0;document.dform.elements[1].selectedIndex=0;document.dform.elements[2].selectedIndex=0;document.dform.elements[3].selectedIndex=0;}
function check_form_d(){if(document.dform.kol_diam_krot.selectedIndex==0){err='Укажите поле "КОЛ-ВО/ДИАМЕТР КРЕПЕЖНЫХ ОТВЕРСТИЙ", пожалуйста';alert(err)
return false;};if(document.dform.diam.selectedIndex==0){err='Необходимо указать поле "ДИАМЕТР"';alert(err)
return false;};}
function docreset_t(){document.tform.elements[0].selectedIndex=0;document.tform.elements[1].selectedIndex=0;document.tform.elements[2].selectedIndex=0;document.tform.elements[3].selectedIndex=0;}
function check_form_t(){if(document.tform.typesize.selectedIndex==0){err='Укажите поле "ТИПОРАЗМЕР", пожалуйста';alert(err)
return false;};if(document.tform.diametr.selectedIndex==0){err='Необходимо указать поле "ДИАМЕТР"';alert(err)
return false;};}
function antiemail(email,domain,t)
{t=email+"@"+domain;return t;}
function write_url(turl,tcont,t){document.write("<a href='"+turl+"'>"+tcont+"</a>")}
function ons(oid){var obj=layer(oid);var menu=eval("layer('m"+oid+"')");menu.style.visibility='visible';}
function offs(oid){var obj=layer(oid);var menu=layer('m'+oid);menu.style.visibility='hidden';}
function on(oid){var obj=layer(oid);var menu=eval("layer('m"+oid+"')");menu.setLeft(obj.getAbsoluteLeft());menu.setTop(obj.getAbsoluteTop()+obj.getHeight()+0);menu.style.visibility='visible';}
function off(oid){var obj=layer(oid);var menu=layer('m'+oid);menu.style.visibility='hidden';}
function initKLayers(){isDOM=document.getElementById?true:false
isOpera=isOpera5=window.opera&&isDOM
isOpera6=isOpera&&window.print
isOpera7=isOpera&&document.readyState
isMSIE=isIE=document.all&&document.all.item&&!isOpera
isStrict=document.compatMode=='CSS1Compat'
isNN=isNC=navigator.appName=="Netscape"
isNN4=isNC4=isNN&&!isDOM
isMozilla=isNN6=isNN&&isDOM
if(!isDOM&&!isNC&&!isMSIE&&!isOpera){KLayers=false
return false}
pageLeft=0
pageTop=0
KL_imgCount=0
KL_imgArray=new Array()
KL_imageRef="document.images[\""
KL_imagePostfix="\"]"
KL_styleSwitch=".style"
KL_layerPostfix="\"]"
if(isNN4){KL_layerRef="document.layers[\""
KL_styleSwitch=""}
if(isMSIE){KL_layerRef="document.all[\""}
if(isDOM){KL_layerRef="document.getElementById(\""
KL_layerPostfix="\")"}
KLayers=true
return true}
initKLayers()
var KL_LAYER=0
var KL_IMAGE=1
function KL_getObjectPath(name,parent,type){var l=((parent&&isNN4)?(parent+"."):(""))+((type==KL_LAYER)?KL_layerRef:KL_imageRef)+name+((type==KL_LAYER)?KL_layerPostfix:KL_imagePostfix)
if(eval(l))return l
if(!isNN4){return l}else{return KL_findObject(name,"document.layers",type)}}
function layer(name){return new KLayer(name,null)}
function KLayer(name,parent){this.path=KL_getObjectPath(name,parent,KL_LAYER)
this.object=eval(this.path)
if(!this.object)return
this.style=this.css=eval(this.path+KL_styleSwitch)}
KLP=KLayer.prototype
function KL_getPageOffset(o){var KL_left=0
var KL_top=0
do{KL_left+=o.offsetLeft
KL_top+=o.offsetTop}while(o=o.offsetParent)
return[KL_left,KL_top]}
KLP.getLeft=function(){var o=this.object
if(isMSIE||isMozilla||isOpera)return o.offsetLeft-pageLeft
if(isNN4)return o.x-pageLeft}
KLP.getTop=function(){var o=this.object
if(isMSIE||isMozilla||isOpera)return o.offsetTop-pageTop
if(isNN4)return o.y-pageTop}
KLP.getAbsoluteLeft=function(){var o=this.object
if(isMSIE||isMozilla||isOpera)return KL_getPageOffset(o)[0]-pageLeft
if(isNN4)return o.pageX-pageLeft}
KLP.getAbsoluteTop=function(){var o=this.object
if(isMSIE||isMozilla||isOpera)return KL_getPageOffset(o)[1]-pageTop
if(isNN4)return o.pageY-pageTop}
KLP.getHeight=function(){var o=this.object
if(isMSIE||isMozilla||isOpera7)return o.offsetHeight
if(isOpera)return this.css.pixelHeight
if(isNN4)return o.document.height}
KLP.getZIndex=function(){return this.css.zIndex}
KLP.setLeft=KLP.moveX=function(x){x+=pageLeft
if(isOpera){this.css.pixelLeft=x}else if(isNN4){this.object.x=x}else{this.css.left=x+"px"}}
KLP.setTop=KLP.moveY=function(y){y+=pageTop
if(isOpera){this.css.pixelTop=y}else if(isNN4){this.object.y=y}else{this.css.top=y+"px"}}
