var db='skottfint/div6b.nsf';
var returnField = '';
function doRemoveDocument(str){
	if( str == '' ){
		alert('It is not possible to delete this document')
	}else{
		if( confirm('Are you sure that you want to delete this document?') ){
			location.href='/'+db+'/($All)/'+str+'?DeleteDocument';
		}
	}
}
function doEditDocument(str){
	if( str == '' ){
		alert('It is not possible to edit this document')
	}else{
		location.href='/'+db+'/(edit)/'+str+'?EditDocument';
	}
}
function ml(n,d){
document.location.href='mailto:'+n+'@'+d}
function SaveCookie() {
var f = document.forms[0];
var Name = escape(f.Name.value);
var MailAddress = escape(f.MailAddress.value);
var Signature1 = escape(f.Signature1.value);
var Signature2 = escape(f.Signature2.value);
var the_date = new Date('December 31, 2023');
var the_cookie_date = the_date.toGMTString();
document.cookie = 'BKS_Gastbok='+Name + '&'+MailAddress+'&'+Signature1+'&'+Signature2+'; expires='+the_cookie_date; 
}
function setImageField(f1,f2){
	if ( f1 ){ if ( f1.value != '') f2.value=f1.value;}
}
function showDialog(href,title){
	dijit.byId("infoDialog").attr( "href", href);
	dijit.byId("formDialog").attr( "title", title);
	dijit.byId("formDialog").show()
}
