function chkfrm(langme){
	var	allme
	var mypassl	= document.fx.password1.length;	
	if (document.fx.usernamex.value==''){
		if (langme=='EN'){
			allme='Username field must not be empty.';
		  }
		  if (langme=='GR'){
			allme='Το πεδίο όνομα χρήστη δεν πρέπει να είναι κενό';
		  }
		alert(allme);
		return;
	}
	if ((document.fx.usernamex.value.length<3)||(document.fx.usernamex.value.length>12)){
		if (langme=='EN'){
			allme='Invalid username.\nMust be at least 3 characters long but less that 13.';
		  }
		  if (langme=='GR'){
			allme='To όνομα χρήστη δεν έγινε αποδεκτό.\nΤο μήκος του πρέπει να είναι τουλάχιστον 3 χαρακτήρες με ανώτατο όριο τους 12!';
		  }
		alert(allme);
		return;
	}
	
	if ((document.fx.password1.value=='') || (document.fx.password2.value=='')){
		if (langme=='EN'){
			allme='Password or password verification fields are empty!';
		  }
		  if (langme=='GR'){
			allme='Το πεδίο κωδικός ή επιβεβαίωση κωδικού είναι κενά!';
		  }
		alert(allme);
		return;
	}	
	if (document.fx.password1.value!=document.fx.password2.value){
		if (langme=='EN'){
			allme='Passwords do not match';
		  }
		  if (langme=='GR'){
			allme='Οι κωδικοί ασφαλείας δεν ταιριάζουν';
		  }
		alert(allme);
		return;
	}
	if (document.fx.tel.value.charAt(0)!= '+'){
		if (langme=='EN'){
			allme='Wrong format in Telephone field.\n\nMust be: +CountryCode.Telephone\ni.e.+30.2105556666';
		  }
		  if (langme=='GR'){
			allme='Ο αριθμός τηλεφώνου δεν είναι σωστός.\n\nΠρέπει να έχει σύνταξη: +ΚωδικόςΧώρας.Τηλέφωνο\nπ.χ.+30.2105556666';
		  }
		alert(allme);
		return;
	}

	if (document.fx.password1.value.length < 6){
		if (langme=='EN'){
			allme='Password is too short.\nMust be at least 6 characters long';
		  }
		  if (langme=='GR'){
			allme='Ο κωδικός ασφαλείας είναι πολύ μικρός.\nΠρέπει να έχει μήκος 6 χαρακτήρες τουλάχιστον.';
		  }
		alert(allme);
		return;
	}
	if (document.fx.email.value==''){
		if (langme=='EN'){
			allme='Email field is not completed';
		  }
		  if (langme=='GR'){
			allme='Παρακαλώ δώστε το email σας';
		  }
		alert(allme);
		return;
	}
	if (document.fx.name.value==''){
		if (langme=='EN'){
			allme='Name field is not completed';
		  }
		  if (langme=='GR'){
			allme='Παρακαλώ δώστε το όνομά σας';
		  }
		alert(allme);
		return;
	}	
	
	document.fx.submit();
}

function popme(page,w,h,scbar,stbar){
	window.open(page,"generic","toolbar=no,screenX=10,screenY=10,left=10,top=10,scrollbars="+scbar+",directories=no, status="+stbar+",menubar=no,resizable=no,width="+w+",height="+h+"'");
}

function generic(page,w,h,scroll){
	//w	=	window.screen.width-200;
	//h	=	window.screen.height-200;
	window.open(page,"generic","toolbar=no,screenX=10,screenY=10,left=10,top=10,scrollbars="+scroll+",directories=no, status=no,menubar=no,resizable=no,width="+w+",height="+h+"'");
}

function wsDNS(){
	document.fdns.dns_name1.value='ns1.websites.gr';
	document.fdns.dns_ip1.value='213.5.239.165';
	document.fdns.dns_name2.value='ns2.websites.gr';
	document.fdns.dns_ip2.value='213.5.239.165';
	document.fdns.dns_name3.value='';
	document.fdns.dns_ip3.value='';
	document.fdns.dns_name4.value='';
	document.fdns.dns_ip4.value='';		
}

function sDadmin(){
if (document.getElementById("adminDIV").style.display==''){
	document.getElementById("adminDIV").style.display='none';
	document.getElementById("i-admin").src='/images/icon-plus.gif';
}
else
{	
document.getElementById("adminDIV").style.display='';
document.getElementById("i-admin").src='/images/icon-minus.gif';
}
}

function sDtech(){
if (document.getElementById("techDIV").style.display==''){
	document.getElementById("techDIV").style.display='none';
	document.getElementById("i-tech").src='/images/icon-plus.gif';	
}
else
{	
document.getElementById("techDIV").style.display='';
document.getElementById("i-tech").src='/images/icon-minus.gif';
}
}

function sDbill(){
if (document.getElementById("billDIV").style.display==''){
	document.getElementById("billDIV").style.display='none';
	document.getElementById("i-bill").src='/images/icon-plus.gif';
}
else
{	
document.getElementById("billDIV").style.display='';
document.getElementById("i-bill").src='/images/icon-minus.gif';
}
}

function invi(ds) {
	var ds2=eval('document.getElementById("'+ds+'")')
	if (ds2.style.display==''){
		ds2.style.display='none';
	}
	else
	{	
		ds2.style.display='';
	}
}

