function doClick(open_page, in_target){
    window.open(open_page, in_target);
}

function open_pic(page,w,h){
	win=window.open (page,'pic','resizable=no,menubar=no,status=no,scrollbars=no, center=yes, width="+w+",height="+h+" onBlur="self.close()"');
	win.resizeTo(w,h);
    
} 

function new_win1(page,w,h){
	win=window.open(page,'pic','resizable=no,menubar=no,status=no,scrollbars=yes, center=yes, width="+w+",height="+h+"');
	win.resizeTo(w.h);
                  
} 

function new_win3(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);

}

function openWin (imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
function BrandCellMouseOver(brandCell)
{
    var a = GetChildElement(GetChildElement(brandCell, 0), 0);
    brandCell.style.backgroundColor = '#0059b3';
}

function BrandCellMouseOut(brandCell)
{
    var a = GetChildElement(GetChildElement(brandCell, 0), 0);
    brandCell.style.backgroundColor = '';
}

function SActiveBrandCellMouseOver(brandCell)
{
    var div = GetChildElement(brandCell, 0);
    var a = GetChildElement(div, 0);
    brandCell.style.backgroundColor = '#c50000';
    div.style.borderTop='#c50000 solid 1px';
    div.style.borderBottom='#c50000 solid 1px';
    a.style.color = '#ffffff';
}

function SActiveBrandCellMouseOut(brandCell)
{
    var div = GetChildElement(brandCell, 0);
    var a = GetChildElement(div, 0);
    brandCell.style.backgroundColor = '';
    div.style.borderTop='#e0e0e0 solid 1px';
    div.style.borderBottom='#e0e0e0 solid 1px';
    a.style.color = '';
}

function SerieCellMouseOver(serieCell)
{
    var div = GetChildElement(serieCell, 0);
    var a = GetChildElement(div, 0);
    serieCell.style.backgroundColor = '#0059b3';
    div.style.borderTop='#0059b3 solid 1px';
    div.style.borderBottom='#0059b3 solid 1px';
    div.style.borderRight='#0059b3 solid 1px';
    a.style.color = '#ffffff';
}

function SerieCellMouseOut(serieCell)
{
    var div = GetChildElement(serieCell, 0);
    var a = GetChildElement(div, 0);
    serieCell.style.backgroundColor = '';
    div.style.borderTop='#e0e0e0 solid 1px';
    div.style.borderBottom='#e0e0e0 solid 1px';
    div.style.borderRight='#e0e0e0 solid 1px';
    a.style.color = '';
}

function SActiveSerieCellMouseOver(serieCell)
{
    var div = GetChildElement(serieCell, 0);
    var a = GetChildElement(div, 0);
    serieCell.style.backgroundColor = '#c50000';
    div.style.borderTop='#c50000 solid 1px';
    div.style.borderBottom='#c50000 solid 1px';
    div.style.borderRight='#c50000 solid 1px';
    a.style.color = '#ffffff';
}

function SActiveSerieCellMouseOut(serieCell)
{
    var div = GetChildElement(serieCell, 0);
    var a = GetChildElement(div, 0);
    serieCell.style.backgroundColor = '';
    div.style.borderTop='#ffffff solid 1px';
    div.style.borderBottom='#ffffff solid 1px';
    div.style.borderRight='#ffffff solid 1px';
    a.style.color = '';
}

