<!--
function displayWindowViewImage() { window.open('../'+document.transfer.transfer1.value+'','view_image','width=655,height=580,scrollbars=yes,resizable=yes'); }
function displayWindowStoProductDetail() { window.open('../'+document.transfer.transfer1.value+'','product_detail','width=350,height=300,scrollbars=yes,resizable=yes'); }
function displayWindowThemeBrowser() { window.open(''+document.transfer.transfer1.value+'','theme_browser','width=580,height=450,scrollbars=yes,resizable=yes'); }
function displayWindowNewsMaker() { window.open('../'+document.transfer.transfer1.value+'','news_maker','width=500,height=500,scrollbars=yes,resizable=yes'); }
function displayWindowSiteSetup() { window.open('../'+document.transfer.transfer1.value+'','site_setup','width=520,height=595,scrollbars=yes,resizable=yes'); }
function displayWindowSiteMap() { window.open('../'+document.transfer.transfer1.value+'','site_map','width=450,height=595,scrollbars=yes,resizable=yes'); }
function displayWindowPageSetup() { window.open('../'+document.transfer.transfer1.value+'','page_setup','width=500,height=520,scrollbars=yes,resizable=yes'); }
function displayWindowContainerSetup() { window.open('../'+document.transfer.transfer1.value+'','container_setup','width=520,height=650,scrollbars=yes,resizable=yes'); }
function displayWindowContentSetup() { window.open('../'+document.transfer.transfer1.value+'','content_setup','width=500,height=500,scrollbars=yes,resizable=yes'); }
function displayWindowOrderSetup() { window.open('../'+document.transfer.transfer1.value+'','order_setup','width=450,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowViewLog() { window.open('../'+document.transfer.transfer1.value+'','log_view','width=500,height=400,scrollbars=yes,resizable=yes'); }
function displayWindowUserSetup() { window.open('../'+document.transfer.transfer1.value+'','user_setup','width=520,height=600,scrollbars=yes,resizable=yes'); }
function displayWindowHelp() { window.open('../'+document.transfer.transfer1.value+'','help','width=500,height=400,scrollbars=yes,resizable=yes'); }
function displayWindowPhotoSetup() { window.open('../'+document.transfer.transfer1.value+'','photo_setup','width=500,height=400,scrollbars=yes,resizable=yes'); }
function displayWindowTopicSetup() { window.open('../'+document.transfer.transfer1.value+'','topic_setup','width=540,height=500,scrollbars=yes,resizable=yes'); }
function displayWindowPersonSetup() { window.open('../'+document.transfer.transfer1.value+'','person_setup','width=540,height=500,scrollbars=yes,resizable=yes'); }
function displayWindowSecuritySetup() { window.open('../'+document.transfer.transfer1.value+'','security_setup','width=450,height=450,scrollbars=yes,resizable=yes'); }
function displayWindowQuickPollItemSetup() { window.open('../'+document.transfer.transfer1.value+'','quickpollitem_setup','width=450,height=250,scrollbars=yes,resizable=yes'); }
function displayWindowPollSetup() { window.open('../'+document.transfer.transfer1.value+'','poll_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowAreaManager() { window.open('../'+document.transfer.transfer1.value+'','area_manager','width=500,height=400,scrollbars=yes,resizable=yes'); }
function displayWindowSubcustomer() { window.open('../'+document.transfer.transfer1.value+'','subcustomer','width=500,height=450,scrollbars=yes,resizable=yes'); }
function displayWindowCustomer() { window.open('../'+document.transfer.transfer1.value+'','customer','width=500,height=450,scrollbars=yes,resizable=yes'); }
function displayWindowRatingManager() { window.open('../'+document.transfer.transfer1.value+'','rating_manager','width=500,height=500,scrollbars=yes,resizable=yes'); }
function displayWindowPopupManager() { window.open('../'+document.transfer.transfer1.value+'','popup_manager','width=500,height=500,scrollbars=yes,resizable=yes'); }
function displayWindowStoSetup() { window.open('../'+document.transfer.transfer1.value+'','sto_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowStoreMap() { window.open('../'+document.transfer.transfer1.value+'','store_map','width=450,height=520,scrollbars=yes,resizable=yes'); }
function displayWindowDeptSetup() { window.open('../'+document.transfer.transfer1.value+'','dept_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowProductSetup() { window.open('../'+document.transfer.transfer1.value+'','product_setup','width=520,height=480,scrollbars=yes,resizable=yes'); }
function displayWindowFeaturedSetup() { window.open('../'+document.transfer.transfer1.value+'','sto_featured_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowStoColorSetup() { window.open('../'+document.transfer.transfer1.value+'','sto_color_setup','width=400,height=300,scrollbars=yes,resizable=yes'); }
function displayWindowStoSizeSetup() { window.open('../'+document.transfer.transfer1.value+'','sto_size_setup','width=400,height=300,scrollbars=yes,resizable=yes'); }
function displayWindowStoWidthSetup() { window.open('../'+document.transfer.transfer1.value+'','sto_width_setup','width=400,height=300,scrollbars=yes,resizable=yes'); }
function displayWindowStoCouponSetup() { window.open('../'+document.transfer.transfer1.value+'','sto_coupon_setup','width=525,height=400,scrollbars=yes,resizable=yes'); }
function displayWindowStoSalesTaxSetup() { window.open('../'+document.transfer.transfer1.value+'','sto_sales_tax_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowStoSalesReports() { window.open('../'+document.transfer.transfer1.value+'','sto_sales_reports','width=520,height=580,scrollbars=yes,resizable=yes'); }
function displayWindowFormManager() { window.open('../'+document.transfer.transfer1.value+'','form_manager','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowCalendarManager() { window.open('../'+document.transfer.transfer1.value+'','divcal_date_admin','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindoweCardSetup() { window.open('../'+document.transfer.transfer1.value+'','ecard_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowScheduleSetup() { window.open('../'+document.transfer.transfer1.value+'','schedule_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowFeedList() { window.open('../'+document.transfer.transfer1.value+'','schedule_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowContactGroupEdit() { window.open('../'+document.transfer.transfer1.value+'','contact_group_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowContactEdit() { window.open('../'+document.transfer.transfer1.value+'','contact_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowECardEdit() { window.open('../'+document.transfer.transfer1.value+'','ecard_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowAssetManager() { window.open('../'+document.transfer.transfer1.value+'','ass_man','width=550,height=400,scrollbars=yes,resizable=yes'); }
function displayWindowKeywordSetup() { window.open('../'+document.transfer.transfer1.value+'','keyword_setup','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowForumManager() { window.open('../'+document.transfer.transfer1.value+'','forum_manager','width=500,height=350,scrollbars=yes,resizable=yes'); }
function displayWindowForumPost() { window.open('../'+document.transfer.transfer1.value+'','forum_post','width=510,height=300,scrollbars=yes,resizable=yes'); }
function displayWindowDropDownManager() { window.open('../'+document.transfer.transfer1.value+'','forum_post','width=510,height=300,scrollbars=yes,resizable=yes'); }
function displayWindowShippingSetup() { window.open('../'+document.transfer.transfer1.value+'','shipping_setup','width=500,height=300,scrollbars=yes,resizable=yes'); }

function deleteConfirm(my_warning)
{
	if(!my_warning) { my_warning = 'Are you sure you want to do this?'; }
	return confirm(my_warning);
}

function displayWindow(theurl, thewindowname, doihavescrollbars, thewidth, theheight, amiresizable)
{
	if (!thewindowname) { thewindowname = 'Untitled'; }
	if (!doihavescrollbars) { doihavescrollbars = 'yes'; }
	if (!thewidth) { thewidth = 500; }
	if (!theheight) { theheight = 500; }
	if (!amiresizable) { amiresizable = 'yes'; }
	window.open(theurl, thewindowname, 'width='+thewidth+',height='+theheight+',scrollbars='+doihavescrollbars+',resizable='+amiresizable);
}

function setPointer(theRow, thePointerColor)
{
	if (thePointerColor == '' || typeof(theRow.style) == 'undefined') { return false; }
	if (typeof(document.getElementsByTagName) != 'undefined') { var theCells = theRow.getElementsByTagName('td'); }
	else if (typeof(theRow.cells) != 'undefined') { var theCells = theRow.cells; }
	else { return false; }
	var rowCellsCnt  = theCells.length;
	for (var c = 0; c < rowCellsCnt; c++) { theCells[c].style.backgroundColor = thePointerColor; }
	return true;
}

function hideObject(xObject)
{
	document.all ? document.all(xObject).style.visibility="hidden":document.getElementById(xObject).style.visibility="hidden";
}	

function showObject(xObject)
{
	document.all ? document.all(xObject).style.visibility="visible":document.getElementById(xObject).style.visibility="visible";
}

function togglePane(xObject, xImage)
{
	/*
	if (document.all)
	{
		object = document.all(xObject);
	}
	else
	{
		object = document.getElementById(xObject);
	}
	*/
	if (document.getElementById(xObject).style.display == 'none')
	{
		document.getElementById(xObject).style.display = 'block';
		//object.style.display = 'block';
		changeImg(xImage, disclosureDownGif.src);
	}
	else
	{
		document.getElementById(xObject).style.display = 'none';
		//object.style.display = 'none';
		changeImg(xImage, disclosureRightGif.src);
	}
}

// AJAX Code
// HTTP Request Object Generator
function createRequestObject()
{
	var ro = window.XMLHttpRequest ?
		new XMLHttpRequest() :
		new ActiveXObject("Microsoft.XMLHTTP");
	return ro;
}

var xmlhttp = createRequestObject();

// Sets the handler for the current request.
function setHandler(handler)
{
	if (handler && handler != '')
	{
		xmlhttp.onreadystatechange = function()
		{
			if (xmlhttp.readyState == 4)
			{
				handler();
			}
		}
	}
	else
	{
		xmlhttp.onreadystatechange = function()
		{
		}
	}
}

// Generic request/responce function using get request method.
function httpGet(url, get, handler)
{
	if (get & get != '')
	{
		url = url+'?'+get;
	}
	
	if (!handler)
	{
		handler = '';
	}
	
	xmlhttp.open('get', url);
	setHandler(handler);
	xmlhttp.send(null);
}

// Generic request/response function using post request method.
function httpPost(url, post, handler)
{
	if (!handler)
	{
		handler = '';
	}
	
	xmlhttp.open('post', url, true);
	xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
	setHandler(handler);
	xmlhttp.send(post);
}

function getPos(elmnt, pos)
{
	var val = 0;
	var obj = elmnt;
	var safari = navigator.userAgent.toLowerCase().indexOf('safari') > -1;
	
	if (pos == 'top' || pos == 'bottom')
	{
		if (obj.y)
		{
			val = obj.y;
		}
		else
		{
			while (obj)
			{
				if (obj.offsetTop == 0 && obj.offsetLeft == 0 && safari)
				{
					obj = obj.parentNode;
				}
				else
				{
					val += obj.offsetTop || 0;
					obj = obj.offsetParent;
				}
			}
		}
		if (pos == 'bottom')
		{
			val += elmnt.offsetHeight || elmnt.height || 0;
		}
	}
	else if (pos == 'left' || pos == 'right')
	{
		if (obj.x)
		{
			val = obj.x;
		}
		else
		{
			while (obj)
			{
				if (obj.offsetLeft == 0 && obj.offsetTop == 0 && safari)
				{
					obj = obj.parentNode;
				}
				else
				{
					val += obj.offsetLeft || 0;
					obj = obj.offsetParent;
				}
			}
		}
		if (pos == 'right')
		{
			val += elmnt.offsetWidth || elmnt.width || 0;
		}
	}
	
	return val;
}

function hide_menu(elmnt)
{
	if (typeof elmnt == 'string')
	{
		elmnt = document.getElementById(elmnt);
	}
	
	elmnt.style.visibility = 'hidden';
}

function show_menu(elmnt, relative)
{
	if (typeof elmnt == 'string')
	{
		elmnt = document.getElementById(elmnt);
	}
	
	if (relative)
	{
		if (typeof relative == 'string')
		{
			relative = document.getElementById(relative);
		}
		
		elmnt.style.left = getPos(relative, 'left')+'px';
		elmnt.style.top = getPos(relative, 'bottom')+'px';
	}
	elmnt.style.visibility = 'visible';
}

js = document.createElement('script');
js.setAttribute('language', 'javascript');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', '/site/core_javascript.js');
document.getElementsByTagName('head').item(0).appendChild(js);
-->