function showSWF(plik, width, height, bgcolor, FlashVars, wersja, align) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+wersja+',0,0,0" width="'+width+'" height="'+height+'" id="'+plik+'" align="'+align+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+plik+'" />');
	document.write('<param name="id" value="'+plik+'" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="FlashVars" value="'+FlashVars+'"/>');
	document.write('<param name="quality" value="high" />');
	if (bgcolor!=''){
		document.write('<param name="bgcolor" value="'+bgcolor+'" />');
	}else{
		document.write('<param name="wmode" value="transparent" />');
	}
	document.write('<embed src="'+plik+'" quality="high" ');
	if (bgcolor!=''){
		document.write('bgcolor="'+bgcolor+'"');
	}else{
		document.write('wmode="transparent"');
	}
	document.write(' width="'+width+'" height="'+height+'" FlashVars="'+FlashVars+'" name="'+plik+'" align="'+align+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function showMail(cz1, cz2) {
	document.write('<a href="mailto:'+cz1+'@'+cz2+'">'+cz1+'@'+cz2+'</a>');
}

function zmienStrone(t) {
	if(t==1) {
		document.getElementById('jacht_dane').style.display='inline';
		document.getElementById('jacht_cennik').style.display='none';
	} else {
		document.getElementById('jacht_dane').style.display='none';
		document.getElementById('jacht_cennik').style.display='inline';
	}
}

function ajaxFunction_1(){
	var ajaxRequest;
	try {
		ajaxRequest = new XMLHttpRequest();
	} catch (e) {
		try {
		ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				alert("Your browser broke!");
				return false;
			}
		}
	}

	ajaxRequest.onreadystatechange = function() {
		if(ajaxRequest.readyState == 4) {
			var ajaxDisplay = document.getElementById('ajaxDiv_1');
			ajaxDisplay.innerHTML = ajaxRequest.responseText;
		}
	}

	var d1 = document.getElementById('data_od').value;
	var d2 = document.getElementById('data_od').value;
	var queryString = "?form01=1";
	ajaxRequest.open("GET", "/oferta1.php" + queryString, true);
	ajaxRequest.send(null);
}