var add = window.location.href;

if (add.indexOf('www') == -1) {
	var l = window.location.href.split("http://2e-volve.com");
} else {
	var l = window.location.href.split("http://www.2e-volve.com");
}

switch (l[1]) {
	case '/it-team/':
	case '/it-support/':
	case '/networks/':
	case '/office-relocation/':
	case '/voip-telephones/':
	case '/disaster-recovery/':
	case '/network-health-checks/':
	case '/anti-virus-protection/':
	case '/remote-access/':
		jkmegamenu.definemenu("megaanchoryouritteamactive", "megamenu1", "mouseover");
		//jkmegamenu.definemenu("megaanchoryourcreativeteam","newmegamenu2","mouseover");
		//jkmegamenu.definemenu("megaanchoryourcompany","megamenu3","mouseover");
		$("#leftcol").css("background","#eeeeee");
		break;
	case "/creative-team/":
	case "/portfolio/":
	case "/web-design-services/":
	case "/custom-software-development/":
	case "/email-marketing/":
	case "/ecommerce/":
	case "/search-engine-optimisation/":
	case "/search-engine-marketing/":
	case "/branding-identity/":
	case "/emerging-media/":
		//jkmegamenu.definemenu("megaanchoryouritteam", "megamenu1", "mouseover");
		jkmegamenu.definemenu("megaanchoryourcreativeteamactive","newmegamenu2","mouseover");
		//jkmegamenu.definemenu("megaanchoryourcompany","megamenu3","mouseover");
		break;
	case "/company/":
	case "/our-teams/":
	case "/corporate-responsibility/":
	case "/careers/":
		//jkmegamenu.definemenu("megaanchoryouritteam", "megamenu1", "mouseover");
		//jkmegamenu.definemenu("megaanchoryourcreativeteam","newmegamenu2","mouseover");
		jkmegamenu.definemenu("megaanchorcompanyactive","megamenu3","mouseover");
	default:
		//jkmegamenu.definemenu("megaanchoryouritteam", "megamenu1", "mouseover");
		//jkmegamenu.definemenu("megaanchoryourcreativeteam","newmegamenu2","mouseover");
		//jkmegamenu.definemenu("megaanchoryourcompany","megamenu3","mouseover");
		break;
}

// left right col
$(document).ready(function() {
	switch (l[1]) {
		case '/it-team/':
		case '/it-support/':
		case '/networks/':
		case '/office-relocation/':
		case '/voip-telephones/':
		case '/disaster-recovery/':
		case '/network-health-checks/':
		case '/anti-virus-protection/':
		case '/remote-access/':
		case "/creative-team/":
		case "/portfolio/":
		case "/web-design-services/":
		case "/custom-software-development/":
		case "/email-marketing/":
		case "/ecommerce/":
		case "/search-engine-optimisation/":
		case "/search-engine-marketing/":
		case "/branding-identity/":
		case "/emerging-media/":
		case "/company/":
		case "/our-teams/":
		case "/corporate-responsibility/":
		case "/careers/":
		case "/news/":
		case "/Default.aspx?page=news":
			$("#leftcol").css("background","#eeeeee");
			$("#rightcol").css("background","#eeeeee");
			break;
	}
	
	if (l[1].substring(0,19) == '/SearchResults.aspx') {
		$("#leftcol").css("background","#eeeeee");
		$("#rightcol").css("background","#eeeeee");
	}

});

