// JavaScript Document


//' weather pop up 
function openWeather(){
	testwindow= window.open ("popup/weather.aspx", "weather","location=0,status=0,scrollbars=1,width=310,height=260");
testwindow.moveTo(280,180);
	}
	
	function openOroi(){
testwindow= window.open ("popup/oroi.aspx", "oroi","location=0,status=0,scrollbars=1,width=600,height=450");
testwindow.moveTo(280,180);
		}
		
		
	function openPrivacy(){
testwindow= window.open ("popup/privacy.aspx", "privacy","location=0,status=0,scrollbars=1,width=600,height=450");
testwindow.moveTo(280,180);
		}
		
	function openReport(){
testwindow= window.open ("popup/ProblemReport.aspx", "report","location=0,status=0,scrollbars=1,width=600,height=450");
testwindow.moveTo(280,180);
		}
		
	function openContactForm(){
testwindow= window.open ("popup/contactForm.aspx", "contact","location=0,status=0,scrollbars=1,width=600,height=461");
testwindow.moveTo(280,180);
	}
	
	function validateContRequest_el(){
		
		var val_1 = document.getElementById("TextBox1");
		var val_2 = document.getElementById("TextBox2");
		var val_3 = document.getElementById("TextBox4");
		
		if(val_1.value==""){
		
			val_1.focus();
			//val_1.style.borderStyle ="solid 1px red";
			alert("Παρακαλώ εισάγετε όνομα.");
			return false;
			}else if(val_2.value==""){
			val_2.focus();
			//val_2.style.borderStyle ="solid 1px red";
			alert("Παρακαλώ εισάγετε επώνυμο.");
			return false;
				}else if(val_3.value==""){
			val_3.focus();
			//val_3.style.borderStyle ="solid 1px red";
			alert("Παρακαλώ εισάγετε Email.");
			return false;
				}else if(checkemail(val_3.value)== false){	
			val_3.focus();
			//val_3.style.borderStyle ="solid 1px red";
			alert("Παρακαλώ εισάγετε Email.");
			return false;
				}
		}
		
		function validateContRequest_en(){
		var val_1 = document.getElementById("TextBox1");
		var val_2 = document.getElementById("TextBox2");
		var val_3 = document.getElementById("TextBox4");
		
		if(val_1.value==""){
			val_1.focus();
			//val_1.style.borderStyle ="solid 1px red";
			alert("Please input name.");
			return false;
			}else if(val_2.value==""){
			val_2.focus();
			val_2.style.borderStyle ="solid 1px red";
			alert("Please input surname.");
			return false;
				}else if(val_3.value==""){
			val_3.focus();
		//	val_3.style.borderStyle ="solid 1px red";
			alert("Please input Email.");
			return false;
				}else if(checkemail(val_3.value)== false){	
			val_3.focus();
			//val_3.style.borderStyle ="solid 1px red";
			alert("Please input a valid email address.");
			return false;
				}
		
		}
		
function checkemail(str){
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}
		
		function redir_car(){
			
			
			}
			
			
			/* vars destr on the side  */
			
			thisPAge = "";
			
			function overMe(ItemId){
			var lbl = document.getElementById(ItemId);
			
			lbl.style.backgroundColor="#B92A30";
				}
			
			function outMe(ItemId){
			var lbl = document.getElementById(ItemId);
			
if(thisPAge == ItemId){
			lbl.style.backgroundColor="#B354422";
}else {
	lbl.style.backgroundColor="#FFFFFF";
	}

				}
				
				
				function conCityShow(ItemId){
					
					//alert(ItemId);
					var meitem = document.getElementById(ItemId);
					var meitem1 = document.getElementById("infoIN");
					var meitem2 = document.getElementById("hotelsIN");
					var meitem3 = document.getElementById("galleryIN");
					
					var theItem1 = document.getElementById("TXTDIV");
					var theItem2 = document.getElementById("TXTDIV2");
					var theItem3 = document.getElementById("TXTDIV3");
					
					
					if(ItemId == "infoIN"){
					theItem1.style.visibility = "visible";
					theItem1.style.display = "";
					
					theItem2.style.visibility = "hidden";
					theItem2.style.display = "none";
					
					theItem3.style.visibility = "hidden";
					theItem3.style.display = "none";
					
					thisPAge = "infoIN";
					}else if(ItemId == "hotelsIN"){
						
					theItem1.style.visibility = "hidden";
					theItem1.style.display = "none";
					
					theItem2.style.visibility = "visible";
					theItem2.style.display = "";
					
					theItem3.style.visibility = "hidden";
					theItem3.style.display = "none";
					thisPAge = "hotelsIN";
						}else if(ItemId == "galleryIN"){
					theItem1.style.visibility = "hidden";
					theItem1.style.display = "none";
					
					theItem2.style.visibility = "hidden";
					theItem2.style.display = "none";
					
					theItem3.style.visibility = "visible";
					theItem3.style.display = "";
					thisPAge = "galleryIN";
						}
						
						meitem1.style.backgroundColor ="#FFFFFF";
						meitem2.style.backgroundColor ="#FFFFFF";
						meitem3.style.backgroundColor ="#FFFFFF";
						meitem.style.backgroundColor ="#B35442";
						
						
				}
				
				function openBroken(Address){
					
testwindow2= window.open (Address, "BrokenLink","location=0,status=0,scrollbars=1,width=600,height=364");
testwindow2.moveTo(280,180);
					
					}
					
					function openAddLink(){
testwindow1= window.open ("popup/AddLink.aspx", "AddLink","location=0,status=0,scrollbars=1,width=610,height=600");
testwindow1.moveTo(280,180);
						
						}
						
						function validatelinkRequest_el(){
							
							}
						
						
						function validatelinkRequest_en(){
							
							}
				
			
				
				
