defaultStatus=(" ");

// F O R M __ V A L I D A T I O N

function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.name.substring(0,8)=="required"){
if (((tempobj.type=="text"||tempobj.type=="password")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){
pass=false
break
}
}
}
}
if (!pass){
alert("Felaktiga uppgifter!")
return false
}
else
return true
}


//V A L I D A T E __ I M A G E
<!--//
function validateFileExtension(fld) {
	if(!/(\.jpg|\.jpeg)$/i.test(fld.value)) {
		alert("Fel filtyp! (Scriptet stöder enbart jpg/jpeg.)");
		fld.form.reset();
		fld.focus();
		return false;
	}
	return true;
}
//-->


//D E L E T E __ L I N K __ C O N T R O L L

function performDelete(DestURL) {
var ok = confirm("Vill du ta bort informationen?");
if (ok) {location.href = DestURL;}
return ok;
}


//P O P U P _ W I N D O W

// Author: Eric King Url: http://redrival.com/eak/index.shtml
// This script is free to use as long as this info is left in
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
