function popUp(URL,W,H)
{
	URL = "http://" + window.location.hostname + '/' + URL
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + W + ",height=" + H +", left=25, top=25');");
}

function popUpOut(URL,W,H)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + W + ",height=" + H +", left=25, top=25');");
}

function toggleMenuShow(id)
{
	var menudepartment = 'menudepartment' + id;
	var menu_item = 'menu-item' + id;
	var div=document.getElementById(menu_item);
	if(div.className=='menu-show')
	{
		div.className='menu-hide';
	}
	else
	{
		div.className='menu-show';
	}
	var div=document.getElementById(menudepartment);
	if(div.className=='menu1selected')
	{
		div.className='menu1';
	}
	else
	{
		div.className='menu1selected';
	}
	return(false);
}


function tdw(id)
{
	return(toggleMenuShow(id));
}


function OgonePopUp(t){
window.open("", t, 'toolbar=0,scrollbars=1,location=0,status=yes,menubar=0,resizable=0,width=800,height=600, left=25, top=25');
return true;
}


function clickclear(thisfield, defaulttext)
{
	if (thisfield.value == defaulttext)
	{
		thisfield.value = "";
	}
}

function clickrecall(thisfield, defaulttext)
{
	if (thisfield.value == "")
	{
		thisfield.value = defaulttext;
	}
}

function closetellfriend(productid)
{
  top.opener.location.href = "http://" + window.location.hostname + "/page.php?productid=" + productid;
  parent.window.close();
}