function valid()
	{
		var form = document.basket_form;
        if(form.name.value=='')
        	{
                alert("Kérjük töltse ki a név mezőt!");
	           	form.name.focus();
    	       	form.name.select();
 	    		return false;
            }

        else if(form.city.value=='')
        	{
		    	alert("Kérjük adja meg a helységet!");
            	form.city.focus();
 	    		return false;
            }
        else if(form.zip.value=='')
             {
		     	alert("Kérjük adja meg az irányítószámot!");
        		form.zip.focus();
			 	return false;
             }
		else if(form.address.value=='')
        	{
            	alert("Kérjük adja meg a címet!");
            	form.address.focus();
 	    		return false;
            }
        else if(form.mobil.value=='')
        	{
            	alert("Kérjük adja meg mobilszámát!");
            	form.mobil.focus();
 	    		return false;
            }
        else if(form.email.value=='')
        	{
            	alert("Az e-mail mező kitöltése kötelező!");
            	form.email.focus();
	 	    	return false;
            }

        else if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email.value))
        	{
            	alert('Nem megfelelő az E-mail cím!')
	            form.email.focus();
	            return false;
            }
        else if (form.zip.value.length!=4  | isNaN(form.zip.value))
        	{
            	alert('Nem megfelelő irányítószám!')
	            form.zip.focus();
	            return false;
            }
        else
        	{
	    		return true;
		    }

	}

function poser(plusz,what,width___)
	{
		if (window.innerHeight)
	       {
	       		pos = window.pageYOffset;
	       }
	    else if (document.documentElement && document.documentElement.scrollTop)
	       {
	       		pos = document.documentElement.scrollTop;
	       }
	    else if (document.body)
	       {
	    		pos = document.body.scrollTop;
	       }

        pos=(pos+plusz);

	    document.getElementById(what).style.top = pos + 'px';

        u=(document.body.clientWidth-width___)/2;
        document.getElementById(what).style.left = u + 'px';

	}

function MM_swapImgRestore()
	{
    	//v3.0
		var i,x,a=document.MM_sr;
        for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
        	x.src=x.oSrc;
	}

function MM_preloadImages()
	{
    	//v3.0
		var d=document;
        if(d.images)
    		{
            	if(!d.MM_p)
                	d.MM_p=new Array();
    			var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
                for(i=0; i<a.length; i++)
					if (a[i].indexOf("#")!=0)
                    	{
                        	d.MM_p[j]=new Image;
                            d.MM_p[j++].src=a[i];
                        }
            }
	}

function MM_findObj(n, d)
	{
		//v4.01
		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=MM_findObj(n,d.layers[i].document);
  		if(!x && d.getElementById)
        	x=d.getElementById(n);
            return x;
	}

function MM_swapImage()
	{
		//v3.0
	    var i,j=0,x,a=MM_swapImage.arguments;
	    document.MM_sr=new Array;
	    for(i=0;i<(a.length-2);i+=3)
	    if ((x=MM_findObj(a[i]))!=null)
	    	{
	        	document.MM_sr[j++]=x;
	            if(!x.oSrc)
	            x.oSrc=x.src; x.src=a[i+2];
	        }
	}

function pc()
	     {
	     	document.picture.src='theme/tr.gif';
	        document.picture.style.border='none';
	        document.picture.style.width='1px';
            document.picture.style.height='1px';
            document.picture.style.visibility ='hidden';
        	document.getElementById('alpha_id').style.visibility ='hidden';
        	document.getElementById('alpha_id').style.width ='1px';
	        document.getElementById('alpha_id').style.height ='1px';
	     }

function tc()
	{
    	document.getElementById('details_table_id').style.visibility ='hidden';
    	document.getElementById('details_table_id').style.width='1px';
		document.getElementById('details_table_id').style.height='1px';
    	document.getElementById('details_table_id').innerHTML='';
        document.getElementById('alpha_id').style.visibility ='hidden';
        document.getElementById('alpha_id').style.width ='1px';
        document.getElementById('alpha_id').style.height ='1px';
	}

function t_(text__)
	{
        document.getElementById('details_table_id').style.width='320px';
        document.getElementById('details_table_id').style.height='500px';
        document.getElementById('details_table_id').style.border='4px double #698E00';
        poser(10,'details_table_id',300);
        document.getElementById('details_table_id').innerHTML=text__;
        document.getElementById('details_table_id').style.visibility ='visible';
        document.getElementById('alpha_id').style.width =(document.body.clientWidth+5)+'px';
        document.getElementById('alpha_id').style.height=(document.getElementById('footer').offsetTop+10)+'px';
        document.getElementById('alpha_id').style.visibility ='visible';
    }

function p(pic__,width__,height__)
	{
		document.picture.src=pic__;
	    document.picture.style.border='2px groove #698E00';
        document.picture.style.height=height__+'px';
        document.picture.style.width=width__+'px';
        poser(10,'picture_table_id',width__);
        document.picture.style.visibility ='visible';
        document.getElementById('alpha_id').style.width =(document.body.clientWidth+5)+'px';
        document.getElementById('alpha_id').style.height=(document.getElementById('footer').offsetTop+10)+'px';
        document.getElementById('alpha_id').style.visibility ='visible';
    }