function openWindow(src, sirka, vyska) {

	window.open(src, "img",'toolbar=0,location=0,scrollbars=0,resizable=yes,width=' + (sirka + 50) + ', height=' + (vyska + 150));
	return false;
}


function photogallery(src,w,h) {

	w=w?w:840;
	h=h?h:790;
	
	window.open(src, "img",'left='+((screen.width-w)/2)+',top=0,toolbar=0,resizable=yes,width='+w+',height='+h);
	return false;
}


function zmen_platbu(pole){

	if(pole){
		for(i=0;i<document.obj_form.platba.length;i++){

			platba_text=document.getElementById('name_'+document.obj_form.platba[i].id);
			platba_radio=document.obj_form.platba[i];
	
			if(platba_text)
				platba_text.className='inactive';

			if(platba_radio)
				platba_radio.disabled=true;
		}

		for(i=0;i<pole.length;i++){
			
			platba_text=document.getElementById('name_platba'+pole[i]);
			platba_radio=document.getElementById('platba'+pole[i]);
			
			if(platba_radio)
				platba_radio.disabled=false;
			if(platba_text) {
				platba_text.className='active';
			}
		}
	}
}

function mailto_fc( box, domain ) {

 var proto=String.fromCharCode( 109,97,105,108,116,111,58 )
 w=window.open(proto+box+String.fromCharCode(64)+domain);
 if (w!=null) w.close(); //FF
}


function mailto( name, domain, attributes ) {

 if( typeof(attributes)=='undefined' ) attributes = '';
 document.write("<a href=\"javascript:mailto_fc('"+name+"', '"+domain+"')\""+(attributes.length > 0 ? ' ' : '')+attributes+'>'+name+String.fromCharCode(64)+domain+'</a>');
}

