function new_comment(theURL,winName,features) { //v2.0
	var funksjoner = 'toolbar=no,location=no,status=no,scrollbars=no,top=' + top() + ',left=' + left();
  	window.open(theURL,winName,features+funksjoner);
}

function left() {
	var browser=navigator.appName;

	if(browser == "Microsoft Internet Explorer"){
		
		var width = document.body.clientWidth;
		var left = (width/2) - (500/2); 
		
	}else{
		
		var width = window.outerWidth;
		var left = (width/2) - (500/2);
		
	}
	
	return left;
}

function top(){
	var browser=navigator.appName;	
	
	if(browser == "Microsoft Internet Explorer"){
		
		var height = document.body.clientHeight;
		var top = (height/2) - (500/2); 
		
	}else{
		
		var height = window.outerHeight;
		var top = (height/2) - (250/2);
		
	}
	return top;
	
}

function changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function Editor_Save() {
    document.form1.action = "http://www.trivera.net/?f=admin&p=endre_side";
    document.form1.submit();
};

function Editor_Save1() {
    document.form1.action = "http://www.trivera.net/?f=admin&p=add_calendar";
    document.form1.submit();
};

