function submitForm(){
	errors="false";
	errorTxt="Παρακαλώ συμπληρώστε τα παρακάτω πεδία: ";
	
	if(document.pgForm.conName.value==''){
		sep="";
		errors="true"
		errorTxt=errorTxt+"όνομα";
	}
	if(document.pgForm.conSurname.value==''){
		sep="";
		if(errors=="true"){sep=" | "}
		errors="true"
		errorTxt=errorTxt+sep+"επώνυμο";
	}
	if(document.pgForm.conMail.value==''){
		sep="";
		if(errors=="true"){sep=" | "}
		errors="true"
		errorTxt=errorTxt+sep+"e-mail";
	}
	errorTxt=errorTxt+".";
	
	if(errors!='false'){alert(errorTxt)}
	else{
		window.open("index.asp?page=thankYou","newWin","width=400,height=200");
		document.pgForm.submit();
	}
}

function menuOption(num,status){
	getOptA="opt_"+num+"a";
	getOptB="opt_"+num+"b";
	getLnk="lnk_"+num;
	if(status=="on"){
		eval("document.getElementById('"+getOptA+"').src='common/images/menuBg_on.gif'")
		eval("document.getElementById('"+getOptB+"').style.backgroundColor='#BECDDC'")
		eval("document.getElementById('"+getLnk+"').style.fontWeight='bold'")
	}
	else{
		eval("document.getElementById('"+getOptA+"').src='common/images/menuBg.gif'")
		eval("document.getElementById('"+getOptB+"').style.backgroundColor='#EBF0F5'")
		eval("document.getElementById('"+getLnk+"').style.fontWeight='normal'")
	}
}

function dropMenu(type,status,id,clr){
	if(type=='column'){document.getElementById(id).style.backgroundColor=clr}
	else if(type=='div'){
		total=parseInt(document.pgForm.dropSections.value)+1;
		if(status=='on'){
			for(i=1;i<total;i++){
				getID="drop"+i;
				if(id==i){
					eval("document.getElementById('"+getID+"').style.visibility='visible'");
				}
				else{
					eval("document.getElementById('"+getID+"').style.visibility='hidden'")
				}
			}
		}
		else{
			for(i=1;i<total;i++){
				getID="drop"+i;
				eval("document.getElementById('"+getID+"').style.visibility='hidden'")
			}
		}
	}
}

function navPrd(go){
	getCat=document.pgForm.category.value
	getPg=document.pgForm.thisPg.value;
		getNext="index.asp?page=prd_"+getCat+"_"+(parseInt(getPg)+1)+"&prd=true";
		getPrev="index.asp?page=prd_"+getCat+"_"+(parseInt(getPg)-1)+"&prd=true";
	
	if(go=='next'){window.location=getNext}
	else{window.location=getPrev}
}

function thisPos(num){
	getDiv=document.body.clientWidth-772;
	divX=parseInt(getDiv/2)+192;
	if(divX<192){divX=192}
	getId="drop"+num;
	newX=divX+parseInt((num-1)*105);
	document.getElementById(getId).style.left=newX
}

function dropPos(num){
	getDiv=document.body.clientWidth-772;
	divX=parseInt(getDiv/2)+192;
	if(divX<192){divX=192}
	for(i=0;i<num;i++){
		getId="drop"+(i+1);
		newX=divX+parseInt(i*105);
		document.getElementById(getId).style.left=newX
	}
}