/*
Copyright:  Pravin Mirchandani
*/
function scramblemail(tri_fix)
{
	var idot = '.';
   	var amper = '@';
   	var double_dot = ':';
   	var domainy = 'co';
   	var el = 'l';
   	var sub= /_/gi;
   	var sub2= /z/gi;

   	tri_fix = tri_fix.replace(sub,'');
   	tri_fix = tri_fix.replace(sub2,'');

   	document.write("<A HREF=\"mai"+el+"to");
   	document.write(double_dot + tri_fix + amper);
   	document.write("sy"+"ph"+"an"+idot+domainy+"m\">");
}

function scrambletext(tri_fix)
{
   	var sub= /z/gi;
   	tri_fix = tri_fix.replace(sub,'');
   	document.write(tri_fix);
}

function scramblenumber(line)
{
var countrycodeFR ='+33';
var countrycodeUK ='+44';
var areacode = ' (0)1423';
var mobcode = ' (0)7949';
var barrowcode = ' (0)1469';
var skiptoncode = ' (0)1756';
var biotcode = ' 93 65';
var osem = '8';
var devet = '9';
var pet = '5';
var tri = '3';



	switch (line)
	{
  	case "home" : 
     	document.write(countrycodeUK + areacode + " 709 27" + pet);
     	break;
  	case "homeoffice" : 
     	document.write(countrycodeUK + areacode + " 521 9" + pet + pet);
     	break;
  	case "fax" : 
	document.write(countrycodeUK + areacode + " 740" + tri + "00");
     	break;
  	case "pmobile" : 
	document.write(countrycodeUK + mobcode + " 29" + devet + " 600");
     	break;
  	case "tmobile" : 
	document.write(countrycodeFR + mobcode + " 86 11 54 " + osem + "3");
     	break;
  	case "barrowhaven" : 
	document.write(countrycodeUK + barrowcode + " 531 4" + tri + "2");
     	break;
  	case "skipton" : 
	document.write(countrycodeUK + skiptoncode + " 6" + tri + "1275");
     	break;
  	default : 
     	document.write("sorry, this number is not listed");
     	break;
	}
} 


function scramblesyphanaddress()
{
line0 ='Syphan Technologies Ltd';
line1 ='The Watermill';
line2 ='Broughton Hall';
line3 ='Skipton';
line4 ='North Yorkshire';
line5 ='BD23 3AG';
line6 ='United Kingdom';


document.writeln(line0+"<BR>");
document.writeln(line1+"<BR>");
document.writeln(line2+"<BR>");
document.writeln(line3+"<BR>");
document.writeln(line4+"<BR>");
document.writeln(line5+"<BR>");
document.writeln(line6+"<BR>");
}


