function FlashCode(width_,height_,where_,what_,transparent_,id_,loop_,bg_)
	{
		document.getElementById(where_).innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width_+'" height="'+height_+'" id="'+id_+'" align="middle"> \n'+
											      '<param name="movie" value="'+what_+'" /><param name="quality" value="high" /><param name="wmode" value="'+transparent_+'" /><param name="bgcolor" value="#'+bg_+'" /><param name="loop" value="'+loop_+'" /><param name="menu" value="false" /> \n'+
                                                  '<embed src="'+what_+'" quality="high" loop="'+loop_+'" wmode="'+transparent_+'" menu="false" bgcolor="#'+bg_+'" width="'+width_+'" height="'+height_+'" name="'+id_+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> \n'+
                                                  '</object>';
	}


function radioertek(radioObj)
	{
		if(!radioObj)
	    	return '';
	    var radioLength = radioObj.length;
	    if(radioLength == undefined)
	    	if(radioObj.checked)
	        	return radioObj.value;
	        else
	        	return '';
	    for(var i = 0; i < radioLength; i++)
	    	{
	        	if(radioObj[i].checked)
	        		{
	                	return radioObj[i].value;
	                }
	        }
	  	return '';
	}

function pos()
	{		var pos=0;
		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;
	       }
	      return pos;	}


function size_close()
	{
       	document.getElementById('alpha_id').style.width='0px';
        document.getElementById('alpha_id').style.height='0px';
        document.getElementById('alpha_id').style.display='none';
        document.getElementById('size').style.top='0px';
        document.getElementById('size').style.left='0px';
        document.getElementById('size').style.display='none';
	}


function size_open()
	{
       	document.getElementById('alpha_id').style.display='block';
       	document.getElementById('alpha_id').style.width=document.getElementById('body_id').offsetWidth+'px';
        document.getElementById('alpha_id').style.height=document.getElementById('body_id').offsetHeight+'px';
        document.getElementById('alpha_id').style.display='block';

        var l=(document.getElementById('body_id').offsetWidth-document.getElementById('container').offsetWidth)/2;
        l=l+document.getElementById('menu').offsetWidth;
        l=l+((document.getElementById('right').offsetWidth-505)/2);

        var t=pos()+20;

        document.getElementById('size').style.top=t+'px';
        document.getElementById('size').style.left=l+'px';
        document.getElementById('size').style.display='block';
    }

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(form.mode.value=='')
        	{
            	alert("Válasszon szállítási módot!");
            	form.mode.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
        	{
	    		form.submit();
		    }

	}





