function generateRow() { 
 
var cout= parseInt(document.getElementById("count").value)
var d=document.getElementById("div");
  //var fieldname = "websiteUrl["+(cout + 1)+"]";
  var fieldname = "websiteUrl[]";
  
 if(cout < 10)
 {
 resize_onaddButton(25);
 d.innerHTML+="<input type='text' name='"+fieldname+"' value='http://'  class='mar_abo'>";
 document.getElementById("count").value = cout + 1;
 }
  } 
  


function dateDiff()
{
var from = $("#fromDate").val();
var to = $("#toDate").val();
var arrfrom = from.split("-");
var fromy = arrfrom[0];
var fromm = arrfrom[1];
var fromd = arrfrom[2];

var arrto = to.split("-");
var toy = arrto[0];
var tom = arrto[1];
var tod = arrto[2];

var firstdate = new Date(fromy, fromm, fromd);
var lastdate = new Date(toy, tom, tod);

var one_day=1000*60*60*24
var datediff = (Math.ceil((lastdate.getTime()-firstdate.getTime())/(one_day)));
if(datediff > 31)

	{
	alert ("Date should be less then 31 days.")
	return false;	
	}
	
else	
	return true;	
}
//-->
