/*
	Iverdahl.net default javascript functionality

	Last updated:	 4/04/2002
	Current tasks:	none

	Revisions:
		 4/04/2002:	revised to include only bare minimum of functions
		13/08/2001:	initial version

*/

function msg(display) {
	window.status = display;
	setTimeout("clrmsg()",3500)
}

function clrmsg() {
	window.status = ""
}

function popitup(url,name,extra) {
	if (extra == "xsmall") {
		window.open(url,name,"toolbar=no,width=250,height=250,directories=no,status=no,scrollbars=no,resize=yes,resizable=yes,menubar=no,location=no");
		return;
	}
	else if (extra == "small") {
		window.open(url,name,"toolbar=no,width=400,height=360,directories=no,status=no,scrollbars=no,resize=yes,resizable=yes,menubar=no,location=no");
		return;
	}
	else if (extra == "medium") {
		window.open(url,name,"toolbar=no,width=600,height=480,directories=no,status=yes,scrollbars=yes,resize=yes,resizable=yes,menubar=yes,location=no");
		return;
	}
	else if (extra == "large") {
		window.open(url,name,"toolbar=yes,width=800,height=600,directories=no,status=yes,scrollbars=yes,resize=yes,resizable=yes,menubar=yes,location=yes");
		return;
	}
	else if (extra == "xlarge") {
		window.open(url,name,"toolbar=yes,width=1025,height=768,directories=no,status=yes,scrollbars=yes,resize=yes,resizable=yes,menubar=yes,location=yes");
		return;
	}
	else if (extra == "custom1") {
		window.open(url,name,"toolbar=no,width=700,height=500,directories=no,status=no,scrollbars=yes,resize=yes,resizable=yes,menubar=no,location=no");
		return;
	}
	else if (extra == "custom2") {
		window.open(url,name,"toolbar=yes,width=700,height=550,directories=no,status=yes,scrollbars=yes,resize=yes,resizable=yes,menubar=yes,location=no");
		return;
	}
	else {
		window.open(url,name,extra);
		return;
	}
}
