/**
* show or hide div 'element' when clicking div 'link'
*/

function showHide(element, link){
	if(document.getElementById(element).style.display == 'none'){
		// show div	
		document.getElementById(element).style.display = 'block';
		link.setAttribute('class','active');
		link.setAttribute('className','active'); // works with IE
		
		//if(document.getElementById('productFamily') != null)
		//	document.getElementById('productFamily').style.visibility="hidden";

		document.getElementById('ctl00_OrasHeader_btnFavorites').click()
		return 0;

	} else {
		// hide div
		document.getElementById(element).style.display = 'none';
		link.removeAttribute('class');
		link.removeAttribute('className'); // works with IE
		
		//if(document.getElementById('productFamily') != null)
		//	document.getElementById('productFamily').style.visibility="visible";
	}
}

function disableSelection(element) {

	element.onselectstart = function() {
        return false;
    };
    element.unselectable = "on";
    element.style.MozUserSelect = "none";
   // element.style.cursor = "default";

}

function showEmailForm(element){
	if(document.getElementById(element).style.display == 'none'){
		// show div	
		document.getElementById(element).style.display = 'block';
	} else {
		// hide div
		document.getElementById(element).style.display = 'none';
	}
}

function printFavorites(url)
{
   	var PreviewWindow;
	PreviewWindow = window.open(url,widht=400,height=200,scrollbars='no',toolbar='no',directories='no',status='no',menubar='no');
	PreviewWindow.print();
	return 0;
}
