//----------- REZERVASYON FORMU DOLDURULMASI GEREKEN ALANLAR ----------------
function FormValidator(theForm)
{
	if (theForm.Yetiskinsayisi.value == "")
	{
		alert("Please Write Number of Adult(s)..");
		theForm.Yetiskinsayisi.focus();
		return (false);
	}
	if (theForm.ToplamGeceleme.value == "")
	{
		alert("Please Write Number of Accommodating Nights..");
		theForm.ToplamGeceleme.focus();
		return (false);
	}
	if (theForm.Email.value == "")
	{
		alert("Please Write Email Adress..");
		theForm.Email.focus();
		return (false);
	}
	if (theForm.Ulkesi.value == "")
	{
		alert("Please Write Country of Residence..");
		theForm.Ulkesi.focus();
		return (false);
	}
	if (theForm.Sehiri.value == "")
	{
		alert("Please Write City of Residence..");
		theForm.Sehiri.focus();
		return (false);
	}
	if (theForm.MusteriAdisoyadi.value == "")
	{
		alert("Please Write First and Last Name..");
		theForm.MusteriAdisoyadi.focus();
		return (false);
	}
	if (theForm.Musteriistelefonu.value == "")
	{
		alert("Please Write Phone Number..");
		theForm.Musteriistelefonu.focus();
		return (false);
	}
}
//----------------- SAG TUS KLIDI ---------------------------
if (window.Event) // Only Netscape will have the CAPITAL E.
  document.captureEvents(Event.MOUSEUP); // catch the mouse up event
function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
{
	event.cancelBubble = true
	event.returnValue = false;
	return false;
}
function norightclick(e)	// This function is used by all others
{
	if (window.Event)	// again, IE or NAV?
	{
		if (e.which == 2 || e.which == 3)
			return false;
	}
	else
		if (event.button == 2 || event.button == 3)
		{
			event.cancelBubble = true
			event.returnValue = false;
			return false;
		}
}
document.oncontextmenu = nocontextmenu;		// for IE5+
document.onmousedown = norightclick;		// for all others

//--------------TAKVIM----------------------------
function takvim(url, width, height, title) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=0,status=no');
}

//---------------- SAYFA YAZDIRMA----------------------
function printpage(page){
page=document
print(page)
}
//-----------------------------------------------------------------