function change_parent_url(url)
{
	document.location=url;
}
function refresh(showfirstitem)
{
	//window.location.reload(true); //Does the whole window and WORKS PERFECTLY - but scrolls up and down so not too good
	//document.getElementByID('MainFrame').contentDocument.location.reload(true); //DOES NOT WORK
	var f=document.getElementById('MainFrame'); //These 2 lines work perfectly
	//f.src=f.src;
	f.contentWindow.refreshProductView(showfirstitem);
}
/*function turnOnEditMode(username,password)
{
	var f=document.getElementById('MainFrame'); //These 2 lines work perfectly
	f.contentWindow.toggleEditModeView(username,password,1);
}*/
function highlightObject(id,brighterColor,darkerColor,backgroundColor){
	element=document.getElementById(id);
	if(element.itemNeedsSelected==1) return;
	element.style.borderTop='6px solid #'+darkerColor;
	element.style.borderRight='6px solid #'+brighterColor;
	element.style.borderBottom='6px solid #'+brighterColor;
	element.style.borderLeft='6px solid #'+darkerColor;
	element.style.backgroundColor='#'+backgroundColor;
	element.style.cursor='pointer';
}
function unHighlightObject(id,brighterColor,darkerColor,backgroundColor){
	element=document.getElementById(id);
	if(element.itemNeedsSelected==1) return;
	element.style.borderTop='6px solid #'+brighterColor;
	element.style.borderRight='6px solid #'+darkerColor;
	element.style.borderBottom='6px solid #'+darkerColor;
	element.style.borderLeft='6px solid #'+brighterColor;
	element.style.backgroundColor='#'+backgroundColor;
	element.style.cursor='auto';
}
