	var defaultEmptyOK = false;
	var whitespace = " \t\n\r";

	function next_openwindow(u,p) {
	  window.open(u,'popup',p);
	}
	
	function openNewWindow(u,n,p) {
	  window.open(u,n,p);
	}
	

	function isWhitespace (s)
	{   var i;

	    if (isEmpty(s)) return true;

	    for (i = 0; i < s.length; i++)
	    {   
	        var c = s.charAt(i);

	        if (whitespace.indexOf(c) == -1) return false;
	    }

	    return true;
	}
	function isEmpty(s)
	{   return ((s == null) || (s.length == 0))
	}
	function isEmail (s)
	{   if (isEmpty(s)) 
	       if (isEmail.arguments.length == 1) return defaultEmptyOK;
	       else return (isEmail.arguments[1] == true);
	   
	    if (isWhitespace(s)) return false;
	    
	    var i = 1;
	    var sLength = s.length;

	    while ((i < sLength) && (s.charAt(i) != "@"))
	    { i++
	    }

	    if ((i >= sLength) || (s.charAt(i) != "@")) return false;
	    else i += 2;

	    while ((i < sLength) && (s.charAt(i) != "."))
	    { i++
	    }

	    if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
	    else return true;
	}

	function checkkeys(formname)
	{	eval("var keys = document.forms."+formname+".keys.value");
		var errors;
		errors="";
		if (keys.length<3){errors="Παρακαλώ πληκτρολογήστε λέξεις κλειδιά με 3 τουλάχιστον χαρακτήρες.\n\n"}
		if (errors.length==0)
			{eval("var keys = document.forms."+formname+".submit()");
			return true;}
		else
			{alert(errors);
			return false;}
	}

function MM_jumpMenu(targ,selObj,restore){
  eval("window.navigate('"+selObj.options[selObj.selectedIndex].value+"')");
  if (restore) selObj.selectedIndex=0;
}

function showpic(WhichOne, BackPic, Type, Pos)	{
		
	if(Pos == 1)	{
			
		Ypos = -120;
		Xpos = document.body.scrollLeft + event.clientX - event.offsetX -420;
		Ypos = document.body.scrollTop + event.clientY - event.offsetY + Ypos;
	
		WhichOne.style.top = Ypos;
		WhichOne.style.left = Xpos;
	}
		
	if(Type == 0)	{ 
	WhichOne.style.visibility = "visible";
		
	Amount = 30;
	BackPic.style.filter = "alpha(opacity=" + Amount + ")";
	} else	{
	WhichOne.style.visibility = "hidden";
		
	Amount = 100;
	BackPic.style.filter = "alpha(opacity=" + Amount + ")";
		
	}
		
}

var themenu;
var NN4 = document.layers? true : false;
var IE4 = document.all? true : false;

function ShowMenu(WhichOne,Length,Height) {

	themenu = WhichOne;

	Ypos = 50;
	Xpos = document.body.scrollLeft + event.clientX - event.offsetX -40;
	//Ypos = document.body.scrollTop + event.clientY - event.offsetY + Ypos;

	if(IE4)	{
		if(MenuFeatures.style.visibility == 'visible')
		MenuFeatures.style.visibility = 'hidden';
		
		if(MenuProducts.style.visibility == 'visible')
		MenuProducts.style.visibility = 'hidden';
		
		if(MenuSupport.style.visibility == 'visible')
		MenuSupport.style.visibility = 'hidden';

		WhichOne.style.top = Ypos;
		WhichOne.style.left = Xpos;
		WhichOne.style.width = Length;
		WhichOne.style.height=Height;

		WhichOne.style.visibility = "visible";
		delay = 500;
	} if(NN4)	{

		if(MenuFeatures.style.visibility == 'show')
		MenuFeatures.style.visibility = 'hidden';
		
		if(MenuProducts.style.visibility == 'show')
		MenuProducts.style.visibility = 'hidden';
		
		if(MenuSupport.style.visibility == 'show')
		MenuSupport.style.visibility = 'hidden';

		WhichOne.style.top = Ypos;
		WhichOne.style.left = Xpos;
		WhichOne.style.width = Length;
		WhichOne.style.height=Height;

		WhichOne.style.visibility = "show";
		delay = 500;
	}

}
	function checknewsletter()
	{	var email = document.forms.maillist.email.value;
		var errors;
		errors="";
		if (isEmail(email)==0){errors="Το e-mail σας δεν είναι έγκυρο."}
		if (errors.length==0)
			{document.forms.maillist.submit();
			return true;}
		else
			{alert(errors);return false;}
	}

	function validateform(formname)
	{
		eval("var formName = document.forms."+formname+".name.value");
		eval("var formEmail = document.forms."+formname+".email.value");
		
		var errors;
		errors="";
		if (formName.length<3){errors="Please complete your name.\n\n"}
		if (isEmail(formEmail)==0){errors=errors+"Your email is not correct.\n\n"}
		
		if (errors.length==0)
			{eval("var keys = document.forms."+formname+".submit()");
			return true;
			}
		else
			{alert(errors);
			return false;
			}
	}

function next_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=next_findObj(n,d.layers[i].document); return x;
}
