function disableFiel(ID)
{
 if(document.getElementById('num' + ID).disabled == true) { document.getElementById('num' + ID).disabled = false; document.getElementById('num' + ID).style.backgroundColor='#FFFFFF'; }
 else if(document.getElementById('num' + ID).disabled == false) { document.getElementById('num' + ID).disabled = true; document.getElementById('num' + ID).style.backgroundColor='#CCCCCC'; }
 
 var count = 1;
 while(count < 4)
 {
 if(document.getElementById(count + 'size' + ID).disabled == true) { document.getElementById(count + 'size' + ID).disabled = false; }
 else if(document.getElementById(count + 'size' + ID).disabled == false) { document.getElementById(count + 'size' + ID).disabled = true; }
 
 count++;
 }
}

function jumpToGal(ID, site) {
 if(!site) var location = '?mode=photoshop&galID=' + ID; else var location = '?mode=photoshop&galID=' + ID + '&site=' + site;
  document.test.action = location;
  document.test.submit();
}

function check() { 
 if(document.FORM.name.value == "" || document.FORM.prename.value == "" || document.FORM.email.value == "" || document.FORM.street.value == "" || document.FORM.streetnum.value == "" || document.FORM.plz.value == "" || document.FORM.city.value == "")
 {
 alert('Alle Felder müssen ausgefüllt sein!!!');
 }
 else
 { 
 document.FORM.submit();
 } 
}

function popup_photoshop(ID,breite,hoehe,galID) 
{ 
 var breite = breite + 30;
 var hoehe = hoehe + 100;
 var positionX=(screen.availWidth / 2 - breite / 2); 
 var positionY=(screen.availHeight / 2 - hoehe / 2); 
  if(galID) { var url='photo_popup.php?ID=' + ID + '&galID=' + galID; } else { var url='photo_popup.php?ID=' + ID; }
 pop=window.open('','Gallerie','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,fullscreen=0,width='+breite+',height='+hoehe+',top=10000,left=10000'); 
 pop.resizeTo(breite,hoehe); 
 pop.moveTo(positionX,positionY); 
 pop.location=url; 
 setTimeout("pop.focus()",250);
}
onerror = stopError;
function stopError()
{return true;}