// div min-height css
$(document).ready(function() {
	var minheight = 0;
	switch (l[1]) {
		case '/contact-us/': minheight = 840; $("#leftcol").css("background-color","#efefef"); break;
		case '/it-team/': minheight = 716; $("#benefitsofmigratingsidebar").css("min-height",minheight+"px"); break;
		case '/it-support/': minheight = 695; $("#benefitsofmigratingsidebar").css("min-height",minheight+"px"); break;
		case '/networks/': minheight = 688; break;
		case '/office-relocation/': minheight = 689; break;
		case '/voip-telephones/': minheight = 724; $("#benefitsofmigratingsidebar").css("min-height",minheight+"px"); break;
		case '/disaster-recovery/': minheight = 688; break;
		case '/network-health-checks/': minheight = 715; $("#benefitsofmigratingsidebar").css("min-height",minheight+"px"); break;
		case '/anti-virus-protection/': minheight = 688; $("#benefitsofmigratingsidebar").css("min-height",minheight+"px"); break;
		case '/remote-access/': minheight = 747; $("#benefitsofmigratingsidebar").css("min-height",minheight+"px"); break;
		case '/creative-team/': minheight = 748; $("#seosidebar").css("min-height",minheight+"px"); break;
		case '/portfolio/': minheight = 959; $("#seosidebar").css("min-height",minheight+"px"); break;
		case '/web-design-services/': minheight = 660; $("#integratedsidebar").css('min-height',minheight+'px'); break;
		case '/custom-software-development/': minheight = 650; $("#integratedsidebar").css('min-height',minheight+'px'); break;
		case '/email-marketing/': minheight = 713; $("#integratedsidebar").css('min-height',minheight+'px'); break;
		case '/ecommerce/': minheight = 683; $("#integratedsidebar").css('min-height',minheight+'px'); break;
		case '/search-engine-optimisation/': minheight = 743; $("#ecommercesidebar").css('min-height',minheight+'px'); break;
		case '/search-engine-marketing/': minheight = 910; $("#integratedsidebar").css('min-height',minheight+'px'); break;
		case '/branding-identity/': minheight = 655; $("#integratedsidebar").css('min-height',minheight+'px'); break;
		case '/emerging-media/': minheight = 656; $("#seosidebar").css('min-height',minheight+'px'); break;
		case '/company/': minheight = 840; break;
		case '/our-teams/': minheight = 988; $("#rightcol").css('min-height',minheight+'px'); break;
		case '/corporate-responsibility/': minheight = 1026; $("#rightcol").css('min-height',minheight+'px'); break;
		case '/careers/': minheight = 1570; $("#rightcol").css('min-height',minheight+'px'); break;
		case '/our-partners/': case '/partners-login/': minheight = 841; $("#rightcol").css('min-height',minheight+'px'); break;
		case '/news/': case '/Default.aspx?page=news': minheight = 790; $("#rightcol").css('min-height',minheight+'px'); break;
		case '/survey/': case '/Default.aspx?page=Survey': minheight = 1280; $("#leftcol").css("background-color","#efefef"); $("#companyrightsidebar").css("height",(minheight-20)+"px"); break;
	}
	
	$("#middlecontent").css("min-height",minheight+"px");
	$("#middlecontentholder").css("min-height",minheight+"px");
	$("#leftcol").css("min-height",minheight+"px");
});
// partners
$(document).ready(function() {
	if (l[1] == "/partners-login/" || l[1] == "/our-partners/") {
		$('a#megaanchorourpartners').attr("id","megaanchorourpartnersactive");
	}
});

// news
$(document).ready(function() {
	if (l[1] == "/news/" || l[1] == "/Default.aspx?page=news") {
		var a = 0;
		var b = 0;
		var c = 0;
		$("td.newscells a img").each(function() {
			$(this).attr("src","/"+$(this).attr("src"));
		});
		$("td.newscells a").each(function() {
			$(this).attr("rel","newsimage");
			$(this).attr("id","newstitle"+b);
			$("#newstitle"+b).fancybox({
				'width': '70%',
				'height': '75%',
				'autoScale': true,
				'transitionIn': 'none',
				'transitionOut': 'none',
				'type': 'iframe'
			});
			b++;
		});	
		$(".newstitle").each(function(intIndex) {
			$(this).attr("rel","normalnews");
		});
		$("td.newscells p a").each(function() {
			$(this).attr("rel","morenews");
		});
	}
	$("span.newslistdate span").each(function() {
		$(this).css("display","none");
		var d = $(this).html();
		var darr = d.split("/");
		
		var day = darr[0];
		var dth = findday(darr[0]);
		var month = findmonth(darr[1]);
		var year = darr[2];
		
		var html = day+"<sup>"+dth+"</sup> "+month+" "+year;
		//alert(html);
		$(this).html(html);
		$(this).css("display","block");
	});
});