function invix(ds) {
	var ds2=eval('document.getElementById("'+ds+'")')
	if (ds2.style.display==''){
		ds2.style.display='none';
		document.getElementById("expimage"+ds).src='/images/icon-expand-off.gif';
	}
	else
	{	
		ds2.style.display='';
		document.getElementById("expimage"+ds).src='/images/icon-expand-on.gif';		
	}
}



function payer(dt) {
	if (document.getElementById("wire").style.display==''){
		document.getElementById("wire").style.display='none';
	}
	else
	{	
		document.getElementById("wire").style.display='';
		document.getElementById("creditcard").style.display='none';		
	}
}

function payercc(dt) {
	if (document.getElementById("creditcard").style.display==''){
		document.getElementById("creditcard").style.display='none';
	}
	else
	{	
		document.getElementById("wire").style.display='none';
		document.getElementById("creditcard").style.display='';		
	}
}

function chkmyform(langme){
	var	allme
	var mypassl	= document.fxx1.password1.length;	
	var mypass2	= document.fxx1.password2.length;	
	if (document.fxx1.name.value==''){
		if (langme=='EN'){
			allme='Name field must not be empty.';
		  }
		  if (langme=='GR'){
			allme='Το πεδίο όνομα δεν πρέπει να είναι κενό';
		  }
		alert(allme);
		return;
	}	
	if (document.fxx1.email.value==''){
		if (langme=='EN'){
			allme='Τhe Email field must not be empty.';
		  }
		  if (langme=='GR'){
			allme='Το πεδίο Εmail δεν πρέπει να είναι κενό';
		  }
		alert(allme);
		return;
	}		
	if (document.fxx1.tel.value==''){
		if (langme=='EN'){
			allme='You must provide a phone number.';
		  }
		  if (langme=='GR'){
			allme='Το πεδίο του τηλεφώνου δεν πρέπει να είναι κενό';
		  }
		alert(allme);
		return;
	}	
	if (document.fxx1.website.value==''){
		if (langme=='EN'){
			allme='You must have a website in order to become a reseller.';
		  }
		  if (langme=='GR'){
			allme='Για να γίνετε μεταπωλητής πρέπει να έχετε website!';
		  }
		alert(allme);
		return;
	}		
	if (document.fxx1.password1.value.length < 6){
		if (langme=='EN'){
			allme='Passwords is too short.\nMust be at least 6 characters long';
		  }
		  if (langme=='GR'){
			allme='Ο κωδικός ασφαλείας είναι πολύ μικρός.\nΠρέπει να έχει μήκος 6 χαρακτήρες τουλάχιστον.';
		  }
		alert(allme);
		return;
	}	
	document.fxx1.submit();
}


function vcc(langme){
	var	allme

	if (document.vccf.type.value=='--'){
		if (langme=='EN'){
			allme='Please select the type of credit card';
		  }
		  if (langme=='GR'){
			allme='Παρακαλώ επιλέξτε τον τύπο της πιστωτικής σας κάρτας';
		  }
		alert(allme);
		return;
	}		
	if (document.vccf.cardholder.value==''){
		if (langme=='EN'){
			allme='Please insert the cardholder name';
		  }
		  if (langme=='GR'){
			allme='Το πεδίο όνομα κατόχου δεν πρέπει να είναι κενό';
		  }
		alert(allme);
		return;
	}			
	if (document.vccf.cardholder.value.length < 6){
		if (langme=='EN'){
			allme='Invalid cardholder name';
		  }
		  if (langme=='GR'){
			allme='To όνομα του κατόχου της κάρτας δεν είναι σωστό';
		  }
		alert(allme);
		return;
	}	
	if (document.vccf.cardno.value==''){
		if (langme=='EN'){
			allme='Please insert the credit card number';
		  }
		  if (langme=='GR'){
			allme='Παρακαλώ εισάγετε τον αριθμό της πιστωτικής σας κάρτας';
		  }
		alert(allme);
		return;
	}			
	if (document.vccf.cardno.value.length < 16){
		if (langme=='EN'){
			allme='Invalid credit card number.\nPlease try again.';
			document.vccf.cardno.value='';
		  }
		  if (langme=='GR'){
			allme='Ο αριθμός της πιστωτικής κάρτας είναι λανθασμένος.\nΠαρακαλώ προσπαθήστε ξανά.';
			document.vccf.cardno.value='';
		  }
		alert(allme);
		return;
	}
	if (document.vccf.cvv2.value==''){
		if (langme=='EN'){
			allme='Please insert CVV2 number';
		  }
		  if (langme=='GR'){
			allme='Παρακαλώ εισάγετε τον αριθμό CVV2';
		  }
		alert(allme);
		return;
	}		
	if ((document.vccf.expMonth.value=='--')||(document.vccf.expYear.value=='----')){
		if (langme=='EN'){
			allme='Please insert a valid expiry date';
		  }
		  if (langme=='GR'){
			allme='Παρακαλώ εισάγετε την ημερομηνία λήξης της κάρτας σας!';
		  }
		alert(allme);
		return;
	}			
	document.vccf.submit();
}

function sD(){
if (document.getElementById("myDIV").style.display==''){
	document.getElementById("myDIV").style.display='none';
}
else
{	
document.getElementById("myDIV").style.display='';
}
}

function hover(co0,co1,cname0,cname1){
	document.getElementById(co0).className=cname0;
	document.getElementById(co1).className=cname1;	
}
