function pnc(z) {
var ipm = document.XCVfm1.pm.value; var ips = document.XCVfm1.ps.value;
var inm = document.XCVfm1.nm.value; var ins = document.XCVfm1.ns.value;
var ikm = document.XCVfm1.km.value; var iks = document.XCVfm1.ks.value;

 if(z == 1) {
  if(ipm >= 0 && ips >= 0) {
m = ipm * 60; s = ips * 1; nwert = (((m + s) * 25) / 23.976);
jm = Math.floor(nwert / 60); js = Math.round(nwert - (60 * jm));
document.XCVfm1.nm.value = jm; document.XCVfm1.ns.value = js;
  }
  else
alert("Enter only numbers, which are greater than zero or equal to zero.");
 }

 if(z == 2) {
  if(inm >= 0 && ins >= 0) {
m = inm * 60; s = ins * 1; nwert = (((m + s) * 23.976) / 25);
jm = Math.floor(nwert / 60); js = Math.round(nwert - (60 * jm));
document.XCVfm1.pm.value = jm; document.XCVfm1.ps.value = js;
  }
  else
alert("Enter only numbers, which are greater than zero or equal to zero.");
 }

 if(z == 3) {
  if(ipm >= 0 && ips >= 0) {
m = ipm * 60; s = ips * 1; nwert = (((m + s) * 25) / 24);
jm = Math.floor(nwert / 60); js = Math.round(nwert - (60 * jm));
document.XCVfm1.km.value = jm; document.XCVfm1.ks.value = js;
  }
  else
alert("Enter only numbers, which are greater than zero or equal to zero.");
 }

 if(z == 4) {
  if(ikm >= 0 && iks >= 0) {
m = ikm * 60; s = iks * 1; nwert = (((m + s) * 24) / 25);
jm = Math.floor(nwert / 60); js = Math.round(nwert - (60 * jm));
document.XCVfm1.pm.value = jm; document.XCVfm1.ps.value = js;
  }
  else
alert("Enter only numbers, which are greater than zero or equal to zero.");
 }

 if(z == 5) {
  if(ikm >= 0 && iks >= 0) {
m = ikm * 60; s = iks * 1; nwert = (((m + s) * 24) / 23.976);
jm = Math.floor(nwert / 60); js = Math.round(nwert - (60 * jm));
document.XCVfm1.nm.value = jm; document.XCVfm1.ns.value = js;
  }
  else
alert("Enter only numbers, which are greater than zero or equal to zero.");
 }

 if(z == 6) {
  if(inm >= 0 && ins >= 0) {
m = inm * 60; s = ins * 1; nwert = (((m + s) * 23.976) / 24);
jm = Math.floor(nwert / 60); js = Math.round(nwert - (60 * jm));
document.XCVfm1.km.value = jm; document.XCVfm1.ks.value = js;
  }
  else
alert("Enter only numbers, which are greater than zero or equal to zero.");
 }
 
 if(z == 7) {
document.XCVfm1.pm.value = ""; document.XCVfm1.ps.value = "";
document.XCVfm1.nm.value = ""; document.XCVfm1.ns.value = "";
document.XCVfm1.km.value = ""; document.XCVfm1.ks.value = "";
 }
}