<!--

function Opens(p,w,h,name) {

  myX = (screen.width-w-75)/2; //availWidth
  myY = (screen.height-h-75)/2; //availHeight
	showWin = window.open(p,name,'height='+h+',width='+w+',top='+myY+',left='+myX+',scrollbars=yes,resizable=yes,toolbar=no')

	if (parseInt(navigator.appVersion) >= 4) { 
		showWin.window.focus();
	}
}

function mark(face,field_color,text_color){
	if (document.documentElement){//if browser is IE5+ or NS6+
	face.style.backgroundColor=field_color;
	face.style.color=text_color;
	}
}

function OpenDialog(p,w,h) {
	window.showModelessDialog(p,'Dialog Arguments Value','dialogHeight:'+h+'px; dialogWidth: '+w+'px; dialogTop: 150px; dialogLeft: 150px; edge: Sunken; center: Yes; help: No; resizable: No; status: No;');
}

function disableElements() {
	var p = document.CreateNewJob
	if (!p.SendTime.disabled) {
		p.SendTime.disabled = true;
		p.startdate.disabled = true;
	}
	else {
		p.SendTime.disabled = false;
		p.startdate.disabled = false;
	}

}



function Toggle() {
  if (document.all["bcccopy"].style.visibility == "visible") {
    document.all["bcccopy"].style.visibility = "hidden";

  }
  else {
    document.all["bcccopy"].style.visibility = "visible";

  }
}




function delpage(id,text) {
if(confirm('\nDu er ved at slette brugeren:\n\n[ '+text+' ]\n\nEr du sikker på at du vil fortsætte?')) {
	window.location = 'usersfunk.asp?funk=delete&id='+id+'';
	}
}
function delguestbook(id,text) {
if(confirm('\nDu er ved at slette indlægget:\n\n[ '+text+' ]\n\nEr du sikker på at du vil fortsætte?')) {
	window.location = 'guestbookfunk.asp?funk=delete&id='+id+'';
	}
}


		function num(item)
		{
			s=item.value;
			t="";
			n="0123456789";
			for (i=0; i <s.length; i++) 
			{
				c=s.substr(i,1);
				if (n.indexOf(c,0)>=0)
				{
					t+= c;
				}
			}
			item.value=t;
		}

//-->