indice=0;function docValidation(retvalue){	if(document.forms[0].Godkann.checked == false)      	{		alert('Du m\u00E5ste kryssa i rutan - Godk\u00E4nnande f\u00F6r registrering av dina uppgifter.');		document.forms[0].Godkann.focus();		return retvalue;      	}	if(document.forms[0].name.value=='')      	{         		alert('Ditt namn m\u00E5ste vara ifylld.');		document.forms[0].name.focus();		return retvalue;      	}	if(document.forms[0].address.value=='')      	{         		alert('Adress m\u00E5ste vara ifylld.');		document.forms[0].address.focus();		return retvalue;      	}	if(document.forms[0].zip.value=='')      	{         		alert('Postnummer m\u00E5ste vara ifylld.');		document.forms[0].zip.focus();		return retvalue;      	}	if(document.forms[0].city.value=='')      	{         		alert('Stad m\u00E5ste vara ifylld.');		document.forms[0].city.focus();		return retvalue;      	}	if(document.forms[0].phone.value=='')      	{         		alert('Telefonnummer m\u00E5ste vara ifylld.');		document.forms[0].phone.focus();		return retvalue;      	}   	document.forms[0].submit();   	return retvalue;}function SetButton(){alert("");// disable sendButton if not Approval field is checkedalert(document.getElementsByID("PersonNo").value);document.getElementsByName("Skicka").disable =! document.getElementsByName("Approval").checked;//	document.forms[0].Skicka.disabled = !document.forms[0].Approval.checked;	document.getElementsByName("Skicka").value = "Testar"}function skicka(){	if(document.getElementById('contactName').value==''){		alert("Du m\u00E5ste fylla i ditt namn");		return false;	}	if(document.getElementById('contactEmail').value==''){		alert("Du m\u00E5ste fylla i din e-post");		return false;	}		if(document.getElementById('type').value=='ehandel'){		if(document.getElementById('contactCompany').value==''){			alert("Du m\u00E5ste fylla i f\u00F6retag");			return false;		}		if(document.getElementById('contactAddress').value==''){			alert("Du m\u00E5ste fylla i gatuadress");			return false;		}			if(document.getElementById('contactAddress2').value==''){			alert("Du m\u00E5ste fylla i postadress");			return false;		}			if(document.getElementById('contactCity').value==''){			alert("Du m\u00E5ste fylla i ort");			return false;		}		}	document.forms[0].submit();}function bild(bild)   { window.open(bild, 'p', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=600,height=400') }function kontakta(namn){	location.href = "mailto:" + namn + "@nea.neagruppen.se";}function softDelete(docid){	var agree=confirm("Vill du ta bort valt dokument?");	if (agree){		var strDBPathAndName = location.pathname.slice(0,location.pathname.indexOf(".nsf"))+".nsf"; 		location.href = strDBPathAndName + "/softDelete?openagent&id="+docid; 	}else{		return false ;	}}function togglediv(divname){	var frm = document.forms[0]	var c1 = frm.document.getElementById('' + divname + '');	if(c1.style.display == "none"){		c1.style.display = "inline";	}else{		c1.style.display = "none";	}}function vote(){	var dbw = document.forms[0].ThisDBW.value;     var height = "180";     var width = "400";             	var url= "/" + dbw + "/vwVotesToOpen/Vote1.html?EditDocument";	pwin=window.open( url, "", "HEIGHT=" + height +",WIDTH=" + width + ",SCROLLBARS=NO" );}function findimg() {    var aImages = document.getElementsByTagName('img');    for (var i = 0; i < aImages.length; i++) {                    var src = aImages[i].getAttribute('src');            var check = src.substring(src.lastIndexOf('/i'), src.length);            if(check=="/icons/expand.gif"){            	aImages[i].setAttribute('src', '../plus.gif?openimageresource');            }            if(check=="/icons/collapse.gif"){            	aImages[i].setAttribute('src', "../minus.gif?openimageresource");            }    }}function dlgOpen(strToOpen, strWidth, strHeight){	var strDBPathAndName = location.pathname.slice(0,location.pathname.indexOf(".nsf"))+".nsf"; 	window.open(strDBPathAndName + "/attach/"+strToOpen+"/$file/" + strToOpen , "dlgOpen","width="+strWidth+",height="+strHeight+",status=no,resizeable=no,left=50,top=50,scrollbars=yes"); }function checkForm(){str = document.forms[1].email.value;	if ((str.indexOf(".") > 2) && (str.indexOf("@") > 0)){		if(document.forms[1].name.value==""){			alert("Du m\u00E5ste ange ditt f\u00F6r- och efternamn!")			return (false)		}else if(document.forms[1].zip.value==""){			alert("Du m\u00E5ste ange postnummer!")			return (false)		}else{			document.forms[1].submit();			return true;		}     }else{		alert("Du har angivit en ogiltig epostadress. Kontrollera den angivna adressen!")		return (false)	}}function checkAnmalan(){str = document.forms[0].email.value;if ((str.indexOf(".") > 2) && (str.indexOf("@") > 0)){//	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.forms[0].email.value)){		document.forms[0].submit();		return true;     }else{		alert("Du har angivit en ogiltig epostadress. Kontrollera den angivna adressen!")		return (false)	}}function visa(falt){	var strDBName = location.pathname.slice(0,location.pathname.indexOf(".nsf"))+".nsf";      var height = "600";     var width = "800";             var url= strDBName + "/attach/"+escape(falt)+"/$file/" + escape(falt);	pwin=window.open( url, "", "HEIGHT=" + height +",WIDTH=" + width + ",SCROLLBARS=YES, resizeable=yes" );}function dlgOpenContact(strToOpen, str){/* this var string extracts the path & filename of the current Notesdatabase */var strDBPathAndName = location.pathname.slice(0,location.pathname.indexOf(".nsf"))+".nsf"; window.open(strDBPathAndName + "/" + strToOpen+"?OpenForm&"+str , "dlgOpen","width=450,height=400,status=no,resizeable=no,left=50,top=50,scrollbars=no"); }/* Standard script to make shore that the domino form have the proper function */document._domino_target = "_self";function _doClick(v, o, t, h) {	var form = document.forms[0];  	if (form.onsubmit) 	{	var retVal = form.onsubmit();	if (typeof retVal == "boolean" && retVal == false)		return false;	}  	var target = document._domino_target;  	if (o.href != null) {    		if (o.target != null)       		target = o.target;  	} else {   		if (t != null)      		target = t; 	}  	form.target = target; 	form.__Click.value = v;	if (h != null) 	form.action += h;  	form.submit();  	return false;}function dagensdatum() {var mydate=new Date()var year=mydate.getYear()if (year<2000)	year=1900+year	var day=mydate.getDay()var month=mydate.getMonth()var daym=mydate.getDate()if (daym<10)daym=""+daymvar dayarray=new Array("S\u00F6ndag","M\u00E5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\u00F6rdag")var montharray=new Array("januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","December")document.write(""+dayarray[day]+" "+daym+" "+montharray[month]+" "+year+"")}