<br />
<font size='1'><table dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'wauswebd_elvez'@'localhost' (using password: YES) in /home/sites/www.elvez.eu/public_html/classes/class.mysql.php on line <i>36</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0002</td><td bgcolor='#eeeeec' align='right'>63344</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='/home/sites/www.elvez.eu/public_html/js/functions.js.php' bgcolor='#eeeeec'>../functions.js.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0015</td><td bgcolor='#eeeeec' align='right'>186768</td><td bgcolor='#eeeeec'>sql->setConnection(  )</td><td title='/home/sites/www.elvez.eu/public_html/js/functions.js.php' bgcolor='#eeeeec'>../functions.js.php<b>:</b>11</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0015</td><td bgcolor='#eeeeec' align='right'>187764</td><td bgcolor='#eeeeec'><a href='http://www.php.net/mysql_connect' target='_new'>mysql_connect</a>
(  )</td><td title='/home/sites/www.elvez.eu/public_html/classes/class.mysql.php' bgcolor='#eeeeec'>../class.mysql.php<b>:</b>36</td></tr>
</table></font>
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
var xmlHttp = getHttpObject();

function getHttpObject(){
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	} 
	catch (e) {
		// Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} 
		catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch (e) {
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	return xmlHttp;
}

function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var imgOver = (myImage.onmouseover) ? "onmouseover='" + myImage.onmouseover + "' " : "";
	   var imgOut = (myImage.onmouseout) ? "onmouseout='" + myImage.onmouseout + "' " : "";
	   var imgLoad = (myImage.onload) ? "onload='" + myImage.onload + "' " : "";
	   var imgClick = (myImage.onclick) ? "onclick='" + myImage.onclick + "' " : "";
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle + imgOver + imgOut + imgLoad + imgClick
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML
	}
}

function next_month(curr_month, cottage_id) {
	var url = "http://www.elvez.eu/lib/get_month.php?mode=next&cottage_id="+cottage_id+"&current=" + curr_month
	xmlHttp.open ("POST", url , true);
	xmlHttp.send (null);
	xmlHttp.onreadystatechange= function() {
		if (xmlHttp.readyState == 4){
			document.getElementById('kalender').innerHTML = xmlHttp.responseText; 
		}
	}
}

function previous_month(curr_month, cottage_id) {
	var url = "http://www.elvez.eu/lib/get_month.php?mode=previous&cottage_id="+cottage_id+"&current=" + curr_month
	xmlHttp.open ("POST", url , true);
	xmlHttp.send (null);
	xmlHttp.onreadystatechange= function() {
		if (xmlHttp.readyState == 4){
			document.getElementById('kalender').innerHTML = xmlHttp.responseText; 
		}
	}
}

function check_availability(aantal_nachten, cottage_id) {
	var datum = document.getElementById('input_periode').value;
	var url = "http://www.elvez.eu/lib/check_reservations.php?&cottage_id="+cottage_id+"&aantal_nachten=" + aantal_nachten +"&datum_van_aankomst=" +datum; 
	xmlHttp.open ("POST", url , true);
	xmlHttp.send (null);
	xmlHttp.onreadystatechange= function() {
		if (xmlHttp.readyState == 4){
			if(xmlHttp.responseText == "UNAVAILABLE") {
			 	document.getElementById('input_aantalnachten').style.background = "#FF0000";
			 	document.getElementById('input_aantalnachten').style.color = "#FFFFFF";
			 	document.getElementById('submit_button').disabled = true;
			} else if(xmlHttp.responseText == "ERROR") {
				document.getElementById('input_periode').style.background = "#FF0000";
			 	document.getElementById('input_periode').style.color = "#FFFFFF";
			 	document.getElementById('submit_button').disabled = true;
			} else {
			 	document.getElementById('submit_button').disabled = false;
			}
		}
	}
}

function setdate(date) {
	document.getElementById('input_periode').value = date;
}

function sign_guestbook() {
	document.getElementById('gastenboek_formulier').style.display='block';
}
