function calcit(calcform) {
	if(document.calcform.device1.value < 0 || document.calcform.device2.value < 0 || document.calcform.device3.value < 0 || document.calcform.device4.value < 0 || document.calcform.device5.value < 0 || document.calcform.device6.value < 0 || document.calcform.device7.value < 0 || document.calcform.device8.value < 0 || document.calcform.device9.value < 0 || document.calcform.device10.value < 0){
		alert("Güç için negatif değer giremezsiniz");
              return} 

	if(document.calcform.hours1.value < 0 || document.calcform.hours2.value < 0 || document.calcform.hours3.value < 0 || document.calcform.hours4.value < 0 || document.calcform.hours5.value < 0 || document.calcform.hours6.value < 0 || document.calcform.hours7.value < 0 || document.calcform.hours8.value < 0 || document.calcform.hours9.value < 0 || document.calcform.hours10.value < 0){
		alert("Saat için negatif değer giremezsiniz");
              return} 

	if(document.items.sunhours.value <= 0 ){
		alert("Gün ışığı saati için negatif değer giremezsiniz");
              return} 


var a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, i = 0, j = 0, tempefficiency = 1, temp = 0

var Volts = 12
var PolyPanelEffPercent = 13
var SolarPanelCapacity = 90
var AreaTemprature = 25
var BatteryMaxUsagePercent = 80
var InverterEfficiency = 90

tempefficiency = tempefficiency*1;
temp = temp*1;


a = document.calcform.device1.value*document.calcform.count1.value;
b = document.calcform.device2.value*document.calcform.count2.value;
c = document.calcform.device3.value*document.calcform.count3.value;
d = document.calcform.device4.value*document.calcform.count4.value;
e = document.calcform.device5.value*document.calcform.count5.value;
f = document.calcform.device6.value*document.calcform.count6.value;
g = document.calcform.device7.value*document.calcform.count7.value;
h = document.calcform.device8.value*document.calcform.count8.value;
i = document.calcform.device9.value*document.calcform.count9.value;
j = document.calcform.device10.value*document.calcform.count10.value;

document.calcform.devicet.value = a+b+c+d+e+f+g+h+i+j;

a = a*document.calcform.hours1.value;
b = b*document.calcform.hours2.value;
c = c*document.calcform.hours3.value;
d = d*document.calcform.hours4.value;
e = e*document.calcform.hours5.value;
f = f*document.calcform.hours6.value;
g = g*document.calcform.hours7.value;
h = h*document.calcform.hours8.value;
i = i*document.calcform.hours9.value;
j = j*document.calcform.hours10.value;

document.result.total.value = a+b+c+d+e+f+g+h+i+j;

document.result.devicet1.value = a;
document.result.devicet2.value = b;
document.result.devicet3.value = c;
document.result.devicet4.value = d;
document.result.devicet5.value = e;
document.result.devicet6.value = f;
document.result.devicet7.value = g;
document.result.devicet8.value = h;
document.result.devicet9.value = i;
document.result.devicet10.value = j;

if (AreaTemprature <= 30)
  tempefficiency=1;
else
  tempefficiency=100/(100-(AreaTemprature-30)*0.5);


document.items.batteryamps.value = document.result.total.value/Volts*(100/BatteryMaxUsagePercent)*(document.items.batteryreserve.value);
temp = (Volts*document.result.total.value/Volts*(document.items.batteryreserve.value))/(document.items.sunhours.value*document.items.batteryrecover.value )
document.items.batteryamps.value = document.items.batteryamps.value.substring (0,6);

document.items.panelwatts.value = (document.result.total.value/document.items.sunhours.value*(1/(SolarPanelCapacity/100))*tempefficiency)+temp;
document.items.panelwatts.value = document.items.panelwatts.value.substring(0,6);

document.items.panelarea2.value = document.items.panelwatts.value/100*(18/PolyPanelEffPercent);
document.items.panelarea2.value = document.items.panelarea2.value.substring (0,6);

document.items.inverterwatts.value = 100/InverterEfficiency*document.calcform.devicet.value;
document.items.inverterwatts.value = document.items.inverterwatts.value.substring (0,6);

document.items.chargeramps.value = (document.items.panelwatts.value/Volts)*0.7
document.items.chargeramps.value = document.items.chargeramps.value.substring (0,6);

document.items.panelvolts.value = 15*tempefficiency
document.items.panelvolts.value = document.items.panelvolts.value.substring (0,6);

return   
}

