// Icmeler Online - Java Script Kodlari

	// why become a member
function memberwhy(){
	window.open('why_become_a_member.php','memberwhy','width=400,height=300');
	}

	// check availibity
function checkav(no){
	window.open('chart_en.php?no='+no,'check','width=750,height=500');
	}
	
	// testimonials message read
function testimonials(no){
	window.open('testimonials_read.php?no='+no,'testimonials'+no,'width=400, height=300');
	}
	
	// webcam
function webcam(){
	//window.open('icmeler_webcam.php','webcam','width=400, height=300');
	window.open('webcam.php','webcam','width=400, height=300');
	}

	// video//
function video(dosya){
	window.open("video.php?dosya="+dosya,"video","width=400, height=300");
	}


	// main page by flash
function s_main(){
	window.open('index.php','_self');
	}
	
	// hotels by flash
function s_hotels(){
	window.open('icmeler_hotels.php','_self');
	}

	// aparts by flash
function s_aparts(){
	window.open('icmeler_apartments.php','_self');
	}

	// flights by flash
function s_flights(){
	window.open('icmeler_flight_tickets.php','_self');
	}

	// transfers by flash
function s_transfers(){
	window.open('icmeler_airport_transfers.php','_self');
	}

	// contact by flash
function s_contact(){
	window.open('icmeler_contact_us.php','_self');
	}

	// form1 check
function form1check(){
	_doc=document.formrez;
	mesaj = "";
	if (_doc.name.value == "" || _doc.email.value == "" || _doc.phone.value == "" || document.formrez.pmetod.checked==false || !document.formrez.iagree.checked){
		mesaj = "All fields must be filled"
		if (_doc.phone.value == ""){
			mesaj += "\n* Phone";
			_doc.phone.focus();
			}
		if (_doc.email.value == ""){
			mesaj += "\n* E-mail";
			_doc.email.focus();
			}
		if (_doc.name.value == ""){
			mesaj += "\n* Name";
			_doc.name.focus();
			}
	if (!document.formrez.pmetod.checked){
		mesaj += "\n* Select Payment method !";
	    //document.formrez.pmetod.focus();
	}
	if (!document.formrez.iagree.checked){
		mesaj += "\n* You must agree to Terms and Conditions to proceed";
	    document.formrez.iagree.focus();
	}

alert(mesaj);
		return false;
	}
	
}

function callback1(){
	window.open("callback.php","callback","width=805, height=500, resizable=yes, scrollbars=yes");
	
	}

function googlemap(no){
	window.open("googlemap.php?no="+no,no,"width=530, height=330, resizable=yes, scrollbars=yes");
	
	}
