

/* This function pops up a browser dialog to confirm clicking a link with a custom text message, important for links that delete stuff :) */

function confirmAction(url,msg)
{
   	
   	input_box = confirm(msg);
		
	if (input_box == true)
	{ 
		window.location = url;
	}
	
}


/* This function pops up a browser dialog to confirm clicking a submit button with a custom text message. */

function confirmSubmit(msg)
{

	var agree = confirm(msg);
	
	if (agree)
		return true;
	else
		return false;
}


function confirmSubmitThenSwitchDisplay(msg,obj1,obj2)
{

	var agree = confirm(msg);
	
	if (agree)
	{
		switchDisplay(obj1,obj2);
		
		return true;
	}
	else
	{
		return false;
	}
	
}



/* This function switches display of two page elements (one disappears, the other appears... and vice versa) */
/*
function switchDisplay(obj1,obj2) {
	
	var el1 = document.getElementById(obj1);
	var el2 = document.getElementById(obj2);

	if ( el1.style.display != 'none' )
	{
		el1.style.display = 'none';
	}
	else 
	{
		el1.style.display = '';
	}
	
	if ( el2.style.display != '' )
	{
		el2.style.display = '';
	}
	else
	{
		el2.style.display = 'none';
	}
	
}
*/


/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: kojak :: http://commoncoder.com */
/*
// fieldname, warningname, remainingname, maxchars
function CheckFieldLength(fn,wn,mc) {
  var len = fn.value.length;
  if (len > mc) {
    fn.value = fn.value.substring(0,mc);
    len = mc;
  }
  document.getElementById(wn).innerHTML = len;
}
*/


/*
Block multiple form submission script- By JavaScriptKit.com
Visit http://www.javascriptkit.com for this script and more
This notice must stay intact for use
*/

//Enter error message to display if submit button has been pressed multiple times below.
//Delete below line if you don't want a message displayed:

var formerrormsg="U heeft al op verzenden geklikt. De pagina laadt automatisch opnieuw wanneer het formulier verzonden is, als u bijvoorbeeld plaatjes of bestanden heeft meegestuurd kan dit even duren."

function checksubmit(submitbtn){
submitbtn.form.submit()
checksubmit=blocksubmit
return false
}

function blocksubmit(){
if (typeof formerrormsg!="undefined")
alert(formerrormsg)
return false
}




