function openWindow(documentName) {
   var pp=window.open(documentName, "popup", "width=500,height=500,center,toolbar=no,location=no,directories=0,status=no,menubar=no,scrollbars=yes,resizable=yes");
}

function openWindowmap(documentName) {
   var winName = window.opener.name;
   window.open(documentName,winName,'');
}

function eFriend()  {
	u = escape(window.location);
	eSubj= "Hey take a look at this page";

	var eAdd= prompt('Enter your friend\'s email address:',' ');
	if (eAdd) {
		window.location="mailto:"+eAdd+"?subject="+eSubj+"&body="+document.title+" "+u;
	}
}

function sethomepage()
{
	this.setHomePage('http://www.valenciatrader.com');
}

/*
//faq start

if (document.getElementById){
	document.write('<style type="text/css">\n');
	document.write('.faqcontent{display:none;}\n');
	document.write('</style>\n');
}

function contractall(){
	if (document.getElementById){
		var inc=0
		while (document.getElementById("dropmsg"+inc)){
			document.getElementById("dropmsg"+inc).style.display="none";
			inc++;
		}
	}
}

function expandone(){
	if (document.getElementById){
		var selectedItem=document.dropmsgform.dropmsgoption.selectedIndex;
		contractall();
		document.getElementById("dropmsg"+selectedItem).style.display="block";
	}
}

if (window.addEventListener) {
	window.addEventListener("load", expandone, false);
} else if (window.attachEvent) {
	window.attachEvent("onload", expandone);
}
*/

function ChangeFontSize(id, size) 
{
	var iLayer=document.getElementById(id);
	iLayer.style.fontSize = size;

	var x = iLayer.getElementsByTagName("a");
	var y = iLayer.getElementsByTagName("td");
	var z = iLayer.getElementsByTagName("p");
	var t = iLayer.getElementsByTagName("font");
	var p = iLayer.getElementsByTagName("li");

	for(var i = 0; i < x.length; i++) 
	{
		x.item(i).style.fontSize = size;
	}	
	for(var i = 0; i < y.length; i++) 
	{
		y.item(i).style.fontSize = size;
	}	
	for(var i = 0; i < z.length; i++) 
	{
		z.item(i).style.fontSize = size;
	}	
	for(var i = 0; i < t.length; i++) 
	{
		t.item(i).style.fontSize = size;
	}	
	for(var i = 0; i < p.length; i++) 
	{
		p.item(i).style.fontSize = size;
	}	
}
//faq end

function makehomepage(pagelink)
{
if (document.all){
  document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'');
  document.write(pagelink);
  document.write('\');">');
  document.write('Make This Your Homepage</a>');
}

// If it's Netscape 6, tell user to drag link onto Home button
// Be sure to change the "http://www.YourWebSiteHere.com\"
// to the URL you want them to bookmark.
else if (document.getElementById){
  document.write('<a href="'+pagelink+'">To make this you home page, simply grag this link onto your Home button!</a>');
}
}
