	var withtext;
	var withouttext;

	function gettextlink() {
		var textlinkarray = new Array();
		textlinkarray[0] = "Frag:UK Essex PC Therapy and Repair";
		textlinkarray[1] = "Frag:UK PC Therapy in Clacton and Colchester";
		textlinkarray[2] = "Frag.co.uk Websites and repairs in Essex";
		textlinkarray[3] = "Frag:UK Affordable Computer Services in Clacton";
		number = Math.floor(Math.random() * (textlinkarray.length));
		return textlinkarray[number];
	}

	function code(html) {
		withtext='<a href="http://www.frag.co.uk/">\n<img src="http://www.frag.co.uk' + html + '" alt="'+gettextlink()+'" border="0">'+gettextlink()+'</a>'
		withouttext='<a href="http://www.frag.co.uk/">\n<img src="http://www.frag.co.uk' + html + '" alt="'+gettextlink()+'" border="0"></a>'
			
		document.getElementById('code').value=withtext;
		document.getElementById('codediv').style.visibility="visible";
		document.getElementById('codediv').style.display="block";
	}
		
	function chktextlink() {
		if (document.getElementById('textlink').checked==0) {
			document.getElementById('code').value=withouttext;
		} else {
			document.getElementById('code').value=withtext;
		}
	}