	jQuery(document).ready(function($){
		if(document.URL.indexOf("?cs=1") >= 0){ 		
			var querystring = 'cs=1';

				$('a').each(function(){
					var href = $(this).attr('href');
					if(href) {
						href += (href.match(/\?/) ? '&' : '?') + querystring;
						$(this).attr('href', href);
					}
				});
	
			$('a[href*="#error"]').css({'border':'2px dashed #f00','box-sizing':'border-box','opacity':'1','background':'transparent'});
			$('a[href*="mmmdev.wpengine.com"]').css({'border':'2px dashed #c8d010','box-sizing':'border-box','opacity':'1','background':'transparent'});
			$('a[href*="mmm.getgui.co.uk"]').css({'border':'2px dashed #c8d010','box-sizing':'border-box','opacity':'1','background':'transparent'});
			$('a[href*="saas.weare.gs"]').css({'border':'2px dashed #c8d010','box-sizing':'border-box','opacity':'1','background':'transparent'});
									
			var content = jQuery('body').html();
			if($('a[href*="#error"]').length > 0 || $('a[href*="mmmdev.wpengine.com"]').length > 0 || $('a[href*="mmm.getgui.co.uk"]').length > 0 || $('a[href*="ewcd.saas"]').length > 0 || $(content.match(/<!--\[CSAPIERROR\].*?-->/g)).length > 0){
			alert(
			'No. links pointing to gUI :: ' + ($('a[href*="mmmdev.wpengine.com"]').length + $('a[href*="mmm.getgui.co.uk"]').length + $('a[href*="ewcd.saas"]').length) 	
			+ '\n\n' 
			+ 'No. links with #error :: ' + $('a[href*="#error"]').length 
			+ '\n\n' 
			+ 'No. links with CSAPIERROR :: ' + $(content.match(/<!--\[CSAPIERROR\].*?-->/g)).length 								
			);
			}
			if($(content.match(/<!--\[CSAPIERROR\].*?-->/g)).length > 0) {
			alert(content.match(/<!--\[CSAPIERROR\].*?-->/g));
			}
		}
	});
