var vName = navigator.appName;
var vVer = parseInt(navigator.appVersion);
var vBrowser;

if (vName == "Netscape" && vVer >= 3) vBrowser="Netscape";
else if (vName == "Microsoft Internet Explorer" && vVer >= 4) vBrowser = "Microsoft";
else vBrowser = "None";

var imgGalleryOn = new Array();
var imgGalleryOff = new Array();

var imgWIPOn;
var imgWIPOff;

var bConsulting = false;
var menuItemCOff = new Image();
var menuItemCOn = new Image();
var menuItemPOff = new Image();
var menuItemPOn = new Image();
var logoOff = new Image();
var logoOn = new Image();

var sThisUrl=document.URL;
sThisUrl = sThisUrl.toLowerCase();

if (sThisUrl.toLowerCase().indexOf("consulting") > 0) {
	bConsulting = true;
} else {
	bConsulting = false;
}

var sServer = document.domain;

if (sServer == "localhost") sServer = "localhost:9090";

menuItemCOff.src = "http://" + sServer +"/images/menuItemC_off.gif";
menuItemCOn.src = "http://" + sServer +"/images/menuItemC_on.gif";
menuItemPOff.src = "http://" + sServer +"/images/menuItemP_off.gif";
menuItemPOn.src = "http://" + sServer +"/images/menuItemP_on.gif";
if (sThisUrl.toLowerCase().indexOf("consulting") > 0) {
	logoOff.src = "http://" + sServer +"/images/petrellyn_logo.gif";
	logoOn.src = "http://" + sServer +"/images/petrellyn_logo_on.gif";
} else if (sThisUrl.toLowerCase().indexOf("jaspware") > 0) {
	logoOff.src = "http://" + sServer +"/images/jaspware_logo.gif";
	logoOn.src = "http://" + sServer +"/images/jaspware_logo_on.gif";
}

var tabhdr1 = new Image();
var tabhdr2 = new Image();
var tabhdr3 = new Image();
var tabhdr4 = new Image();
var tabhdr5 = new Image();

function Initialise(vParameter) {
	if (vBrowser == "Microsoft") {
		if ((document.all.contactTabEng != null) || (document.all.contactTabEsp != null)) {
			tabhdr1.src = "http://" + sServer +"/images/tab_header_1.jpg";
			tabhdr2.src = "http://" + sServer +"/images/tab_header_2.jpg";
			tabhdr3.src = "http://" + sServer +"/images/tab_header_3.jpg";
			tabhdr4.src = "http://" + sServer +"/images/tab_header_4.jpg";
			tabhdr5.src = "http://" + sServer +"/images/tab_header_5.jpg";
			tabSelect("0");
		}
	} else {
		if (vParameter != null) {
			if (vParameter == "contact") {
				window.stop();
				window.location.href="gen_contact.html";
			}
		}
	}
	if (vParameter != null) {
		if (vParameter == "copyright") {
			document.onmousedown = checkClick;
			document.oncontextmenu = function () {return false;};
			if (document.layers) {
				document.captureEvents(Event.MOUSEDOWN);
			}		
		}
		if (vParameter == "uwhPage") {
			var sUrl=document.URL;
			var sSearchString="barcelona";
			var nPos=sUrl.indexOf(sSearchString);
			var nLength=sUrl.length;
			if (nPos>=0) {
				sNewUrl = "http://www.hockeysub.net/bcn" + sUrl.substr((nPos + sSearchString.length), (sUrl.length - (nPos + sSearchString.length)));
	
				document.write("<html>");
				document.write("<head>");
				document.write("<link rel='stylesheet' type='text/css' href='http://www.petrellyn.com/petrellyn.css'>");
				document.write("<title>Transferring to new site</title>");
				document.write("</head>");
				document.write("<body id=uwhMainBody bgcolor='#00CCFF'>");
				document.write("<center>Currently transferring to new site.<br/>");
				document.write("If no transfer takes place, set your browser to:<br/>");
				document.write("<a href='" + sNewUrl + "'>" + sNewUrl + "</a><br/><br/>");
				document.write("Transfiriendo al sitio nuevo.<br/>");
				document.write("Si ocurre ninguna transferencia, fije su /'browser/' a:<br/>");
				document.write("<a href='" + sNewUrl + "'>" + sNewUrl + "</a></center>");
				document.write("</body>");
				document.write("</html>");
			} else {
				sNewUrl = document.URL;
			}
			window.location.href=sNewUrl;
		}
	}
}

