function changeSubmitSrc(form,control,src) {
//	eval("document.images['"+img+"'].src='"+src+"'");
//	eval("document."+form+"."+control+".src='"+src+"'");
	control.src = src;
}

function changeImgSrc(img,src) {
	img.src=src;
//	eval("document.images['"+img+"'].src='"+src+"'");
}


function setPointer2(theRow, thePointerColor)
        {
        if (thePointerColor == '' || typeof(theRow.style) == 'undefined')
                {
                return false;
                }
        if (typeof(document.getElementsByTagName) != 'undefined')
                {
                var theCells = theRow.getElementsByTagName('td');
				var theLinks = theRow.getElementsByTagName('a'); 
                }
        else if (typeof(theRow.cells) != 'undefined')
                {
                var theCells = theRow.cells;
                }
        else
                {
                return false;
                }
        var rowCellsCnt  = theCells.length;
		var rowLinksCnt  = theLinks.length;
        for (var c = 0; c < rowCellsCnt; c++)
                {
                theCells[c].style.color = thePointerColor;
                }
        for (var c = 0; c < rowLinksCnt; c++)
			{				
				theLinks[c].style.color = thePointerColor;				
			}	
        return true;
        }


function DoShopping(shop_action, action, partid, formname){
	eval('formname = '+formname);
    formname.action = action;
    formname.shop_action.value = shop_action;
	formname.part_id.value = partid;	

	formname.submit();
} 


function show_image(image, xsize, ysize){
	xsize=xsize+100;
	ysize=ysize+100;
	windowVar = window.open("/show_picture.php?ImageSrc="+image, "Image","width="+xsize+",height="+ysize+",scrollbars=1,screenX=200,screenY=200,location=0,resizable=0,status=0,toolbar=0,menubar=0",false);
}
