<!--
var isnet;


isnet=0;


function definebrowser(){
document.write('<INPUT TYPE="hidden" NAME="isnetscape" value="'+isnet+'">');
}

var menus=new Array();
var IE=document.all ? true : false;
var NN=document.layers ? true : false;
var BID=document.getElementById ? true : false;

function defineLayertype(layerName){
if (layerName != null){
    if (NN) return (document.layers[layerName]);
    if (IE) return (document.all[layerName]);
    if (BID) return (document.getElementById(layerName));
    return false;
}
}

function geType(name){
	if (document.layers) return (document.layers[name])
	else if (document.all) {
		layer=eval('document.all.'+name+'.style');
		return (layer);
	} else if (document.getElementById) {
		layer=document.getElementById(name).style;
		return (layer);
	}
}


function showlayer(layer1,layer2){
var i, lna;
for (i=0;i<menus.length;i++){
       lna = geType(menus[i]);
       if ((menus[i]==layer1)||(menus[i]==layer2)) {
          if (document.getElementById) lna.visibility="visible";
       } else {
         
          if (document.getElementById) lna.visibility="hidden";
       }
}
}


function clipLayer(name,clipleft,cliptop,clipright,clipbottom){
  var layer = geType( name );
  if( document.layers ){
    layer.clip.left = clipleft;
    layer.clip.top = cliptop;
    layer.clip.right = clipright;
    layer.clip.bottom = clipbottom;
  }
  if( document.all ) layer.clip = 'rect(' + cliptop + ' ' +  clipright + ' ' + clipbottom + ' ' + clipleft +')';
}

function buildMenu(menuname,left,top,width,height,visi,child){
    var i=menus.length;
    menus[i]=menuname;
    if (NN) {
    document.writeln('<LAYER NAME="'+menuname+'" LEFT="'+left+'" TOP="'+top+'" WIDTH="'+width+'" HEIGHT="'+height+'" VISIBILITY="'+(visi ? 'show' : 'hide')+'" Z-INDEX="'+i+'">');
    } else
    {
    document.writeln('<DIV ID="'+menuname+'" STYLE="float:left;position:absolute; overflow:none; margin-left:'+(left-10)+'px; margin-top:'+top+'px; width:'+width+'px; height:'+height+'px; visibility:'+(visi ? "visible;" : "hidden;")+' z-index:'+i+'">');
    }
}

function ssubmit(L1,L2,docname){
document.allhere.level1.value=L1;
document.allhere.level2.value=L2;
document.allhere.docname.value=docname;
document.allhere.forumsearch.value='';
document.allhere.submit();
}

function changelanguage(lang){
document.allhere.language.value=lang;
document.allhere.submit();
}

function photosubmit(){
document.allhere.photosearch.value=document.allhere.photofield.value;
document.allhere.forumsearch.value='';
ssubmit('berimor_11',0,'photo');
}

function ordersubmit() {
document.allhere.ordersubmit.value=1;
document.allhere.submit();
}

function searchforum(){
	document.allhere.makeforumsearch.value=1;
	document.allhere.docname.value='findforum';
	document.allhere.submit();
}

function showinfo(queryword){
var str="/cgi-bin/infoframe.pl?word="+queryword+"&language="+document.allhere.language.value;
var strfuture="dialogWidth=300px; dialogHeight=320px; status=no";
	result = window.open(str,"info","width=300,height=300,menubar=no,resizable=no,status=no");
	result.focus();
}

function load(name, source1){
	if (document.images){
	eval (name+'=new Image()');
	eval (name+'.src="'+source1+'"');
	}
}

function myswap(img_name, obj) {
	if (document.images){
	document.images[img_name].src=eval(obj+'.src');
	}
}

if (document.images){
load('ok','/img/ok.gif');
load('okon','/img/okon.gif');
}

function isEnter(evt) {
     	if (!evt) {
               evt=window.event;
        } else if (!evt.keyCode) {
               evt.keyCode=evt.which;
        }
        return (evt.keyCode == 13)    
}

function onEnterDown(evt,form){
	if (isEnter(evt)){
	 	
	        if (form == 'forum'){
			searchforum();
		} else if (form == 'photo') {
			photosubmit();
		}
 	}
}

//-->