


//Funksjon for å opne kartfestingsvindauge
function openMapWindow2(screenX,screenY,digAppType,XField,YField,Field) {
	var url,geObject;

	if (digAppType == 'POINT') {
		url = '/maps/map_digapp.html?digAppType=POINT&XField=' + XField + '&YField=' + YField;
	}
	
	if (digAppType == 'WKTPOINT') {
		url = '/maps/map_digapp.html?digAppType=WKTPOINT&Field=' + Field;
	}
	
	if (digAppType == 'WKTLINE') {
		url = '/maps/map_digapp.html?digAppType=WKTLINE&Field=' + Field;
	}

	artikkelGetLocation=window.open(url,'finnKoordinat','screenX='+screenX+',screenY='+screenY+',top='+screenX+',left='+screenY+',width=600,height=600,toolbar=0,directories=0,status=0,scrollbars=0,resizable=1,menubar=0');
	artikkelGetLocation.focus();
}

//Funksjon for å gå til fylke
function gaatilfylke() {

    var fylke = window.document.fylke.fylke_nr[window.document.fylke.fylke_nr.selectedIndex].value;
    //var fylkenamn = window.document.fylke.fylke_nr[window.document.fylke.fylke_nr.selectedIndex].text;
    //window.parent.location.href = 'default.aspx?' + fylke + '&fylke=' + fylkenamn;	 
    window.parent.location.href = 'default.aspx?fylke_nr=' + fylke;	 
//alert(fylke)
		//for (var i = 0; i < parent.document.fylke.fylke_nr.length; i++) {
//			if (window.parent.fylke.fylke_nr[i].value == fylke) {
			//	window.parent.fylke.fylke_nr[i].selected = selected;
			//}
		//}		

}

	function facebook_click() {
		var u = location.href;
		var t=document.title;
		window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
		return false;
	}
	
	
//Funksjon for å opne tips en venn skjema
function tips_en_ven() {
	var url;
	
	var u = location.href;
	url = 'tipsenven.aspx?url=' + u;
	artikkelTipsenven=window.open(url,'tips','screenX=200,screenY=200,top=250,left=250,width=440,height=310,toolbar=0,directories=0,status=0,scrollbars=auto,resizable=1,menubar=0');
	artikkelTipsenven.focus();
}