function findday(d) {
	switch (d) {
		case "01":
		case "21":
		case "31":
			return "st";
			break;
		case "02":
		case "22":
			return "nd";
			break;
		case "03":
		case "23":
			return "rd";
			break;
		default:
			return "th";
			break;
	}
}
function findmonth(m) {
	switch (m) {
		case "01": return "January"; break;
		case "02": return "February"; break;
		case "03": return "March"; break;
		case "04": return "April"; break;
		case "05": return "May"; break;
		case "06": return "June"; break;
		case "07": return "July"; break;
		case "08": return "August"; break;
		case "09": return "September"; break;
		case "10": return "October"; break;
		case "11": return "November"; break;
		case "12": return "December"; break;
		default: return "hello"; break;
		
	}
}
//news
var a = new Array();
var i = 0;
$(document).ready(function() {
	if (l[1] == "/" || l[1] == "/default.aspx" || l[1] == "/Default.aspx") {
		//alert($(this).html());//css('display','none');
		$("table.newslist").css('display','none');
		$('div.newslist-txt').each(function(intIndex) {
			a[i] = $(this).html();
			i++;
		});
		var k = 0;
		if (i > 3) { k=3; } else { k = a.length; }
		displaynews(0,k);
		gethomepagetitles();
	}
	
	if (l[1].substring(0,19) == '/SearchResults.aspx') {
		$("div#companyleftsidebar").css("min-height","1115px");
		$("div#companyrightsidebar").css("min-height","1115px");
		$("div#companyrightsidebar").css("padding-bottom","0px");
	}
});
$(document).ready(function() {	
	if (l[1] == "/news/") {
		$("div.newslist-image-div a img").each(function(intIndex) {
			var theimage = $(this).attr("src");
			var newtheimage = "/"+theimage;
			$(this).attr("src",newtheimage);
		});
	}
	
	if (l[1] == "/news/" || l[1] == "/Default.aspx?page=news") {
		var numi = 0;
		$("div.single_news_item").each(function(intIndex) {
			var imagetitle = $("div.newslist-image-div a#newsimage"+numi+" img").attr("alt");
			$("div.newslist-txt a#newstitle"+numi).attr("title",imagetitle);
			$("div.newslist-desc-div a#news"+numi).attr("title",imagetitle);
			numi++;
		});
	}
});

function gethomepagetitles() {
	var homei = 0;
	$("div.newslist-title-div a").each(function(intIndex) {
		homei++;
		$(this).attr("id","homepagenewstitle"+homei);
		var hptitle = $(this).html();
		$("div.newslist-desc-div a#news"+homei).attr("title",hptitle);
		$("div.newslist-desc-div a#news"+homei).attr("rel","homepagenews");
	});
	$("span#fancybox-right-ico").each(function(intIndex) {
		$(this).attr("title","Read Next");
	});
}
function displaynews(s,f) {
	//alert("start: "+s+"\nend: "+f);
	var html = "";
	//$('table.newslist').html("");
	$('table.newslist').replaceWith('<div id="newsdiv"></div>');
	for (var j=s;j<f;j++) {
		var w = a[j];//.split(" ");
		var st = 0;
		var en = 0;
		html += a[j];
		html += '<div class="single_news_item_clearer"></div>';
	}
	var total = i;
	var prestart = 0;
	var preend = 0;
	var nextstart = 0;
	var nextend = 0;
	if ((f+4) > a.length) { nextend = a.length-1; nextstart = (f+1); }
	else {
		nextend = (f+4); nextstart = f;
	}
	//if ((f+4) > a.length) { nextend = (a.length-1); } else { nextend = (f+4); }
	if ((s-4) > 0) { prestart = (s-4); preend = (s-1); }
	else {
		prestart = 0; preend = 3;
	}
	html += '</div>';
	if (a.length > 4) {
		html += '<div align="center" id="newsnavigation">';
		if (s!=0) {
			html += '<a href="javascript:void(0);" onclick="displaynews('+prestart+','+preend+');gethomepagetitles();">< prev</a>';
		} else { html += '< prev'; }
		html += '&nbsp;';
		if (f!=(a.length-1)) {
			html += '<a href="javascript:void(0);" onclick="displaynews('+(nextstart+1)+','+nextend+');gethomepagetitles();">next ></a>';
		} else { html += 'next >'; }
		html += '</div>';
	}
	//html += '</div>';
	//alert(html);
	
	document.getElementById('newsdiv').innerHTML = html;
	$("span.newslist-descrp").each(function(intIndex) {
		var h = "";
		var w = $(this).html().split(" ");
		var en = 0;
		if (w.length>8) { en = 8; } else { en = w.length; }
		for (var k=0;k<en;k++) {
			h += w[k]+" ";
		}
		h += "...";
		$(this).html(h);
	});
	
	var num=1;
	$("div.newslist-desc-div a").each(function() {
		$(this).attr("id","news"+num);
		$("#news"+num).fancybox({
			'width': '70%',
			'height': '75%',
			'autoScale': true,
			'transitionIn': 'none',
			'transitionOut': 'none',
			'type': 'iframe'
		});
		
		num++;
	});
}

// carousel
window.onload = function() {
	loadcarousel();
}
//loadcarousel();

function loadcarousel() {
	var ch = 0;
	$("div#carousel_holder div.images div").each(function(intIndex) {
		$(this).attr("id","ch"+ch);
		ch++;
	});
	$("div#carousel_holder").css("display","block");
	$("div#ch1").css("display","none");
	$("div#ch2").css("display","none");
	$("div#ch3").css("display","none");
}