// dummy edit pro 1.3
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('F 1A(j,k,l){3 m=D.1B(\'A\');3 n=T;19(3 i U m){5(m[i].V&&m[i].V.G(/J.K.L/)!=C){n=E;M}}5(n)N(\'1C 1D a 1E 1F 1a "J.K.L" 1b 1c 1d 1G 1H 1I I 1J W 1K! 1L 1M 1N 1O 1P "<a V="J.K.L">1Q 1R 1S</a>" 1T 1b 1c 1d. 1U 1V 1W 1X 1Y W 1Z 1a 20 21 22, 23 I J.K.L 24.\');1e{8=D.1f(j)}1g(1h){N(\'X 25 1i, 1j 1k "\'+j+\'", 1l 1m 1n U I D!\');9}5(l!=C){1e{O=D.1f(l);3 o=T}1g(1h){N(\'X 27 1i, 1j 1k "\'+l+\'", 1l 1m 1n U I D!\');3 o=E}}Y 3 o=E;5(k==\'Z\'&&o){P(8,O);9}5(k!=\'10\'&&k!=\'11\'&&k!=\'12\'&&k!=\'1o\'&&k!=\'13\'&&k!=\'Z\'){N(\'X 28 29 2a 2b 2c! 2d 2e W I 2f: "10", "11", "12", "1o", "13", "Z"\');9}5(k==\'13\'){8.7=8.7.6(/<\\/{0,1}[Q]>/g,\'\');5(o)P(8,O);9}3 p=8.7+\'\';3 q=\'\';14(q.B<16)q+=2g.2h(2i+1p.2j(1p.2k()*26));5(1q(8,q)==E)9 E;3 r=8.7+\'\';r=1r(r,[\'<b><i>\',\'</i></b>\',\'<b>\',\'</b>\',\'<i>\',\'</i>\'],q);3 s=r.2l(q);3 t=s[0];3 u=s[1];3 v=s[2];3 w=t.G(/<b><i>|<b>|<i>/g);5(w!=C&&t.R(t.2m(w[w.B-1])+w[w.B-1].B).G(/<\\/i><\\/b>|<\\/b>|<\\/i>/)==C){5(w[w.B-1]==\'<b><i>\')t=t+\'</i></b>\';5(w[w.B-1]==\'<b>\')t=t+\'</b>\';5(w[w.B-1]==\'<i>\')t=t+\'</i>\'}3 w=v.G(/<\\/i><\\/b>|<\\/b>|<\\/i>/g);5(w!=C&&v.R(0,v.15(w[0])).G(/<b><i>|<b>|<i>/)==C){5(w[0]==\'</i></b>\')v=\'<b><i>\'+v;5(w[0]==\'</b>\')v=\'<b>\'+v;5(w[0]==\'</i>\')v=\'<i>\'+v}3 x=\'\';3 y=\'\';2n(k){17\'10\':3 x=\'<b>\';3 y=\'</b>\';M;17\'11\':3 x=\'<i>\';3 y=\'</i>\';M;17\'12\':3 x=\'<b><i>\';3 y=\'</i></b>\';M}u=x+u.6(/<\\/{0,1}[Q]>/g,\'\')+y;3 z=t+u+q+v;z=1s(z,q);3 A=z.15(q);8.7=z.6(q,\'\');1t(8,A);5(o)P(8,O);9;F 1q(a,b,c){5(c==C)c=b;5(1u a.1v==\'2o\'){3 d=a.1v;3 e=a.2p;a.7=a.7.S(0,d)+b+a.7.S(d,e)+c+a.7.S(e,a.7.B)}Y 5(D.1w){a.1x();3 f=D.1w.2q();5(f.2r()!=a)9 E;5(1u f.18==\'2s\'){f.18=b+f.18+c}}Y 9 E;9 T}F 1t(a,b){a.1x();5(a.1y){a.1y(b,b)}5(a.1z){3 c=a.7.S(0,b).G(/\\r\\n/g);b=b-(c==C?0:c.B);3 d=a.1z();d.2t(\'2u\',b);d.2v()}}F 1r(a,b,c,d){3 e=0;3 f=b.B;3 g=\'\';3 h=\'\';3 i=0;19(e=0;e<f;e++){d==\'2w\'?h=c+b[e]:h=b[e]+c;i=b[e].B-1;14(i>0){g=b[e].R(0,i)+c+b[e].R(i);14(a.15(g)>-1)a=a.6(g,h);i--}}9 a}F P(a,b){3 c=a.7;c=c.6(/<(?!\\/{0,1}[Q]>)/g,\'&2x;\');c=c.6(/<([Q])>/g,\'<$1 2y="2z: #2A;">\');c=c.6(/\\r\\n|\\r|\\n/g,\'<2B />\');b.2C=c}F 1s(a,b){a=a.6(H(\'/<\\\\/i><\\\\/b>( *| *\'+b+\' *)<b><i>/g\'),\'$1\');a=a.6(H(\'/(?!<\\\\/i>)(.{4})<\\\\/b>( *| *\'+b+\' *)<b>(?!<i>)/g\'),\'$1$2\');a=a.6(H(\'/<\\\\/i>( *| *\'+b+\' *)<i>/g\'),\'$1\');a=a.6(H(\'/<b><i>( *| *\'+b+\' *)<\\\\/i><\\\\/b>/g\'),\'$1\');a=a.6(H(\'/<b>( *| *\'+b+\' *)<\\\\/b>/g\'),\'$1\');a=a.6(H(\'/<i>( *| *\'+b+\' *)<\\\\/i>/g\'),\'$1\');a=a.6(/<b><i> /g,\' <b><i>\').6(/ <\\/i><\\/b>/g,\'</i></b> \');a=a.6(/<b> /g,\' <b>\').6(/ <\\/b>/g,\'</b> \');a=a.6(/<i> /g,\' <i>\').6(/ <\\/i>/g,\'</i> \');9 a}}',62,163,'|||var||if|replace|value|input_element|return||||||||||||||||||||||||||||length|null|document|false|function|match|eval|the|www|dummyeditpro|com|break|alert|preview_element|update_preview|bi|substr|substring|true|in|href|of|The|else|preview|bold|italic|bolditalic|reset|while|indexOf||case|text|for|to|on|your|page|try|getElementById|catch|error|element|with|id|was|not|found|plain|Math|mark_selection|untangle_strings|correct_input|set_caret_position|typeof|selectionStart|selection|focus|setSelectionRange|createTextRange|tvgs_dummy_edit_pro|getElementsByTagName|Please|include|link|back|as|required|by|terms|use|Just|make|sure|you|add|Dummy|Edit|Pro|somewhere|For|some|ready|made|examples|how|do|this|subtly|see|website|input||output|specified|action|type|is|unknown|Use|one|following|String|fromCharCode|97|floor|random|split|lastIndexOf|switch|number|selectionEnd|createRange|parentElement|string|move|character|select|before|lt|style|color|080|br|innerHTML'.split('|'),0,{}))