function checkClick(ev) {
	if (navigator.appName == "Netscape") {
		if (ev.which != 1) {
			return false;
		}       
	} else {
		if (event.button != 1) {
			return false;
		}
	}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function tabSelect(nIndex) {
	if (vBrowser == "Microsoft") 	{
		if (document.all.contactTabEng != null) {
			document.all.contactTabEng.innerHTML = setContactTabEng(nIndex);
		}
		if (document.all.contactTabEsp != null) {
			document.all.contactTabEsp.innerHTML = setContactTabEsp(nIndex);
		}
	}
}

function menuItemAct(imgName) {
	if (document[imgName] != null) {
		if (bConsulting) {
			document[imgName].src = menuItemCOn.src;
		} else {
			document[imgName].src = menuItemPOn.src;
		}
	}
}

function menuItemInact(imgName) {
	if (document[imgName] != null) {
		if (bConsulting) {
			document[imgName].src = menuItemCOff.src;
		} else {
			document[imgName].src = menuItemPOff.src;
		}
	}
}

function logoAct() {
	if (document.all.companyLogo != null)	{
		document.all.companyLogo.src = logoOn.src;
	}
}

function logoInact() {
	if (document.all.companyLogo != null)	{
		document.all.companyLogo.src = logoOff.src;
	}
}

function PhotoGallery()
{
	displayWindow = window.open("http://" + sServer + "/personal/photo_gallery.html","GalleryChoice", "height=300,width=500,status=0,directories=0,titlebar=0,toolbar=0,menubar=0,scrollbars=0,resizable=0,location=0")
	displayWindow.focus();
}

function DisplayFile(sFilename)
{
	displayFile = window.open("http://" + sServer + "/personal/" + sFilename, null, "height=300,width=500,status=0,directories=0,titlebar=0,toolbar=0,menubar=0,scrollbars=1,resizable=0,location=0")
	displayFile.focus();
}

function DisplayComments(sTitle, sSubject)
{
	nHeight = 450
	nWidth = 600
	
	if (sSubject == null) {
		sSubject ="Comment from petrellyn.com";
	}
	if (sTitle == null) {
		sTitle = "Send me your jokes!";
	}
	displayWindow = window.open("",null, "height=" + nHeight + ",width=" + nWidth + ",status=0,directories=0,titlebar=0,toolbar=0,menubar=0,scrollbars=0,resizable=0,location=0")
	displayWindow.focus()
	displayWindow.resizeTo(nWidth, nHeight)
	displayWindow.document.write("<html><head><title>Comments</title></head><body background='http://" + sServer +"/images/stationary.jpg'><p align='center'><b><font color='#800080' size='5'>" + sTitle + "</font></b></p>")
	displayWindow.document.write("<form method='post' action='http://www.petrellyn.com/cgi-bin/forms.cgi'>")
	displayWindow.document.write("<input type=hidden name='to' value='jamie@petrellyn.com'>")
	displayWindow.document.write("<input type=hidden name='followupurl' value='http://www.petrellyn.com/personal/thankyou.php'>")
	displayWindow.document.write("<input type=hidden name='subject' value='" + sSubject + "'>")
	displayWindow.document.write("<input type=hidden name='from' value='form_processor@petrellyn.com'>")
	displayWindow.document.write("<div align='center'><center><table border='0' cellspacing='2' width='90%'><tr><td width='25%' align='right'><b>Name</b></td><td width='75%' align='center'><input type='text' name='name' size='65'></td></tr>")
	displayWindow.document.write("<tr><td width='25%' align='right'><b>Email</b></td><td width='75%' align='center'><input type='text' name='email' size='65'></td></tr>")
	displayWindow.document.write("<tr><td width='25%' align='right' valign='top'><b>Joke</b></td><td width='75%' align='center'><textarea name='textfield' cols='50' rows='15'></textarea></td></tr>")
	displayWindow.document.write("<tr><td width='25%' align='right' valign='top'></td><td width='75%' align='center'><p align='center'><input type='submit' name='Submit' value='Send!'></td></tr></table></center></div>")
	displayWindow.document.write("</body></html>")
	displayWindow.document.close()
}	

function DisplayModeWindow(sURL) {
	displayWindow = window.open("",null, "height=300,width=500,status=0,directories=0,titlebar=0,toolbar=0,menubar=0,scrollbars=1,resizable=0,location=0");
	displayWindow.location = sURL;
	displayWindow.focus();
}

function DisplayICQWindow() {
	displayWindow = window.open("",null, "status=0,directories=0,titlebar=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0");
	displayWindow.location = "http://www.petrellyn.com/en/myicq.html";
	displayWindow.focus();
}

function DisplayYahooWindow() {
	displayWindow = window.open(null,null, "status=0,directories=0,titlebar=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0");
	displayWindow.location = "http://edit.yahoo.com/config/send_webmesg?.target=jamie_uwh_phillips&.src=pg";
	displayWindow.focus();
}

function DisplayPhoto(imgName,sTitle,background) {
	if((vBrowser == "Netscape")||(vBrowser == "Microsoft"))	{
		var sFullImage = imgName;
		var sRoot = "http://www.petrellyn.com/";
		var sWindowOptions;
		var displayWindow;
		var nHeightAdjust;
		var nWidthAdjust;

		if(parent.frames.length == 0) {
			if(vBrowser == "Netscape") {
				sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no";
				nHeightAdjust = 100;
				nWidthAdjust = 20;
			} else {
				sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no";
				nHeightAdjust = 130;
				nWidthAdjust = 30;
			}
		} else {
			sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no";
		}
		displayWindow = window.open("","PhotoDisplay", sWindowOptions)
		displayWindow.focus();
		displayWindow.document.writeln("<HTML>");
		displayWindow.document.writeln("<HEAD><TITLE>");
		displayWindow.document.writeln("Jamie's Photo Gallery");
		displayWindow.document.writeln("</TITLE></HEAD>");
		displayWindow.document.writeln("<" + "script language = 'JavaScript'" + ">");
		displayWindow.document.writeln("document.onmousedown = checkClick");
		displayWindow.document.writeln("document.oncontextmenu = function () {return false;};");
		displayWindow.document.writeln("if (document.layers)");
		displayWindow.document.writeln("{");
		displayWindow.document.writeln("	document.captureEvents(Event.MOUSEDOWN);");
		displayWindow.document.writeln("}");
		displayWindow.document.writeln("function checkClick(ev)");
		displayWindow.document.writeln("{");
		displayWindow.document.writeln("	if (navigator.appName == 'Netscape')");
		displayWindow.document.writeln("	{");
		displayWindow.document.writeln("		if (ev.which != 1)");
		displayWindow.document.writeln("		{");
		displayWindow.document.writeln("			return false;");
		displayWindow.document.writeln("		}");       
		displayWindow.document.writeln("	}");
		displayWindow.document.writeln("	else");
		displayWindow.document.writeln("	{");
		displayWindow.document.writeln("		if (event.button != 1)");
		displayWindow.document.writeln("		{");
		displayWindow.document.writeln("			return false;");
		displayWindow.document.writeln("		}");
		displayWindow.document.writeln("	}");
		displayWindow.document.writeln("}");
		if(parent.frames.length == 0) {
			displayWindow.document.writeln("function ResizeWindow()");
			displayWindow.document.writeln("{");
			displayWindow.document.writeln("	window.resizeTo(window.document.imgPhoto.width + " + nWidthAdjust + ", window.document.imgPhoto.height + " + nHeightAdjust + ");");
			displayWindow.document.writeln("}");
		}
		displayWindow.document.writeln("</" + "script" + ">");
		if((parent.frames.length == 0) && (background != null)) {
			displayWindow.document.writeln("<BODY onLoad='ResizeWindow()' BACKGROUND=" + sRoot + "images/" + background + ">");
		} else if ((parent.frames.length == 0) && (background == null)){
			displayWindow.document.writeln("<BODY onLoad='ResizeWindow()'>");
		} else if (background != null){
			displayWindow.document.writeln("<BODY BACKGROUND=" + sRoot + "images/" + background + ">");
		} else {
			displayWindow.document.writeln("<BODY>");
		}
		displayWindow.document.writeln("<CENTER>");
		displayWindow.document.writeln("<IMG NAME='imgPhoto' SRC='" + imgName + "' ALT='Copyright Jamie Phillips 1991-2003'>");
		displayWindow.document.writeln("<p><font color='#000080' face='Arial' size='3'>" + sTitle + "</font></p>");
		displayWindow.document.writeln("<font color='#000080' face='Arial' size='0'><i>Copyright Jamie Phillips 1991-2003</i></font>")
		displayWindow.document.writeln("</CENTER>");
		displayWindow.document.writeln("</BODY>");
		displayWindow.document.writeln("</HTML>");
		displayWindow.document.close();
	}
}

function DisplayImage(imgName,sTitle,background,sWindowTitle) {
	if((vBrowser == "Netscape")||(vBrowser == "Microsoft")) {
		var sFullImage = imgName;
		var sRoot = "http://www.petrellyn.com/";
		var sWindowOptions;
		var displayWindow;
		var nHeightAdjust;
		var nWidthAdjust;

		if(parent.frames.length == 0) {
			if(vBrowser == "Netscape") {
				sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no";
				nHeightAdjust = 100;
				nWidthAdjust = 20;
			} else {
				sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no";
				nHeightAdjust = 130;
				nWidthAdjust = 30;
			}
		} else {
			sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no";
		}
		displayWindow = window.open("","PhotoDisplay", sWindowOptions)
		displayWindow.focus();
		displayWindow.document.writeln("<HTML>");
		displayWindow.document.writeln("<HEAD><TITLE>");
		if (sWindowTitle != null) {
			displayWindow.document.writeln(sWindowTitle);
		} else {
			displayWindow.document.writeln("Images at Petrellyn.com");
		}
		displayWindow.document.writeln("</TITLE></HEAD>");
		displayWindow.document.writeln("<" + "script language = 'JavaScript'" + ">");
		displayWindow.document.writeln("document.onmousedown = checkClick");
		displayWindow.document.writeln("document.oncontextmenu = function () {return false;};");
		displayWindow.document.writeln("if (document.layers)");
		displayWindow.document.writeln("{");
		displayWindow.document.writeln("	document.captureEvents(Event.MOUSEDOWN);");
		displayWindow.document.writeln("}");
		displayWindow.document.writeln("function checkClick(ev)");
		displayWindow.document.writeln("{");
		displayWindow.document.writeln("	if (navigator.appName == 'Netscape')");
		displayWindow.document.writeln("	{");
		displayWindow.document.writeln("		if (ev.which != 1)");
		displayWindow.document.writeln("		{");
		displayWindow.document.writeln("			return false;");
		displayWindow.document.writeln("		}");       
		displayWindow.document.writeln("	}");
		displayWindow.document.writeln("	else");
		displayWindow.document.writeln("	{");
		displayWindow.document.writeln("		if (event.button != 1)");
		displayWindow.document.writeln("		{");
		displayWindow.document.writeln("			return false;");
		displayWindow.document.writeln("		}");
		displayWindow.document.writeln("	}");
		displayWindow.document.writeln("}");
		if(parent.frames.length == 0) {
			displayWindow.document.writeln("function ResizeWindow()");
			displayWindow.document.writeln("{");
			displayWindow.document.writeln("	window.resizeTo(window.document.imgPhoto.width + " + nWidthAdjust + ", window.document.imgPhoto.height + " + nHeightAdjust + ");");
			displayWindow.document.writeln("}");
		}
		displayWindow.document.writeln("</" + "script" + ">");
		if((parent.frames.length == 0) && (background != null)) {
			displayWindow.document.writeln("<BODY onLoad='ResizeWindow()' BACKGROUND=" + sRoot + "images/" + background + ">");
		} else if ((parent.frames.length == 0) && (background == null)){
			displayWindow.document.writeln("<BODY onLoad='ResizeWindow()'>");
		} else if (background != null){
			displayWindow.document.writeln("<BODY BACKGROUND=" + sRoot + "images/" + background + ">");
		} else {
			displayWindow.document.writeln("<BODY>");
		}
		displayWindow.document.writeln("<CENTER>");
		displayWindow.document.writeln("<IMG NAME='imgPhoto' SRC='" + imgName + "' ALT='Copyright Jamie Phillips 1991-2003'>");
		displayWindow.document.writeln("<p><font color='#000080' face='Arial' size='3'>" + sTitle + "</font></p>");
		displayWindow.document.writeln("<font color='#000080' face='Arial' size='0'><i>Copyright Jamie Phillips 1991-2003</i></font>")
		displayWindow.document.writeln("</CENTER>");
		displayWindow.document.writeln("</BODY>");
		displayWindow.document.writeln("</HTML>");
		displayWindow.document.close();
	}
}

function DisplayVideo(imgName,sTitle,nWidth,nHeight,bWinMediaPlayer,background,sWindowTitle) {
	if((vBrowser == "Netscape")||(vBrowser == "Microsoft"))	{
		var sRoot = "http://www.petrellyn.com/";
		var sFullImage = imgName; //sRoot + "personal/friends/" + imgName;
		var sWindowOptions;
		var displayWindow;
		var nHeightAdjust;
		var nWidthAdjust;

		if(parent.frames.length == 0) {
			if(vBrowser == "Netscape") {
				sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no";
				nHeightAdjust = 200;
				nWidthAdjust = 20;
				bWinMediaPlayer = false;
			} else {
				sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no";
				nHeightAdjust = 250;
				nWidthAdjust = 30;
			}
		} else {
			sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no";
		}
		displayWindow = window.open("","VideoDisplay", sWindowOptions)
		displayWindow.focus();
		displayWindow.document.writeln("<HTML>");
		displayWindow.document.writeln("<HEAD><TITLE>");
		if (sWindowTitle != null) {
			displayWindow.document.writeln(sWindowTitle);
		} else {
			displayWindow.document.writeln("Videos at Petrellyn.com");
		}
		displayWindow.document.writeln("</TITLE></HEAD>");
		displayWindow.document.writeln("<" + "script language = 'JavaScript'" + ">");
		displayWindow.document.writeln("document.onmousedown = checkClick");
		displayWindow.document.writeln("document.oncontextmenu = function () {return false;};");
		displayWindow.document.writeln("if (document.layers) {");
		displayWindow.document.writeln("	document.captureEvents(Event.MOUSEDOWN);");
		displayWindow.document.writeln("}");
		displayWindow.document.writeln("function checkClick(ev) {");
		displayWindow.document.writeln("	if (navigator.appName == 'Netscape') {");
		displayWindow.document.writeln("		if (ev.which != 1) {");
		displayWindow.document.writeln("			return false;");
		displayWindow.document.writeln("		}");       
		displayWindow.document.writeln("	} else {");
		displayWindow.document.writeln("		if (event.button != 1) {");
		displayWindow.document.writeln("			return false;");
		displayWindow.document.writeln("		}");
		displayWindow.document.writeln("	}");
		displayWindow.document.writeln("}");
		if(parent.frames.length == 0) {
			displayWindow.document.writeln("function ResizeWindow() {");
			displayWindow.document.writeln("	window.resizeTo(" + nWidth + " + " + nWidthAdjust + ", " + nHeight + " + " + nHeightAdjust + ");");
			displayWindow.document.writeln("}");
		}
		displayWindow.document.writeln("</" + "script" + ">");
		if((parent.frames.length == 0) && (background != null)) {
			displayWindow.document.writeln("<BODY onLoad='ResizeWindow()' BACKGROUND=" + sRoot + "images/" + background + ">");
		} else if ((parent.frames.length == 0) && (background == null)){
			displayWindow.document.writeln("<BODY onLoad='ResizeWindow()'>");
		} else if (background != null){
			displayWindow.document.writeln("<BODY BACKGROUND=" + sRoot + "images/" + background + ">");
		} else {
			displayWindow.document.writeln("<BODY>");
		}
		displayWindow.document.writeln("<CENTER>");

		if(bWinMediaPlayer == true) {
			displayWindow.document.writeln("<object CLASSID='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' width='" + nWidth + "' height='" + nHeight + "' ID='WMPplayer9' Name='WMPplayer' CODEBASE='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft® Windows® Media Player components...' type='application/x-oleobject' align='center'>");
			displayWindow.document.writeln("<param name='Filename' value='" + sFullImage + "'>");
			displayWindow.document.writeln("<param name='AutoStart' value='True'>");
			displayWindow.document.writeln("<param name='TransparentAtStart' value='True'>");
			displayWindow.document.writeln("<param name='ShowControls' value='1'>");
			displayWindow.document.writeln("<param name='ShowDisplay' value='1'>");
			displayWindow.document.writeln("<param name='ShowStatusBar' value='1'>");
			displayWindow.document.writeln("<param name='AutoSize' value='1'>");
			displayWindow.document.writeln("<embed type='application/x-mplayer2' name='WMPplayer' pluginspage='http://www.microsoft.com/windows/mediaplayer/en/default.asp' width='265' height='270' transparentatstart='0' controltype='2' showcontrols='1' showdisplay='0' showstatusbar='1' animationatstart='1' SRC='" + sFullImage + "' autostart='true'>");
			displayWindow.document.writeln("</object>");
		} else {
			displayWindow.document.writeln("<IMG NAME='imgPhoto' dynsrc='" + sFullImage + "' start='fileopen' ALT='Video Copyright Jamie Phillips 1991-2002'>");
		}
		displayWindow.document.writeln("<p><font color='#000080' face='Arial' size='3'>" + sTitle + "</font></p>")
		displayWindow.document.writeln("<font color='#000080' face='Arial' size='0'><i>Video Copyright Jamie Phillips 1991-2002</i></font>")
		displayWindow.document.writeln("</CENTER>");
		displayWindow.document.writeln("</BODY>");
		displayWindow.document.writeln("</HTML>");
		displayWindow.document.close();
	}
}

function showFlashMovie() {
	// This is a method of resizing the Flash object to suit the display type 
	// The formula is 1024 / Screen Height to give the ratio of sizing

	// e.g a screen size of 1024 x 768 is a ratio of 1:1.333333 which would resize the width
	// and height of the Flash object as follows:
	// original width = 700 	new width = 700 / 1.333333 = 525
	// original height = 450	new height = 450 / 1.333333 = 338 

	// e.g a screen size of 800 x 600 is a ratio of 1:1.706666 which would resize the width
	// and height of the Flash object as follows:
	// original width = 700 	new width = 700 / 1.706666 = 410
	// original height = 450	new height = 450 / 1.706666 = 263 

	var ControlWidth = 800 / (1024 / screen.height);
	var ControlHeight = 600 / (1024 / screen.height);
	var sOutput = "";

	if ((vBrowser == "Netscape") || (vBrowser == "Microsoft")) {
		sOutput = sOutput + "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0'"
		sOutput = sOutput + "id='index' width=" + ControlWidth + " height= " + ControlHeight + ">"
		sOutput = sOutput + "<param name='_cx' value='10266'>"
		sOutput = sOutput + "<param name='_cy' value='6615'>"
		sOutput = sOutput + "<param name='Movie' value='../flash/intro.swf'>"
		sOutput = sOutput + "<param name='Src' value='../flash/intro.swf'>"
		sOutput = sOutput + "<param name='WMode' value='Window'>"
		sOutput = sOutput + "<param name='Play' value='-1'>"
		sOutput = sOutput + "<param name='Loop' value='-1'>"
		sOutput = sOutput + "<param name='Quality' value='High'>"
		sOutput = sOutput + "<param name='SAlign' value>"
		sOutput = sOutput + "<param name='Menu' value='-1'>"
		sOutput = sOutput + "<param name='Base' value>"
		sOutput = sOutput + "<param name='Scale' value='ShowAll'>"
		sOutput = sOutput + "<param name='DeviceFont' value='0'>"
		sOutput = sOutput + "<param name='EmbedMovie' value='0'>"
		sOutput = sOutput + "<param name='BGColor' value='FFFFFF'>"
		sOutput = sOutput + "<param name='SWRemote' value>"
		sOutput = sOutput + "<param name='Stacking' value='below'><embed name='intro' src='flash/intro.swf' quality='high' bgcolor='#FFFFFF' width='80%' height='80%' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>"
		sOutput = sOutput + "</object>";
	} else {
		sOutput = "<b>Flash movie not loading properly</b>";
	}
	return sOutput;
}

function DisplayFlash(flashUrl,sTitle,nWidth,nHeight,background,sWindowTitle) {
	if((vBrowser == "Netscape")||(vBrowser == "Microsoft"))	{
		var sRoot = "http://" + sServer + "/";
		var sWindowOptions;
		var displayWindow;
		var nHeightAdjust;
		var nWidthAdjust;

		if(parent.frames.length == 0) {
			if(vBrowser == "Netscape") {
				sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no";
				nHeightAdjust = 100;
				nWidthAdjust = 20;
				bWinMediaPlayer = false;
			} else {
				sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no";
				nHeightAdjust = 150;
				nWidthAdjust = 30;
			}
		} else {
			sWindowOptions = "height=380,width=440,status=no,directories=no,titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no";
		}
		displayWindow = window.open("","FlashDisplay", sWindowOptions)
		displayWindow.focus();
		displayWindow.document.writeln("<HTML>");
		displayWindow.document.writeln("<HEAD><TITLE>");
		if (sWindowTitle != null) {
			displayWindow.document.writeln(sWindowTitle);
		} else {
			displayWindow.document.writeln("Videos at Petrellyn.com");
		}
		displayWindow.document.writeln("</TITLE></HEAD>");
		displayWindow.document.writeln("<" + "script language = 'JavaScript'" + ">");
		displayWindow.document.writeln("document.onmousedown = checkClick");
		displayWindow.document.writeln("document.oncontextmenu = function () {return false;};");
		displayWindow.document.writeln("if (document.layers) {");
		displayWindow.document.writeln("	document.captureEvents(Event.MOUSEDOWN);");
		displayWindow.document.writeln("}");
		displayWindow.document.writeln("function checkClick(ev) {");
		displayWindow.document.writeln("	if (navigator.appName == 'Netscape') {");
		displayWindow.document.writeln("		if (ev.which != 1) {");
		displayWindow.document.writeln("			return false;");
		displayWindow.document.writeln("		}");       
		displayWindow.document.writeln("	} else {");
		displayWindow.document.writeln("		if (event.button != 1) {");
		displayWindow.document.writeln("			return false;");
		displayWindow.document.writeln("		}");
		displayWindow.document.writeln("	}");
		displayWindow.document.writeln("}");
		if(parent.frames.length == 0) {
			displayWindow.document.writeln("function ResizeWindow() {");
			displayWindow.document.writeln("	window.resizeTo(" + nWidth + " + " + nWidthAdjust + ", " + nHeight + " + " + nHeightAdjust + ");");
			displayWindow.document.writeln("}");
		}
		displayWindow.document.writeln("</" + "script" + ">");
		if((parent.frames.length == 0) && (background != null)) {
			displayWindow.document.writeln("<BODY onLoad='ResizeWindow()' BACKGROUND=" + sRoot + "images/" + background + ">");
		} else if ((parent.frames.length == 0) && (background == null)){
			displayWindow.document.writeln("<BODY onLoad='ResizeWindow()'>");
		} else if (background != null){
			displayWindow.document.writeln("<BODY BACKGROUND=" + sRoot + "images/" + background + ">");
		} else {
			displayWindow.document.writeln("<BODY>");
		}
		displayWindow.document.writeln("<CENTER>");
		var sFlashCode = "";
		
		sFlashCode = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0'"
		sFlashCode = sFlashCode + "id='index' width=" + nWidth + " height= " + nHeight + ">"
		sFlashCode = sFlashCode + "<param name='_cx' value='10266'>"
		sFlashCode = sFlashCode + "<param name='_cy' value='6615'>"
		sFlashCode = sFlashCode + "<param name='Movie' value='" + flashUrl + "'>"
		sFlashCode = sFlashCode + "<param name='Src' value='" + flashUrl + "'>"
		sFlashCode = sFlashCode + "<param name='WMode' value='Window'>"
		sFlashCode = sFlashCode + "<param name='Play' value='-1'>"
		sFlashCode = sFlashCode + "<param name='Loop' value='-1'>"
		sFlashCode = sFlashCode + "<param name='Quality' value='High'>"
		sFlashCode = sFlashCode + "<param name='SAlign' value>"
		sFlashCode = sFlashCode + "<param name='Menu' value='-1'>"
		sFlashCode = sFlashCode + "<param name='Base' value>"
		sFlashCode = sFlashCode + "<param name='Scale' value='ShowAll'>"
		sFlashCode = sFlashCode + "<param name='DeviceFont' value='0'>"
		sFlashCode = sFlashCode + "<param name='EmbedMovie' value='0'>"
		sFlashCode = sFlashCode + "<param name='BGColor' value='FFFFFF'>"
		sFlashCode = sFlashCode + "<param name='SWRemote' value>"
		sFlashCode = sFlashCode + "<param name='Stacking' value='below'><embed name='Movie' src='" + flashUrl + "' quality='high' bgcolor='#FFFFFF' width='80%' height='80%' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>"
		sFlashCode = sFlashCode + "</object>";

		displayWindow.document.writeln(sFlashCode);
		displayWindow.document.writeln("<p><font color='#000080' face='Arial' size='3'>" + sTitle + "</font></p>")
		displayWindow.document.writeln("<font color='#000080' face='Arial' size='0'><i>Video Copyright Jamie Phillips 1991-2002</i></font>")
		displayWindow.document.writeln("</CENTER>");
		displayWindow.document.writeln("</BODY>");
		displayWindow.document.writeln("</HTML>");
		displayWindow.document.close();
	}
}

function setContactTabEng(nIndex)
{
	var sText = "";

	if (tabhdr1.src == "") tabhdr1.src = "../images/tab_header_1.jpg";
	if (tabhdr2.src == "") tabhdr2.src = "../images/tab_header_2.jpg";
	if (tabhdr3.src == "") tabhdr3.src = "../images/tab_header_3.jpg";
	if (tabhdr4.src == "") tabhdr4.src = "../images/tab_header_4.jpg";
	if (tabhdr5.src == "") tabhdr5.src = "../images/tab_header_5.jpg";


	if ((nIndex == 2) && (tabhdr2.src != "")) {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr2.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(1)' id=tabTitle>Contact<br>Details</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>Query<br>form</td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(3)' id=tabTitle>Yahoo!<br>Messenger</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(4)' id=tabTitle>ICQ</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(5)' id=tabTitle>MSN<br>Messenger</a></td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='325' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<form method='post' action='http://www.petrellyn.com/cgi-bin/forms.cgi'>";
		sText = sText + "<input type=hidden name='to' value='consulting@petrellyn.com'>";
		sText = sText + "<input type=hidden name='followupurl' value='http://www.petrellyn.com/en/contact.html'>";
		sText = sText + "<input type=hidden name='subject' value='Information request from Petrellyn Consulting Website'>";
		sText = sText + "<input type=hidden name='from' value='form_processor@petrellyn.com'>";
		sText = sText + "<input type=hidden name='postMessage' value='Thank you for your feedback,<br>your message has been sent to our staff.'>";
		sText = sText + "<tr>";
		sText = sText + "<td rowspan='5' width='30'>&nbsp;</td>";
		sText = sText + "<td colspan='2' id='mainBody' width='410' align='justify'>";
		sText = sText + "If you would like further information on our services or have ";
		sText = sText + "queries of any nature regarding our work, please feel free to use this form to contact us.<br>";
		sText = sText + "Simply enter your details along with your message and press the '<b>Send</b>' button.<br>";
		sText = sText + "We will endeavour to reply to your message as soon as possible.";
		sText = sText + "</td>";
		sText = sText + "<td rowspan='5' width='30'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id='mainBody' width='70'><b>Name</b></td>";
		sText = sText + "<td width='340'><input type='text' name='name' size='30' maxlength='70'></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id='mainBody' width='70'><b>E-mail</b></td>";
		sText = sText + "<td width='340'><input type='text' name='email' size='30' maxlength='70'></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id='mainBody' valign='top' width='70'><b>Message</b></td>";
		sText = sText + "<td width='340'><textarea name='textfield' rows='5' cols='40'></textarea></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td width='70'></td>";
		sText = sText + "<td valign='middle' align='center' width='340' height='40'><input type='submit' name='Submit' value='Send'></td>";
		sText = sText + "</tr>";
		sText = sText + "</form>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	} else if ((nIndex == 3) && (tabhdr3.src != "")) {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr3.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(1)' id=tabTitle>Contact<br>Details</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(2)' id=tabTitle>Query<br>form</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>Yahoo!<br>Messenger</td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(4)' id=tabTitle>ICQ</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(5)' id=tabTitle>MSN<br>Messenger</a></td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='325' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<tr>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "<td id='mainBody' valign='middle' width='150'>";
		sText = sText + "<center>My current status is:<br><br>";
		sText = sText + "<a href='JavaScript:DisplayYahooWindow()'>";
		sText = sText + "<img border=0 src='http://opi.yahoo.com/online?u=jamie_uwh_phillips&m=g&t=2' align='absmiddle'>";
		sText = sText + "</a>";
		sText = sText + "</center>";
		sText = sText + "</td>";
		sText = sText + "<td width='20'><img src='../images/blank.gif' border='0' width='20' height='325'></td>";
		sText = sText + "<td width='240' id='mainBody' align='justify'>";
		sText = sText + "If you are running a version of Yahoo Messenger, then you can send a message to me via my Yahoo! id '<b>jamie_uwh_phillips</b>'.<br><br>";
		sText = sText + "Alternatively, click on the on-line status icon on the left, to send the message via the Yahoo messenger website.";
		sText = sText + "</td>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "</tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	} else if ((nIndex == 4) && (tabhdr4.src != "")) {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr4.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(1)' id=tabTitle>Contact<br>Details</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(2)' id=tabTitle>Query<br>form</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(3)' id=tabTitle>Yahoo!<br>Messenger</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>ICQ</td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(5)' id=tabTitle>MSN<br>Messenger</a></td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='325' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<tr>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "<td id='mainBody' valign='middle' width='150'>";
		sText = sText + "<center>My current status is:<br><br>";
		sText = sText + "<a href='JavaScript:DisplayICQWindow()'>";
		sText = sText + "<img border=0 src='http://web.icq.com/whitepages/online?icq=148053528&img=6'>";
		sText = sText + "</a>";
		sText = sText + "</center>";
		sText = sText + "</td>";
		sText = sText + "<td width='20'><img src='../images/blank.gif' border='0' width='20' height='325'></td>";
		sText = sText + "<td width='240' id='mainBody' align='justify'>";
		sText = sText + "If you are running a version of ICQ Messenger, then you can send a message to me via my ICQ id '<b>148053528</b>'.<br><br>";
		sText = sText + "Alternatively, click on the on-line status icon on the left, to send the message via the ICQ Communication centre.";
		sText = sText + "</td>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "</tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	} else if ((nIndex == 5) && (tabhdr5.src != "")) {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr5.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(1)' id=tabTitle>Contact<br>Details</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(2)' id=tabTitle>Query<br>form</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(3)' id=tabTitle>Yahoo!<br>Messenger</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(4)' id=tabTitle>ICQ</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>MSN<br>Messenger</td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='325' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<tr>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "<td id='mainBody' align='center' valign='middle' width='150'>";
		sText = sText + "<a href='http://messenger.microsoft.com' target='_blank'>";
		sText = sText + "<img border=0 src='../images/msn_messenger.gif'>";
		sText = sText + "</a>";
		sText = sText + "</td>";
		sText = sText + "<td width='260' id='mainBody' align='justify'>";
		sText = sText + "If you are running a version of MSN Messenger, then you can send a message to me via my MSN messenger id '<b>jamie@petrellyn.com</b>'.";
		sText = sText + "</td>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "</tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	} else if  (tabhdr1.src != "") {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr1.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>Contact<br>Details</td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(2)' id=tabTitle>Query<br>form</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(3)' id=tabTitle>Yahoo!<br>Messenger</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(4)' id=tabTitle>ICQ</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(5)' id=tabTitle>MSN<br>Messenger</a></td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_body.jpg'>";
		sText = sText + "<tr><td colspan='3'></td></tr>";
		sText = sText + "<tr>";
		sText = sText + "<td rowspan='5' width='30'><img border='0' src='../images/blank.gif' width='30' height='180'></td>";
		sText = sText + "<td rowspan='4' width='125'><img src='../images/photo_id.jpg' border='0'></td>";
		sText = sText + "<td rowspan='4' width='10'>&nbsp;</td>";
		sText = sText + "<td id=mainBody width='75' valign='top'>Postal Address:</td>";
		sText = sText + "<td id=mainBody width='200' valign='top'>";
		sText = sText + "Passeig Valldaura,<br> Casa 1, 3º 3ª<br>";
		sText = sText + "Barcelona E-08042<br>";
		sText = sText + "Cataluña<br>";
		sText = sText + "Spain / España";
		sText = sText + "</td>";
		sText = sText + "<td rowspan='5' width='30'><img border='0' src='../images/blank.gif' width='30' height='180'></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id=mainBody>Mobile:</td>";
		sText = sText + "<td id=mainBody>+34 696 687 641</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id=mainBody></td>";
		sText = sText + "<td id=mainBody></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id=mainBody>E-mail:</td>";
		sText = sText + "<td align='left'><a id=menuItem href='mailTo:consulting@petrellyn.com'><b>consulting@petrellyn.com</b></a></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='4'></td></tr>";
		sText = sText + "<tr><td colspan='6'><img border='0' src='../images/blank.gif' width='470' height='112'></td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<tr>";
		sText = sText + "<td width='30'><img border='0' src='../images/blank.gif' width='30' height='15'></td>";
		sText = sText + "<td width='50' valign='middle'><a href='../petrellyn.vcf'><img border='0' src='../images/vcf.gif' alt='Download the visit card!' align='absmiddle' width='31' height='22'></a></td>";
		sText = sText + "<td id=mainBody>Download the Petrellyn Consulting <a id=menuItem href='../petrellyn.vcf'><b>Visit Card</b></a> to add our details to your contacts.</td>";
		sText = sText + "<td width='30'><img border='0' src='../images/blank.gif' width='30' height='15'></td>";
		sText = sText + "</tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	}

	return sText;
}

function setContactTabEsp(nIndex) {
	var sText = "";

	if (tabhdr1.src == "") tabhdr1.src = "../images/tab_header_1.jpg";
	if (tabhdr2.src == "") tabhdr2.src = "../images/tab_header_2.jpg";
	if (tabhdr3.src == "") tabhdr3.src = "../images/tab_header_3.jpg";
	if (tabhdr4.src == "") tabhdr4.src = "../images/tab_header_4.jpg";
	if (tabhdr5.src == "") tabhdr5.src = "../images/tab_header_5.jpg";


	if ((nIndex == 2) && (tabhdr2.src != "")) {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr2.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(1)' id=tabTitle>Detalles de<br>contacto</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>Impreso de<br>consulta</td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(3)' id=tabTitle>Yahoo!<br>Messenger</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(4)' id=tabTitle>ICQ</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(5)' id=tabTitle>MSN<br>Messenger</a></td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='325' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<form method='post' action='http://www.petrellyn.com/cgi-bin/forms.cgi'>";
		sText = sText + "<input type=hidden name='to' value='consulting@petrellyn.com'>";
		sText = sText + "<input type=hidden name='followupurl' value='http://www.petrellyn.com/en/contact.html'>";
		sText = sText + "<input type=hidden name='subject' value='Information request from Petrellyn Consulting Website'>";
		sText = sText + "<input type=hidden name='from' value='form_processor@petrellyn.com'>";
		sText = sText + "<input type=hidden name='postMessage' value='Gracias por sus comentarios,<br>su mensaje se ha enviado a nuestro personal.'>";
		sText = sText + "<tr>";
		sText = sText + "<td rowspan='5' width='30'>&nbsp;</td>";
		sText = sText + "<td colspan='2' id='mainBody' width='410' align='justify'>";
		sText = sText + "Si usted quiere información adicional sobre nuestros servicios o tiene alguna pregunta con respecto a nuestro trabajo, ";
		sText = sText + "por favor utilice este impreso de consulta para ponerse en contacto con nosotros.<br>";
		sText = sText + "Complete el impreso con sus detalles y su mensaje y pulse el botón <b>'enviar'</b>.<br>";
		sText = sText + "Responderemos a su mensaje tan pronto como sea posible.";
		sText = sText + "</td>";
		sText = sText + "<td rowspan='5' width='30'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id='mainBody' width='70'><b>Nombre</b></td>";
		sText = sText + "<td width='340'><input type='text' name='name' size='30' maxlength='70'></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id='mainBody' width='70'><b>E-mail</b></td>";
		sText = sText + "<td width='340'><input type='text' name='email' size='30' maxlength='70'></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id='mainBody' valign='top' width='70'><b>Mensaje</b></td>";
		sText = sText + "<td width='340'><textarea name='textfield' rows='5' cols='40'></textarea></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td width='70'></td>";
		sText = sText + "<td valign='middle' align='center' width='340' height='40'><input type='submit' name='Submit' value='Enviar'></td>";
		sText = sText + "</tr>";
		sText = sText + "</form>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	} else if ((nIndex == 3) && (tabhdr3.src != "")) {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr3.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(1)' id=tabTitle>Detalles de<br>contacto</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(2)' id=tabTitle>Impreso de<br>consulta</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>Yahoo!<br>Messenger</td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(4)' id=tabTitle>ICQ</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(5)' id=tabTitle>MSN<br>Messenger</a></td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='325' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<tr>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "<td id='mainBody' valign='middle' width='150'>";
		sText = sText + "<center>Mi estado en línea es:<br><br>";
		sText = sText + "<a href='JavaScript:DisplayYahooWindow()'>";
		sText = sText + "<img border=0 src='http://opi.yahoo.com/online?u=jamie_uwh_phillips&m=g&t=2' align='absmiddle'>";
		sText = sText + "</a>";
		sText = sText + "</center>";
		sText = sText + "</td>";
		sText = sText + "<td width='20'><img src='../images/blank.gif' border='0' width='20' height='325'></td>";
		sText = sText + "<td width='240' id='mainBody' align='justify'>";
		sText = sText + "Si usted usa el sistema de mensajería instantánea de Yahoo!, puede enviarme un mensaje vía mi identificación de Yahoo! '<b>jamie_uwh_phillips</b>'.<br><br>";
		sText = sText + "Alternativamente, pulse el icono de '<b>estado en línea</b>' a la izquierda, para enviar el mensaje vía el website de Yahoo! Messenger.";
		sText = sText + "</td>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "</tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	} else if ((nIndex == 4) && (tabhdr4.src != "")) {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr4.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(1)' id=tabTitle>Detalles de<br>contacto</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(2)' id=tabTitle>Impreso de<br>consulta</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(3)' id=tabTitle>Yahoo!<br>Messenger</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>ICQ</td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(5)' id=tabTitle>MSN<br>Messenger</a></td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='325' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<tr>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "<td id='mainBody' valign='middle' width='150'>";
		sText = sText + "<center>Mi estado en línea es:<br><br>";
		sText = sText + "<a href='JavaScript:DisplayICQWindow()'>";
		sText = sText + "<img border=0 src='http://web.icq.com/whitepages/online?icq=148053528&img=6'>";
		sText = sText + "</a>";
		sText = sText + "</center>";
		sText = sText + "</td>";
		sText = sText + "<td width='20'><img src='../images/blank.gif' border='0' width='20' height='325'></td>";
		sText = sText + "<td width='240' id='mainBody' align='justify'>";
		sText = sText + "Si usted usa el sistema de mensajería instantánea de ICQ, puede enviarme un mensaje vía mi identificación de ICQ '<b>148053528</b>'.<br><br>";
		sText = sText + "Alternativamente, pulse el icono de '<b>estado en línea</b>' a la izquierda, para enviar el mensaje vía el website de ICQ.";
		sText = sText + "</td>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "</tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	} else if ((nIndex == 5) && (tabhdr5.src != "")) {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr5.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(1)' id=tabTitle>Detalles de<br>contacto</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(2)' id=tabTitle>Impreso de<br>consulta</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(3)' id=tabTitle>Yahoo!<br>Messenger</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(4)' id=tabTitle>ICQ</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>MSN<br>Messenger</td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='325' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<tr>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "<td id='mainBody' valign='middle' width='150'>";
		sText = sText + "<a href='http://messenger.microsoft.com' target='_blank'>";
		sText = sText + "<img border=0 src='../images/msn_messenger.gif'>";
		sText = sText + "</a>";
		sText = sText + "</td>";
		sText = sText + "<td width='260' id='mainBody' align='justify'>";
		sText = sText + "Si usted usa el sistema de mensajería instantánea de MSN, puede enviarme un mensaje vía mi identificación de MSN messenger '<b>jamie@petrellyn.com</b>'.";
		sText = sText + "</td>";
		sText = sText + "<td width='30'><img src='../images/blank.gif' border='0' width='30' height='325'></td>";
		sText = sText + "</tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	} else if  (tabhdr1.src != "") {
		sText = sText + "<table width='470' height='80' border='0' cellpadding='0' cellspacing='0' background='" + tabhdr1.src + "'>";
		sText = sText + "<tr>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'>Detalles de<br>contacto</td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(2)' id=tabTitle>Impreso de<br>consulta</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(3)' id=tabTitle>Yahoo!<br>Messenger</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(4)' id=tabTitle>ICQ</a></td>";
		sText = sText + "<td id=tabTitle width='92' height='50' valign='middle' align='center'><a href='JavaScript:tabSelect(5)' id=tabTitle>MSN<br>Messenger</a></td>";
		sText = sText + "<td width='10' height='50'>&nbsp;</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='6'>&nbsp;</td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_body.jpg'>";
		sText = sText + "<tr><td colspan='3'></td></tr>";
		sText = sText + "<tr>";
		sText = sText + "<td rowspan='5' width='30'><img border='0' src='../images/blank.gif' width='30' height='180'></td>";
		sText = sText + "<td rowspan='4' width='125'><img src='../images/photo_id.jpg' border='0'></td>";
		sText = sText + "<td rowspan='4' width='10'>&nbsp;</td>";
		sText = sText + "<td id=mainBody width='75' valign='top'>Dirección:</td>";
		sText = sText + "<td id=mainBody width='200' valign='top'>";
		sText = sText + "Passeig Valldaura,<br> Casa 1, 3º 3ª<br>";
		sText = sText + "Barcelona E-08042<br>";
		sText = sText + "Cataluña<br>";
		sText = sText + "Spain / España";
		sText = sText + "</td>";
		sText = sText + "<td rowspan='5' width='30'><img border='0' src='../images/blank.gif' width='30' height='180'></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id=mainBody>Móvil:</td>";
		sText = sText + "<td id=mainBody>+34 696 687 641</td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id=mainBody></td>";
		sText = sText + "<td id=mainBody></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr>";
		sText = sText + "<td id=mainBody>E-mail:</td>";
		sText = sText + "<td align='left'><a id=menuItem href='mailTo:consulting@petrellyn.com'><b>consulting@petrellyn.com</b></a></td>";
		sText = sText + "</tr>";
		sText = sText + "<tr><td colspan='4'></td></tr>";
		sText = sText + "<tr><td colspan='6'><img border='0' src='../images/blank.gif' width='470' height='96'></td></tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' border='0' cellpadding='0' cellspacing='0'  background='../images/tabs_body.jpg'>";
		sText = sText + "<tr>";
		sText = sText + "<td width='30'><img border='0' src='../images/blank.gif' width='30' height='15'></td>";
		sText = sText + "<td width='50' valign='middle'><a href='../petrellyn.vcf'><img border='0' src='../images/vcf.gif' alt='Descarga el tarjeta de presentación' align='absmiddle' width='31' height='22'></a></td>";
		sText = sText + "<td id=mainBody>Descarga la <a id=menuItem href='../petrellyn.vcf'><b>tarjeta de presentación</b></a> de Petrellyn Consulting para añadir nuestros detalles a sus contactos.</td>";
		sText = sText + "<td width='30'><img border='0' src='../images/blank.gif' width='30' height='15'></td>";
		sText = sText + "</tr>";
		sText = sText + "</table>";
		sText = sText + "<table width='470' height='40' border='0' cellpadding='0' cellspacing='0' background='../images/tabs_footer.jpg'><tr><td>&nbsp;</td></tr></table>";
	}

	return sText;
}

function showCurrencyConvertor(strLanguage){
	// <!-- XE.com Universal Currency Converter(tm) Input Page Starts -->
	// <!-- Copyright (c) 2001 XE.com. Unauthorized use prohibited. -->
	// <!-- Input Template Version 3.06 -->
	// <!-- You may reformat this page section, but do not delete lines or variables that start with an asterisk -->

	var sText = "";

	if (strLanguage == "esp")
	{
		sText = sText + espConversion();
	}
	else
	{
		sText = sText + engConversion();
	}
	
	// <!-- XE.com Universal Currency Converter(tm) Input Page Ends -->

	return sText;
}

function espConversion()
{

	var sText = "";

	sText = sText + "<FORM METHOD=POST ACTION='http://www.xe.com/ucc/convert.cgi'>";
	sText = sText + "<P><TABLE WIDTH=100% CELLPADDING=1 CELLSPACING=0 BORDER=0  BGCOLOR=#000000><TR><TD ALIGN=CENTER>";
	sText = sText + "<TABLE WIDTH=100% CELLPADDING=3 CELLSPACING=1 BORDER=0>";
	sText = sText + "<TR VALIGN=TOP ALIGN=CENTER>";
	sText = sText + "  <TD BGCOLOR=#FFF090 id=mainBody><B>";
	sText = sText + "	<FONT SIZE=+1>xe.com&nbsp;</FONT>";
	sText = sText + "	Convertidor Universal de Divisas&#153;";
	sText = sText + "  </B></TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR VALIGN=TOP ALIGN=CENTER>";
	sText = sText + "  <TD VALIGN=MIDDLE ALIGN=CENTER BGCOLOR=#FFFFFF>";
	sText = sText + "  <TABLE CELLSPACING=3 CELLPADDING=2 BORDER=0 WIDTH=100%><TR>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody>";
	sText = sText + "<A HREF='http://www.xe.com/'><IMG SRC='http://www.xe.com/gen/illegal2copy-w.gif' WIDTH=45 HEIGHT=45 BORDER=0 ALT='UCC'></A><BR>";
	sText = sText + "	<!XERC-UCC1-P1.1-R1>";
	sText = sText + "	<B>Convierta esta cantidad</B>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR VALIGN=TOP ALIGN=CENTER>";
	sText = sText + "  <TD id=mainBody>";
	sText = sText + "	<INPUT TYPE='text' NAME='Amount' VALUE='1' SIZE=10><BR>";
	sText = sText + "	<!XERC-UCC1-P1.2-R2>";
	sText = sText + "	<FONT SIZE=-2><B>(ingrese la cantidad deseada)</B></FONT>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody>";
	sText = sText + "	<!XERC-UCC1-P1.3-R1>";
	sText = sText + "	<B>de esta divisa</B>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody><FONT SIZE=-1>";
	sText = sText + "	<SELECT NAME='From' SIZE=5>";
	sText = sText + "      <OPTION VALUE='USD'>USD Estados Unidos Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='EUR' SELECTED>EUR Euros</OPTION>";
	sText = sText + "      <OPTION VALUE='GBP'>GBP Reino Unido Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='JPY'>JPY Japón Yenes</OPTION>";
	sText = sText + "      <OPTION VALUE='ZAR'>ZAR África del Sur Rand</OPTION>";
	sText = sText + "      <OPTION VALUE='DEM'>DEM Alemania Marcos Alemanes</OPTION>";
	sText = sText + "      <OPTION VALUE='DZD'>DZD Algeria Dinares</OPTION>";
	sText = sText + "      <OPTION VALUE='SAR'>SAR Arabia Saudita Riyals</OPTION>";
	sText = sText + "      <OPTION VALUE='ARS'>ARS Argentina Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='AUD'>AUD Australia Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='ATS'>ATS Austria Schillings</OPTION>";
	sText = sText + "      <OPTION VALUE='BSD'>BSD Bahamas Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='BBD'>BBD Barbados Dólars</OPTION>";
	sText = sText + "      <OPTION VALUE='BEF'>BEF Bélgica Francos</OPTION>";
	sText = sText + "      <OPTION VALUE='BZD'>BZD Belice Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='BMD'>BMD Bermuda Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='BOB'>BOB Bolivia Bolivianos</OPTION>";
	sText = sText + "      <OPTION VALUE='BRL'>BRL Brasil Reales</OPTION>";
	sText = sText + "      <OPTION VALUE='BGL'>BGL Bulgaria Leva</OPTION>";
	sText = sText + "      <OPTION VALUE='CVE'>CVE Cabo Verde Escudos</OPTION>";
	sText = sText + "      <OPTION VALUE='CAD'>CAD Canadá Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='CLP'>CLP Chile Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='CNY'>CNY China Yuan Renminbi</OPTION>";
	sText = sText + "      <OPTION VALUE='CYP'>CYP Chipre  Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='COP'>COP Colombia Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='KRW'>KRW Corea del Sur Won</OPTION>";
	sText = sText + "      <OPTION VALUE='CRC'>CRC Costa Rica Colones</OPTION>";
	sText = sText + "      <OPTION VALUE='CUP'>CUP Cuba Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='XDR'>XDR Derechos de Giro Especiales del FMI</OPTION>";
	sText = sText + "      <OPTION VALUE='DKK'>DKK Dinamarca Coronas</OPTION>";
	sText = sText + "      <OPTION VALUE='XCD'>XCD Dólares del Caribe Occidental</OPTION>";
	sText = sText + "      <OPTION VALUE='ECS'>ECS Ecuador Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='EGP'>EGP Egipto Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='SVC'>SVC El Salvador Colones</OPTION>";
	sText = sText + "      <OPTION VALUE='SKK'>SKK Eslovaquia Coronas</OPTION>";
	sText = sText + "      <OPTION VALUE='ESP'>ESP España Pesetas</OPTION>";
	sText = sText + "      <OPTION VALUE='USD'>USD Estados Unidos Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='EUR'>EUR Euros</OPTION>";
	sText = sText + "      <OPTION VALUE='FJD'>FJD Fiji Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='PHP'>PHP Filipinas Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='FIM'>FIM Finlandia Markkaa</OPTION>";
	sText = sText + "      <OPTION VALUE='FRF'>FRF Francia Francos</OPTION>";
	sText = sText + "      <OPTION VALUE='GRD'>GRD Grecia Dracmas</OPTION>";
	sText = sText + "      <OPTION VALUE='GTQ'>GTQ Guatemala Quetzales</OPTION>";
	sText = sText + "      <OPTION VALUE='GYD'>GYD Guyana Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='HTG'>HTG Haití Gourdes</OPTION>";
	sText = sText + "      <OPTION VALUE='NLG'>NLG Holanda Guilderes</OPTION>";
	sText = sText + "      <OPTION VALUE='HNL'>HNL Honduras Lempiras</OPTION>";
	sText = sText + "      <OPTION VALUE='HKD'>HKD Hong Kong Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='HUF'>HUF Hungría Forint</OPTION>";
	sText = sText + "      <OPTION VALUE='INR'>INR India Rupias</OPTION>";
	sText = sText + "      <OPTION VALUE='IDR'>IDR Indonesia Rupiahs</OPTION>";
	sText = sText + "      <OPTION VALUE='IEP'>IEP Irlanda Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='ISK'>ISK Islandia Coronas</OPTION>";
	sText = sText + "      <OPTION VALUE='FKP'>FKP Islas Falkland Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='FKP'>FKP Islas Mavinas (Falkland) Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='ILS'>ILS Israel Nuevos Shékels</OPTION>";
	sText = sText + "      <OPTION VALUE='ITL'>ITL Italia Liras</OPTION>";
	sText = sText + "      <OPTION VALUE='JMD'>JMD Jamaica Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='JPY'>JPY Japón Yenes</OPTION>";
	sText = sText + "      <OPTION VALUE='JOD'>JOD Jordania Dinars</OPTION>";
	sText = sText + "      <OPTION VALUE='LBP'>LBP Líbano Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='LUF'>LUF Luxemburgo Francos</OPTION>";
	sText = sText + "      <OPTION VALUE='MYR'>MYR Malasia Ringgits</OPTION>";
	sText = sText + "      <OPTION VALUE='MXN'>MXN México Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='NIO'>NIO Nicaragua Córdobas de Oro</OPTION>";
	sText = sText + "      <OPTION VALUE='NOK'>NOK Noruega Corona</OPTION>";
	sText = sText + "      <OPTION VALUE='NZD'>NZD Nueva Zelanda  Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='XAU'>XAU Onzas de Oro</OPTION>";
	sText = sText + "      <OPTION VALUE='XPT'>XPT Onzas de Platino</OPTION>";
	sText = sText + "      <OPTION VALUE='XPD'>XPD Onzas de Paladio</OPTION>";
	sText = sText + "      <OPTION VALUE='XAG'>XAG Onzas de Plata</OPTION>";
	sText = sText + "      <OPTION VALUE='XAU'>XAU Oro, Onzas</OPTION>";
	sText = sText + "      <OPTION VALUE='PKR'>PKR Pakistán Rupias</OPTION>";
	sText = sText + "      <OPTION VALUE='XPD'>XPD Paladio, Onzas</OPTION>";
	sText = sText + "      <OPTION VALUE='PAB'>PAB Panamá Balboas</OPTION>";
	sText = sText + "      <OPTION VALUE='PYG'>PYG Paraguay Guaraníes</OPTION>";
	sText = sText + "      <OPTION VALUE='PEN'>PEN Perú Nuevos Soles</OPTION>";
	sText = sText + "      <OPTION VALUE='XAG'>XAG Plata, Onzas</OPTION>";
	sText = sText + "      <OPTION VALUE='XPT'>XPT Platino, Onzas</OPTION>";
	sText = sText + "      <OPTION VALUE='PLN'>PLN Polonia Zlotych</OPTION>";
	sText = sText + "      <OPTION VALUE='PTE'>PTE Portugal Escudos</OPTION>";
	sText = sText + "      <OPTION VALUE='GBP'>GBP Reino Unido Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='DOP'>DOP República Dominicana Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='CZK'>CZK República Checa Koruny</OPTION>";
	sText = sText + "      <OPTION VALUE='ROL'>ROL Rumania Lei</OPTION>";
	sText = sText + "      <OPTION VALUE='RUR'>RUR Rusia Rublos</OPTION>";
	sText = sText + "      <OPTION VALUE='SGD'>SGD Singapur Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='SDD'>SDD Sudan Dinares</OPTION>";
	sText = sText + "      <OPTION VALUE='SEK'>SEK Suecia Coronas</OPTION>";
	sText = sText + "      <OPTION VALUE='CHF'>CHF Suiza Francos</OPTION>";
	sText = sText + "      <OPTION VALUE='SRG'>SRG Surinam Guilderes</OPTION>";
	sText = sText + "      <OPTION VALUE='THB'>THB Tailandia Baht</OPTION>";
	sText = sText + "      <OPTION VALUE='TWD'>TWD Taiwán Nuevos Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='TTD'>TTD Trinidad y Tobago Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='TRL'>TRL Turquía Liras</OPTION>";
	sText = sText + "      <OPTION VALUE='UYU'>UYU Uruguay Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='VEB'>VEB Venezuela Bolívares</OPTION>";
	sText = sText + "      <OPTION VALUE='ZMK'>ZMK Zambia Kwacha</OPTION>";
	sText = sText + "	</SELECT><BR>";
	sText = sText + "	<!XERC-UCC1-P1.4-R2>";
	sText = sText + "	<FONT SIZE=-2><B>(despliegue para ver otras divisas)</B></FONT>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody>";
	sText = sText + "	<!XERC-UCC1-P1.5-R1>";
	sText = sText + "	<B>a esta otra.</B>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody><FONT SIZE=-1>";
	sText = sText + "	<SELECT NAME='To' SIZE=5>";
	sText = sText + "      <OPTION VALUE='USD' SELECTED>USD Estados Unidos Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='EUR'>EUR Euros</OPTION>";
	sText = sText + "      <OPTION VALUE='GBP'>GBP Reino Unido Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='JPY'>JPY Japón Yenes</OPTION>";
	sText = sText + "      <OPTION VALUE='ZAR'>ZAR África del Sur Rand</OPTION>";
	sText = sText + "      <OPTION VALUE='DEM'>DEM Alemania Marcos Alemanes</OPTION>";
	sText = sText + "      <OPTION VALUE='DZD'>DZD Algeria Dinares</OPTION>";
	sText = sText + "      <OPTION VALUE='SAR'>SAR Arabia Saudita Riyals</OPTION>";
	sText = sText + "      <OPTION VALUE='ARS'>ARS Argentina Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='AUD'>AUD Australia Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='ATS'>ATS Austria Schillings</OPTION>";
	sText = sText + "      <OPTION VALUE='BSD'>BSD Bahamas Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='BBD'>BBD Barbados Dólars</OPTION>";
	sText = sText + "      <OPTION VALUE='BEF'>BEF Bélgica Francos</OPTION>";
	sText = sText + "      <OPTION VALUE='BZD'>BZD Belice Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='BMD'>BMD Bermuda Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='BOB'>BOB Bolivia Bolivianos</OPTION>";
	sText = sText + "      <OPTION VALUE='BRL'>BRL Brasil Reales</OPTION>";
	sText = sText + "      <OPTION VALUE='BGL'>BGL Bulgaria Leva</OPTION>";
	sText = sText + "      <OPTION VALUE='CVE'>CVE Cabo Verde Escudos</OPTION>";
	sText = sText + "      <OPTION VALUE='CAD'>CAD Canadá Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='CLP'>CLP Chile Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='CNY'>CNY China Yuan Renminbi</OPTION>";
	sText = sText + "      <OPTION VALUE='CYP'>CYP Chipre  Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='COP'>COP Colombia Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='KRW'>KRW Corea del Sur Won</OPTION>";
	sText = sText + "      <OPTION VALUE='CRC'>CRC Costa Rica Colones</OPTION>";
	sText = sText + "      <OPTION VALUE='CUP'>CUP Cuba Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='XDR'>XDR Derechos de Giro Especiales del FMI</OPTION>";
	sText = sText + "      <OPTION VALUE='DKK'>DKK Dinamarca Coronas</OPTION>";
	sText = sText + "      <OPTION VALUE='XCD'>XCD Dólares del Caribe Occidental</OPTION>";
	sText = sText + "      <OPTION VALUE='ECS'>ECS Ecuador Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='EGP'>EGP Egipto Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='SVC'>SVC El Salvador Colones</OPTION>";
	sText = sText + "      <OPTION VALUE='SKK'>SKK Eslovaquia Coronas</OPTION>";
	sText = sText + "      <OPTION VALUE='ESP'>ESP España Pesetas</OPTION>";
	sText = sText + "      <OPTION VALUE='USD'>USD Estados Unidos Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='EUR'>EUR Euros</OPTION>";
	sText = sText + "      <OPTION VALUE='FJD'>FJD Fiji Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='PHP'>PHP Filipinas Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='FIM'>FIM Finlandia Markkaa</OPTION>";
	sText = sText + "      <OPTION VALUE='FRF'>FRF Francia Francos</OPTION>";
	sText = sText + "      <OPTION VALUE='GRD'>GRD Grecia Dracmas</OPTION>";
	sText = sText + "      <OPTION VALUE='GTQ'>GTQ Guatemala Quetzales</OPTION>";
	sText = sText + "      <OPTION VALUE='GYD'>GYD Guyana Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='HTG'>HTG Haití Gourdes</OPTION>";
	sText = sText + "      <OPTION VALUE='NLG'>NLG Holanda Guilderes</OPTION>";
	sText = sText + "      <OPTION VALUE='HNL'>HNL Honduras Lempiras</OPTION>";
	sText = sText + "      <OPTION VALUE='HKD'>HKD Hong Kong Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='HUF'>HUF Hungría Forint</OPTION>";
	sText = sText + "      <OPTION VALUE='INR'>INR India Rupias</OPTION>";
	sText = sText + "      <OPTION VALUE='IDR'>IDR Indonesia Rupiahs</OPTION>";
	sText = sText + "      <OPTION VALUE='IEP'>IEP Irlanda Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='ISK'>ISK Islandia Coronas</OPTION>";
	sText = sText + "      <OPTION VALUE='FKP'>FKP Islas Falkland Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='FKP'>FKP Islas Mavinas (Falkland) Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='ILS'>ILS Israel Nuevos Shékels</OPTION>";
	sText = sText + "      <OPTION VALUE='ITL'>ITL Italia Liras</OPTION>";
	sText = sText + "      <OPTION VALUE='JMD'>JMD Jamaica Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='JPY'>JPY Japón Yenes</OPTION>";
	sText = sText + "      <OPTION VALUE='JOD'>JOD Jordania Dinars</OPTION>";
	sText = sText + "      <OPTION VALUE='LBP'>LBP Líbano Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='LUF'>LUF Luxemburgo Francos</OPTION>";
	sText = sText + "      <OPTION VALUE='MYR'>MYR Malasia Ringgits</OPTION>";
	sText = sText + "      <OPTION VALUE='MXN'>MXN México Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='NIO'>NIO Nicaragua Córdobas de Oro</OPTION>";
	sText = sText + "      <OPTION VALUE='NOK'>NOK Noruega Corona</OPTION>";
	sText = sText + "      <OPTION VALUE='NZD'>NZD Nueva Zelanda  Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='XAU'>XAU Onzas de Oro</OPTION>";
	sText = sText + "      <OPTION VALUE='XPT'>XPT Onzas de Platino</OPTION>";
	sText = sText + "      <OPTION VALUE='XPD'>XPD Onzas de Paladio</OPTION>";
	sText = sText + "      <OPTION VALUE='XAG'>XAG Onzas de Plata</OPTION>";
	sText = sText + "      <OPTION VALUE='XAU'>XAU Oro, Onzas</OPTION>";
	sText = sText + "      <OPTION VALUE='PKR'>PKR Pakistán Rupias</OPTION>";
	sText = sText + "      <OPTION VALUE='XPD'>XPD Paladio, Onzas</OPTION>";
	sText = sText + "      <OPTION VALUE='PAB'>PAB Panamá Balboas</OPTION>";
	sText = sText + "      <OPTION VALUE='PYG'>PYG Paraguay Guaraníes</OPTION>";
	sText = sText + "      <OPTION VALUE='PEN'>PEN Perú Nuevos Soles</OPTION>";
	sText = sText + "      <OPTION VALUE='XAG'>XAG Plata, Onzas</OPTION>";
	sText = sText + "      <OPTION VALUE='XPT'>XPT Platino, Onzas</OPTION>";
	sText = sText + "      <OPTION VALUE='PLN'>PLN Polonia Zlotych</OPTION>";
	sText = sText + "      <OPTION VALUE='PTE'>PTE Portugal Escudos</OPTION>";
	sText = sText + "      <OPTION VALUE='GBP'>GBP Reino Unido Libras</OPTION>";
	sText = sText + "      <OPTION VALUE='DOP'>DOP República Dominicana Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='CZK'>CZK República Checa Koruny</OPTION>";
	sText = sText + "      <OPTION VALUE='ROL'>ROL Rumania Lei</OPTION>";
	sText = sText + "      <OPTION VALUE='RUR'>RUR Rusia Rublos</OPTION>";
	sText = sText + "      <OPTION VALUE='SGD'>SGD Singapur Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='SDD'>SDD Sudan Dinares</OPTION>";
	sText = sText + "      <OPTION VALUE='SEK'>SEK Suecia Coronas</OPTION>";
	sText = sText + "      <OPTION VALUE='CHF'>CHF Suiza Francos</OPTION>";
	sText = sText + "      <OPTION VALUE='SRG'>SRG Surinam Guilderes</OPTION>";
	sText = sText + "      <OPTION VALUE='THB'>THB Tailandia Baht</OPTION>";
	sText = sText + "      <OPTION VALUE='TWD'>TWD Taiwán Nuevos Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='TTD'>TTD Trinidad y Tobago Dólares</OPTION>";
	sText = sText + "      <OPTION VALUE='TRL'>TRL Turquía Liras</OPTION>";
	sText = sText + "      <OPTION VALUE='UYU'>UYU Uruguay Pesos</OPTION>";
	sText = sText + "      <OPTION VALUE='VEB'>VEB Venezuela Bolívares</OPTION>";
	sText = sText + "      <OPTION VALUE='ZMK'>ZMK Zambia Kwacha</OPTION>";
	sText = sText + "	</SELECT><BR>";
	sText = sText + "	<!XERC-UCC1-P1.6-R2>";
	sText = sText + "	<FONT SIZE=-2><B>(despliegue para ver otras divisas)</B></FONT>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody>";
	sText = sText + "	<!XERC-UCC1-P3.2-R1>";
	sText = sText + "	<INPUT VALUE='Haga clic aquí para Realizar Conversiones' type=submit>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "</TABLE>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD BGCOLOR=#F0F0F0 ALIGN=CENTER id=mainBody><FONT SIZE=-1 COLOR=#808080>";
	// <!-- Important Section Start -->
	// <!-- ALL of the contents of this section are required under the usage agreement! -->
	sText = sText + "	<FONT COLOR=#808080 SIZE=-1><B>Convertidor Universal de Divisas</B> servicio y marca comercial<br>debajo de la licencia de <B>xe.com</B>. <A HREF='http://www.xe.com/legal/' style='color:#808080;' target='_blank'>Condiciones de uso</A>";
	// <!-- Important Section Ends -->
	sText = sText + "  </FONT></TD>";
	sText = sText + "</TR>";
	sText = sText + "</TABLE>";
	sText = sText + "</TD></TR></TABLE>";

	return sText;
}

function engConversion()
{

	var sText = "";

	sText = sText + "<FORM METHOD=POST ACTION='http://www.xe.com/ucc/convert.cgi'>";
	sText = sText + "<P><TABLE WIDTH=100% CELLPADDING=1 CELLSPACING=0 BORDER=0  BGCOLOR=#000000><TR><TD ALIGN=CENTER>";
	sText = sText + "<TABLE WIDTH=100% CELLPADDING=3 CELLSPACING=1 BORDER=0>";
	sText = sText + "<TR VALIGN=TOP ALIGN=CENTER>";
	sText = sText + "  <TD BGCOLOR=#FFF090 id=mainBody><B>";
	sText = sText + "	<FONT SIZE=+1>xe.com&nbsp;</FONT>";
	sText = sText + "	Universal Currency Converter&#153;";
	sText = sText + "  </B></TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR VALIGN=TOP ALIGN=CENTER>";
	sText = sText + "  <TD VALIGN=MIDDLE ALIGN=CENTER BGCOLOR=#FFFFFF>";
	sText = sText + "  <TABLE CELLSPACING=3 CELLPADDING=2 BORDER=0 WIDTH=100%><TR>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody>";
	sText = sText + "<A HREF='http://www.xe.com/'><IMG SRC='http://www.xe.com/gen/illegal2copy-w.gif' WIDTH=45 HEIGHT=45 BORDER=0 ALT='UCC'></A><BR>";
	sText = sText + "	<!XERC-UCC1-P1.1-R1>";
	sText = sText + "	<B>Convert this amount</B>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR VALIGN=TOP ALIGN=CENTER>";
	sText = sText + "  <TD id=mainBody>";
	sText = sText + "	<INPUT TYPE='text' NAME='Amount' VALUE='1' SIZE=10><BR>";
	sText = sText + "	<!XERC-UCC1-P1.2-R2>";
	sText = sText + "	<FONT SIZE=-2><B>(enter any amount)</B></FONT>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody>";
	sText = sText + "	<!XERC-UCC1-P1.3-R1>";
	sText = sText + "	<B>of this type of currency</B>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody><FONT SIZE=-1>";
	sText = sText + "	<SELECT NAME='From' SIZE=5>";
	sText = sText + "	  <OPTION VALUE='USD'>USD United States Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='EUR' SELECTED>EUR Euro</OPTION>";
	sText = sText + "	  <OPTION VALUE='GBP'>GBP United Kingdom Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='JPY'>JPY Japan Yen</OPTION>";
	sText = sText + "	  <OPTION VALUE='DZD'>DZD Algeria Dinars</OPTION>";
	sText = sText + "	  <OPTION VALUE='ARS'>ARS Argentina Pesos</OPTION>";
	sText = sText + "	  <OPTION VALUE='AUD'>AUD Australia Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='ATS'>ATS Austria Schillings</OPTION>";
	sText = sText + "	  <OPTION VALUE='BSD'>BSD Bahamas Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='BBD'>BBD Barbados Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='BEF'>BEF Belgium Francs</OPTION>";
	sText = sText + "	  <OPTION VALUE='BMD'>BMD Bermuda Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='BRL'>BRL Brazil Real</OPTION>";
	sText = sText + "	  <OPTION VALUE='BGL'>BGL Bulgaria Leva</OPTION>";
	sText = sText + "	  <OPTION VALUE='CAD'>CAD Canada Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='CLP'>CLP Chile Pesos</OPTION>";
	sText = sText + "	  <OPTION VALUE='CNY'>CNY China Yuan Renminbi</OPTION>";
	sText = sText + "	  <OPTION VALUE='CYP'>CYP Cyprus Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='CZK'>CZK Czech Republic Koruny</OPTION>";
	sText = sText + "	  <OPTION VALUE='DKK'>DKK Denmark Kroner</OPTION>";
	sText = sText + "	  <OPTION VALUE='NLG'>NLG Dutch (Netherlands) Guilders</OPTION>";
	sText = sText + "	  <OPTION VALUE='XCD'>XCD Eastern Caribbean Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='EGP'>EGP Egypt Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='EUR'>EUR Euro</OPTION>";
	sText = sText + "	  <OPTION VALUE='FJD'>FJD Fiji Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='FIM'>FIM Finland Markkaa</OPTION>";
	sText = sText + "	  <OPTION VALUE='FRF'>FRF France Francs</OPTION>";
	sText = sText + "	  <OPTION VALUE='DEM'>DEM Germany Deutsche Marks</OPTION>";
	sText = sText + "	  <OPTION VALUE='XAU'>XAU Gold Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='GRD'>GRD Greece Drachmae</OPTION>";
	sText = sText + "	  <OPTION VALUE='HKD'>HKD Hong Kong Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='NLG'>NLG Holland (Netherlands) Guilders</OPTION>";
	sText = sText + "	  <OPTION VALUE='HUF'>HUF Hungary Forint</OPTION>";
	sText = sText + "	  <OPTION VALUE='ISK'>ISK Iceland Kronur</OPTION>";
	sText = sText + "	  <OPTION VALUE='INR'>INR India Rupees</OPTION>";
	sText = sText + "	  <OPTION VALUE='IDR'>IDR Indonesia Rupiahs</OPTION>";
	sText = sText + "	  <OPTION VALUE='IEP'>IEP Ireland Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='ILS'>ILS Israel New Shekels</OPTION>";
	sText = sText + "	  <OPTION VALUE='ITL'>ITL Italy Lire</OPTION>";
	sText = sText + "	  <OPTION VALUE='JMD'>JMD Jamaica Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='JPY'>JPY Japan Yen</OPTION>";
	sText = sText + "	  <OPTION VALUE='JOD'>JOD Jordan Dinars</OPTION>";
	sText = sText + "	  <OPTION VALUE='KRW'>KRW Korea (South) Won</OPTION>";
	sText = sText + "	  <OPTION VALUE='LBP'>LBP Lebanon Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='LUF'>LUF Luxembourg Francs</OPTION>";
	sText = sText + "	  <OPTION VALUE='MYR'>MYR Malaysia Ringgits</OPTION>";
	sText = sText + "	  <OPTION VALUE='MXN'>MXN Mexico Pesos</OPTION>";
	sText = sText + "	  <OPTION VALUE='NLG'>NLG Netherlands Guilders</OPTION>";
	sText = sText + "	  <OPTION VALUE='NZD'>NZD New Zealand Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='NOK'>NOK Norway Kroner</OPTION>";
	sText = sText + "	  <OPTION VALUE='PKR'>PKR Pakistan Rupees</OPTION>";
	sText = sText + "	  <OPTION VALUE='XPD'>XPD Palladium Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='PHP'>PHP Philippines Pesos</OPTION>";
	sText = sText + "	  <OPTION VALUE='XPT'>XPT Platinum Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='PLN'>PLN Poland Zlotych</OPTION>";
	sText = sText + "	  <OPTION VALUE='PTE'>PTE Portugal Escudos</OPTION>";
	sText = sText + "	  <OPTION VALUE='ROL'>ROL Romania Lei</OPTION>";
	sText = sText + "	  <OPTION VALUE='RUR'>RUR Russia Rubles</OPTION>";
	sText = sText + "	  <OPTION VALUE='SAR'>SAR Saudi Arabia Riyals</OPTION>";
	sText = sText + "	  <OPTION VALUE='XAG'>XAG Silver Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='SGD'>SGD Singapore Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='SKK'>SKK Slovakia Koruny</OPTION>";
	sText = sText + "	  <OPTION VALUE='ZAR'>ZAR South Africa Rand</OPTION>";
	sText = sText + "	  <OPTION VALUE='KRW'>KRW South Korea Won</OPTION>";
	sText = sText + "	  <OPTION VALUE='ESP'>ESP Spain Pesetas</OPTION>";
	sText = sText + "	  <OPTION VALUE='XDR'>XDR Special Drawing Rights (IMF)</OPTION>";
	sText = sText + "	  <OPTION VALUE='SDD'>SDD Sudan Dinars</OPTION>";
	sText = sText + "	  <OPTION VALUE='SEK'>SEK Sweden Kronor</OPTION>";
	sText = sText + "	  <OPTION VALUE='CHF'>CHF Switzerland Francs</OPTION>";
	sText = sText + "	  <OPTION VALUE='TWD'>TWD Taiwan New Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='THB'>THB Thailand Baht</OPTION>";
	sText = sText + "	  <OPTION VALUE='TTD'>TTD Trinidad and Tobago Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='TRL'>TRL Turkey Liras</OPTION>";
	sText = sText + "	  <OPTION VALUE='GBP'>GBP United Kingdom Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='USD'>USD United States Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='VEB'>VEB Venezuela Bolivares</OPTION>";
	sText = sText + "	  <OPTION VALUE='ZMK'>ZMK Zambia Kwacha</OPTION>";
	sText = sText + "	  <OPTION VALUE='EUR'>EUR Euro</OPTION>";
	sText = sText + "	  <OPTION VALUE='XCD'>XCD Eastern Caribbean Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='XDR'>XDR Special Drawing Right (IMF)</OPTION>";
	sText = sText + "	  <OPTION VALUE='XAG'>XAG Silver Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='XAU'>XAU Gold Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='XPD'>XPD Palladium Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='XPT'>XPT Platinum Ounces</OPTION>";
	sText = sText + "	</SELECT><BR>";
	sText = sText + "	<!XERC-UCC1-P1.4-R2>";
	sText = sText + "	<FONT SIZE=-2><B>(scroll down to see more currencies)</B></FONT>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody>";
	sText = sText + "	<!XERC-UCC1-P1.5-R1>";
	sText = sText + "	<B>into this type of currency.</B>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody><FONT SIZE=-1>";
	sText = sText + "	<SELECT NAME='To' SIZE=5>";
	sText = sText + "	  <OPTION VALUE='USD'>USD United States Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='EUR'>EUR Euro</OPTION>";
	sText = sText + "	  <OPTION VALUE='GBP' SELECTED>GBP United Kingdom Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='JPY'>JPY Japan Yen</OPTION>";
	sText = sText + "	  <OPTION VALUE='DZD'>DZD Algeria Dinars</OPTION>";
	sText = sText + "	  <OPTION VALUE='ARS'>ARS Argentina Pesos</OPTION>";
	sText = sText + "	  <OPTION VALUE='AUD'>AUD Australia Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='ATS'>ATS Austria Schillings</OPTION>";
	sText = sText + "	  <OPTION VALUE='BSD'>BSD Bahamas Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='BBD'>BBD Barbados Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='BEF'>BEF Belgium Francs</OPTION>";
	sText = sText + "	  <OPTION VALUE='BMD'>BMD Bermuda Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='BRL'>BRL Brazil Real</OPTION>";
	sText = sText + "	  <OPTION VALUE='BGL'>BGL Bulgaria Leva</OPTION>";
	sText = sText + "	  <OPTION VALUE='CAD'>CAD Canada Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='CLP'>CLP Chile Pesos</OPTION>";
	sText = sText + "	  <OPTION VALUE='CNY'>CNY China Yuan Renminbi</OPTION>";
	sText = sText + "	  <OPTION VALUE='CYP'>CYP Cyprus Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='CZK'>CZK Czech Republic Koruny</OPTION>";
	sText = sText + "	  <OPTION VALUE='DKK'>DKK Denmark Kroner</OPTION>";
	sText = sText + "	  <OPTION VALUE='NLG'>NLG Dutch (Netherlands) Guilders</OPTION>";
	sText = sText + "	  <OPTION VALUE='XCD'>XCD Eastern Caribbean Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='EGP'>EGP Egypt Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='EUR'>EUR Euro</OPTION>";
	sText = sText + "	  <OPTION VALUE='FJD'>FJD Fiji Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='FIM'>FIM Finland Markkaa</OPTION>";
	sText = sText + "	  <OPTION VALUE='FRF'>FRF France Francs</OPTION>";
	sText = sText + "	  <OPTION VALUE='DEM'>DEM Germany Deutsche Marks</OPTION>";
	sText = sText + "	  <OPTION VALUE='XAU'>XAU Gold Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='GRD'>GRD Greece Drachmae</OPTION>";
	sText = sText + "	  <OPTION VALUE='HKD'>HKD Hong Kong Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='NLG'>NLG Holland (Netherlands) Guilders</OPTION>";
	sText = sText + "	  <OPTION VALUE='HUF'>HUF Hungary Forint</OPTION>";
	sText = sText + "	  <OPTION VALUE='ISK'>ISK Iceland Kronur</OPTION>";
	sText = sText + "	  <OPTION VALUE='INR'>INR India Rupees</OPTION>";
	sText = sText + "	  <OPTION VALUE='IDR'>IDR Indonesia Rupiahs</OPTION>";
	sText = sText + "	  <OPTION VALUE='IEP'>IEP Ireland Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='ILS'>ILS Israel New Shekels</OPTION>";
	sText = sText + "	  <OPTION VALUE='ITL'>ITL Italy Lire</OPTION>";
	sText = sText + "	  <OPTION VALUE='JMD'>JMD Jamaica Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='JPY'>JPY Japan Yen</OPTION>";
	sText = sText + "	  <OPTION VALUE='JOD'>JOD Jordan Dinars</OPTION>";
	sText = sText + "	  <OPTION VALUE='KRW'>KRW Korea (South) Won</OPTION>";
	sText = sText + "	  <OPTION VALUE='LBP'>LBP Lebanon Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='LUF'>LUF Luxembourg Francs</OPTION>";
	sText = sText + "	  <OPTION VALUE='MYR'>MYR Malaysia Ringgits</OPTION>";
	sText = sText + "	  <OPTION VALUE='MXN'>MXN Mexico Pesos</OPTION>";
	sText = sText + "	  <OPTION VALUE='NLG'>NLG Netherlands Guilders</OPTION>";
	sText = sText + "	  <OPTION VALUE='NZD'>NZD New Zealand Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='NOK'>NOK Norway Kroner</OPTION>";
	sText = sText + "	  <OPTION VALUE='PKR'>PKR Pakistan Rupees</OPTION>";
	sText = sText + "	  <OPTION VALUE='XPD'>XPD Palladium Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='PHP'>PHP Philippines Pesos</OPTION>";
	sText = sText + "	  <OPTION VALUE='XPT'>XPT Platinum Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='PLN'>PLN Poland Zlotych</OPTION>";
	sText = sText + "	  <OPTION VALUE='PTE'>PTE Portugal Escudos</OPTION>";
	sText = sText + "	  <OPTION VALUE='ROL'>ROL Romania Lei</OPTION>";
	sText = sText + "	  <OPTION VALUE='RUR'>RUR Russia Rubles</OPTION>";
	sText = sText + "	  <OPTION VALUE='SAR'>SAR Saudi Arabia Riyals</OPTION>";
	sText = sText + "	  <OPTION VALUE='XAG'>XAG Silver Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='SGD'>SGD Singapore Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='SKK'>SKK Slovakia Koruny</OPTION>";
	sText = sText + "	  <OPTION VALUE='ZAR'>ZAR South Africa Rand</OPTION>";
	sText = sText + "	  <OPTION VALUE='KRW'>KRW South Korea Won</OPTION>";
	sText = sText + "	  <OPTION VALUE='ESP'>ESP Spain Pesetas</OPTION>";
	sText = sText + "	  <OPTION VALUE='XDR'>XDR Special Drawing Rights (IMF)</OPTION>";
	sText = sText + "	  <OPTION VALUE='SDD'>SDD Sudan Dinars</OPTION>";
	sText = sText + "	  <OPTION VALUE='SEK'>SEK Sweden Kronor</OPTION>";
	sText = sText + "	  <OPTION VALUE='CHF'>CHF Switzerland Francs</OPTION>";
	sText = sText + "	  <OPTION VALUE='TWD'>TWD Taiwan New Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='THB'>THB Thailand Baht</OPTION>";
	sText = sText + "	  <OPTION VALUE='TTD'>TTD Trinidad and Tobago Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='TRL'>TRL Turkey Liras</OPTION>";
	sText = sText + "	  <OPTION VALUE='GBP'>GBP United Kingdom Pounds</OPTION>";
	sText = sText + "	  <OPTION VALUE='USD'>USD United States Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='VEB'>VEB Venezuela Bolivares</OPTION>";
	sText = sText + "	  <OPTION VALUE='ZMK'>ZMK Zambia Kwacha</OPTION>";
	sText = sText + "	  <OPTION VALUE='EUR'>EUR Euro</OPTION>";
	sText = sText + "	  <OPTION VALUE='XCD'>XCD Eastern Caribbean Dollars</OPTION>";
	sText = sText + "	  <OPTION VALUE='XDR'>XDR Special Drawing Right (IMF)</OPTION>";
	sText = sText + "	  <OPTION VALUE='XAG'>XAG Silver Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='XAU'>XAU Gold Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='XPD'>XPD Palladium Ounces</OPTION>";
	sText = sText + "	  <OPTION VALUE='XPT'>XPT Platinum Ounces</OPTION>";
	sText = sText + "	</SELECT><BR>";
	sText = sText + "	<!XERC-UCC1-P1.6-R2>";
	sText = sText + "	<FONT SIZE=-2><B>(scroll down to see more currencies)</B></FONT>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD ALIGN=CENTER id=mainBody>";
	sText = sText + "	<!XERC-UCC1-P3.2-R1>";
	sText = sText + "	<INPUT VALUE='Click Here to Perform Conversion' type=submit>";
	sText = sText + "  </TD>";
	sText = sText + "</TR>";
	sText = sText + "</TABLE>";
	sText = sText + "<TR ALIGN=CENTER>";
	sText = sText + "  <TD BGCOLOR=#F0F0F0 ALIGN=CENTER id=mainBody><FONT SIZE=-1 COLOR=#808080>";
	// <!-- Important Section Start -->
	// <!-- ALL of the contents of this section are required under the usage agreement! -->
	sText = sText + "	<FONT COLOR=#808080 SIZE=-1><B>Universal Currency Converter</B> service and trade mark<br>under license from <B>xe.com</B>. <A HREF='http://www.xe.com/legal/' style='color:#808080;' target='_blank'>Terms of Use</A>";
	// <!-- Important Section Ends -->
	sText = sText + "  </FONT></TD>";
	sText = sText + "</TR>";
	sText = sText + "</TABLE>";
	sText = sText + "</TD></TR></TABLE>";

	return sText;
}