// year
$(document).ready(function() {
	var dt = new Date();
	var year = dt.getFullYear();
	$("span#year").html(year);
});

$(document).ready(function() {
	$("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl11_Input, #pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl15_Input, #pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl19_Input, #pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl26_Input").focus(function() {
		if ($(this).val() == "dd/mm/yyyy") { $(this).val(""); }
	});
	$("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl11_Input, #pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl15_Input, #pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl19_Input, #pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl26_Input").blur(function() {
		if ($(this).val() == "") { $(this).val("dd/mm/yyyy"); }
	});
});

function GenerateEmail() {
	var html = "";
	var attrarray = new Array();
	/*var attrarray = new Array('companyname', 'personresponsible', 'emailaddress', 'telephone', 'address1', 'address2', 'towncity', 'postcode',
		'serverinstalled', 'servertype', 'serverinstallationdate', 'externalict', 'existingictprovider', 'supporttype', 'contractrenewaldate',
		'ownwebsite', 'webaddress', 'sellonline', 'websitelaunchdate', 'contentmanage', 'contentexistingprovider', 'contentmanagementsoftware',
		'seostrategy', 'seoprovider', 'cloudmigrationstrategy', 'plannedmigratedate', 'awareofsavings', 'understandsavings', 'suitablevisit');*/
	
	attrarray[0] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl01_Input").val();
	attrarray[1] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl02_Input").val();
	attrarray[2] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl03_Input").val();
	attrarray[3] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl04_Input").val();
	attrarray[4] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl05_Input").val();
	attrarray[5] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl06_Input").val();
	attrarray[6] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl07_Input").val();
	attrarray[7] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl08_Input").val();
	
	attrarray[8] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl09_CheckBox").is(":checked")) ? "Yes" : "No";
	attrarray[9] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl10_Input").val();
	attrarray[10] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl11_Input").val() == "dd/mm/yyyy") ? "" : $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl11_Input").val();
	attrarray[11] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl12_CheckBox").is(":checked")) ? "Yes" : "No";
	attrarray[12] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl13_Input").val();
	attrarray[13] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl14_ddlDropDownList").val() == "-1") ? "Not specified" : $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl14_ddlDropDownList").val();
	attrarray[14] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl15_Input").val() == "dd/mm/yyyy") ? "" : $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl15_Input").val();
	
	attrarray[15] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl16_CheckBox").is(":checked")) ? "Yes" : "No";
	attrarray[16] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl17_Input").val();
	attrarray[17] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl18_CheckBox").is(":checked")) ? "Yes" : "No";
	attrarray[18] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl19_Input").val() == "dd/mm/yyyy") ? "" : $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl19_Input").val();
	attrarray[19] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl20_CheckBox").is(":checked")) ? "Yes" : "No";
	attrarray[20] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl21_Input").val();
	attrarray[21] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl22_ddlDropDownList").val() == "-1") ? "Not specified" : $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl22_ddlDropDownList").val();
	attrarray[22] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl23_CheckBox").is(":checked")) ? "Yes" : "No";
	attrarray[23] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl24_Input").val();
	
	attrarray[24] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl25_CheckBox").is(":checked")) ? "Yes" : "No";
	attrarray[25] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl26_Input").val() == "dd/mm/yyyy") ? "" : $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl26_Input").val();
	attrarray[26] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl27_CheckBox").is(":checked")) ? "Yes" : "No";
	attrarray[27] = ($("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl28_CheckBox").is(":checked")) ? "Yes" : "No";
	attrarray[28] = $("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl29_Input").val();
	
	html = "<link href=\"http://www.2e-volve.com/app/data/styles/main.css\" type=\"text/html\" rel=\"stylesheet\" />";
	html += "<table id=\"surveytable\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\" width=\"100%\">";
	html += "<tr><td colspan=\"2\"><h2 class=\"surveyheaders margintop\">Contact Information</h2></td></tr>";
	html += "<tr><td class=\"formheaders strongtext\">Company Name:</td><td class=\"formfield\">"+attrarray[0]+"</td>";
	html += "<tr><td class=\"formheaders strongtext\">Person Responsible of IT and Website:</td><td class=\"formfield\">"+attrarray[1]+"</td>";
	html += "<tr><td class=\"formheaders strongtext\">Email Address:</td><td class=\"formfield\">"+attrarray[2]+"</td>";
	html += "<tr><td class=\"formheaders strongtext\">Contact Telephone Number:</td><td class=\"formfield\">"+attrarray[3]+"</td>";
	html += "<tr><td valign=\"top\" class=\"formheaders strongtext\">Address:</td><td valign=\"top\" class=\"formfield\">"+attrarray[4]+"<br />"+attrarray[5]+"</td>";
	html += "<tr><td class=\"formheaders strongtext\">Town/City:</td><td class=\"formfield\">"+attrarray[6]+"</td>";
	html += "<tr><td class=\"formheaders strongtext\">Postcode:</td><td class=\"formfield\">"+attrarray[7]+"</td>";
	
	html += "<tr><td colspan=\"2\"><h2 class=\"surveyheaders margintop\">Server and Infrastructure</h2></td></tr>";
	html += "<tr><td class=\"formheaders strongtext\">Do you have a server installed?:</td><td class=\"formfield\">"+attrarray[8]+"</td>";
	if (attrarray[8]) {
		html += "<tr><td class=\"formheaders strongtext\">Type:</td><td class=\"formfield\">"+attrarray[9]+"</td>";
		html += "<tr><td class=\"formheaders strongtext\">Installation Date:</td><td class=\"formfield\">"+attrarray[10]+"</td>";
	}
	html += "<tr><td class=\"formheaders strongtext\">Is the server supported by external ICT company?:</td><td class=\"formfield\">"+attrarray[11]+"</td>";
	if (attrarray[11]) {
		html += "<tr><td class=\"formheaders strongtext\">Name of existing provider:</td><td class=\"formfield\">"+attrarray[12]+"</td>";
	}
	html += "<tr><td class=\"formheaders strongtext\">Support type:</td><td class=\"formfield\">"+attrarray[13]+"</td>";
	html += "<tr><td class=\"formheaders strongtext\">Contract renewal data:</td><td class=\"formfield\">"+attrarray[14]+"</td>";
	html += "<tr><td colspan=\"2\"><h2 class=\"surveyheaders margintop\">Website and Online Activity</h2></td></tr>";
	html += "<tr><td class=\"formheaders strongtext\">Do you have a website?</td><td class=\"formfield\">"+attrarray[15]+"</td>";
	if (attrarray[15]) {
		html += "<tr><td class=\"formheaders strongtext\">Website address:</td><td class=\"formfield\">"+attrarray[16]+"</td>";
	}
	html += "<tr><td class=\"formheaders strongtext\">Do you sell online?:</td><td class=\"formfield\">"+attrarray[17]+"</td>";
	if (attrarray[18]) {
		html += "<tr><td class=\"formheaders strongtext\">Website launch date::</td><td class=\"formfield\">"+attrarray[18]+"</td>";
	}
	html += "<tr><td class=\"formheaders strongtext\">Are you able to content manage your website?:</td><td class=\"formfield\">"+attrarray[19]+"</td>";
	if (attrarray[20]) {
		html += "<tr><td class=\"formheaders strongtext\">Name of existing provider::</td><td class=\"formfield\">"+attrarray[20]+"</td>";
		html += "<tr><td class=\"formheaders strongtext\">Content Management Software::</td><td class=\"formfield\">"+attrarray[21]+"</td>";
	}
	html += "<tr><td class=\"formheaders strongtext\">Do you run an SEO strategy for your website?:</td><td class=\"formfield\">"+attrarray[22]+"</td>";
	if (attrarray[24]) {
		html += "<tr><td class=\"formheaders strongtext\">Name of SEO provider::</td><td class=\"formfield\">"+attrarray[23]+"</td>";
	}
	html += "<tr><td colspan=\"2\"><h2 class=\"surveyheaders margintop\">Impact of the Cloud on the SME Sector</h2></td></tr>";
	html += "<tr><td class=\"formheaders strongtext\">Do you have a Cloud Migration Strategy?:</td><td class=\"formfield\">"+attrarray[24]+"</td>";
	if (attrarray[25]) {
		html += "<tr><td class=\"formheaders strongtext\">Planned date::</td><td class=\"formfield\">"+attrarray[25]+"</td>";
	}
	html += "<tr><td class=\"formheaders strongtext\">Are you aware of the savings of moving to the cloud?:</td><td class=\"formfield\">"+attrarray[26]+"</td>";
	html += "<tr><td class=\"formheaders strongtext\">Would you like to understand the savings impact for your company?:</td><td class=\"formfield\">"+attrarray[27]+"</td>";
	html += "<tr><td class=\"formheaders strongtext\">When would it be suitable for us to arrange a site visit?:</td><td class=\"formfield\">"+attrarray[28]+"</td>";
	html += "</table>";
	
	$("#pageViwer_maincentrecol1_ctl00_fpcFormPresentation_ctl31_MultiLineInput").val(html);
}


