function win(t,w,h) {
window.open("/paraloup/ensemble.jpg",t,"height="+h+",width="+w+",left=80,top=80");
}

//----------------------------------------------------------------

function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}alert("This form has already been submitted.  Thanks!");}
}

//----------------------------------------------------------------
function fade(sr, sg, sb, er, eg, eb, step) {
hexa = new makearray(16);
for(var i = 0; i < 10; i++)
hexa[i] = i;
hexa[10]="a"; hexa[11]="b"; hexa[12]="c";
hexa[13]="d"; hexa[14]="e"; hexa[15]="f";

for(var i = 0; i <= step; i++) {
setbgColor(
Math.floor(sr * ((step-i)/step) + er * (i/step)),
Math.floor(sg * ((step-i)/step) + eg * (i/step)),
Math.floor(sb * ((step-i)/step) + eb * (i/step)));}}

function makearray(n) {
this.length = n;
for(var i = 1; i <= n; i++)
this[i] = 0;
return this;}

function setbgColor(r, g, b) {
var hr = hex(r); var hg = hex(g); var hb = hex(b);
document.bgColor = "#"+hr+hg+hb;}

function hex(i) {
if (i < 0)
return "00";
else if (i > 255)
return "ff";
else
return "" + hexa[Math.floor(i/16)] + hexa[i%16];}

//----------------------------------------------------------------
function showpic( file, title, width, height ){
	pic=window.open( "","pic","resizable=no,scrollbars=no,width="+width+",height="+height);
	pic.document.write('<HTML><HEAD><LINK REL="stylesheet" HREF="/algemeen/df.css" TYPE="text/css"><TITLE>'+title+'</TITLE></HEAD>');
	pic.document.write('<BODY CLASS="pic" onblur=window.close()>');
	pic.document.write('<IMG SRC="'+file+'">');
	pic.document.write('</BODY></HTML>');}

//----------------------------------------------------------------
function showmail( text ) {
	document.write('<A HREF="mailto:' + mailadres() + '" TITLE="Start E-mail programma">' );
	if ( text ) {
		document.write( text ); }
	else {
		document.write( mailadres() ); }
	document.write( '</A>' );}

//----------------------------------------------------------------
function mailadres() {
	user = "info";
	site = "DouceFrance";
	country = "nl";
	return user + '@' + site + '.' + country; }

//----------------------------------------------------------------
var gv_frames = 1;
function init_frames() {
	if ( frames['links'].window.location.href != "/nl/framelinks.htm" ) {
		frames['links'].window.location.href = "/nl/framelinks.htm";
		frames['rechts'].window.location.href = "/nl/framerechts.htm";
		//frames['onder'].window.location.href = "/nl/frameonder.htm";
		gv_frames = 0;}}

//----------------------------------------------------------------
function button_normal(img) {
	if ( document.images ) {
		document[img].src = eval( img+'1.src' ); }}

function button_select(img){
	if (document.images){
		document[img].src = eval( img+'2.src' );}}
		
//----------------------------------------------------------------		
		
function open_img(url, width, height, title, timeout) {
	windowprops = "left=30,top=30,width=" + (width+20) + ",height=" + (height+20);
	text = "<html><head><title>" + title + "</title></head><body bgcolor=#333366";
	if (timeout != 0){
		 text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";}
	text += "><center><img src='" + url + "'></center></body></html>";
	preview = window.open("", "preview", windowprops);
	preview.document.open();
	preview.document.write(text);
	preview.document.close();}