Index: /schedule/function/SplitDelete.php
===================================================================
--- /schedule/function/SplitDelete.php	(revision 16421)
+++ /schedule/function/SplitDelete.php	(revision 16422)
@@ -4,5 +4,5 @@
 var meas;
 var meas2;
-	var cnt=2;
+ window.cnt=2;
  	var table = document.createElement("table");
 		table.setAttribute('id',"table2");
Index: /schedule/function/function.php
===================================================================
--- /schedule/function/function.php	(revision 16421)
+++ /schedule/function/function.php	(revision 16422)
@@ -63,7 +63,8 @@
 		var measure;
 		var value;
-		for(var i=1;i<<?php echo $Total; ?>;i++)
+		var checks = 0;
+		for(var i=1;i <= cnt;i++)
 		{
-			if($('#Time'+i).val()||$('#Time'+i).val()>0)
+			if($('#Time'+i).val() != '')
 			{
 				Time=$('#Time'+i).val();
@@ -75,7 +76,17 @@
 				selectedTime.push(Time);
 				InputValue.push(value);
+				
+			}else{
+			checks++;
+			
 			}
 		}
+		
+		if(checks == 0){
 		window.location = 'Transaction/insert.php?Time='+selectedTime+'&Source='+selectedSource+'&measure='+selectedMeasurement+'&Data='+InputValue+'&Date='+fullday+'&Date2='+fullday2;
+	}else{
+	
+	alert("Please fill all the details!");
+	}
 	});
 	
Index: /schedule/include/factdb.php
===================================================================
--- /schedule/include/factdb.php	(revision 16421)
+++ /schedule/include/factdb.php	(revision 16422)
@@ -1,4 +1,6 @@
 <?php
-	$con=mysql_connect("localhost","root","");
+
+	
+//$con=mysql_connect("localhost","root","");
 	$con=mysql_connect("localhost","scheduletest","t3stsched");
 	mysql_select_db("sandboxschedule",$con);
