//popup script
function popUp(strURL,strType,strHeight,strWidth)
{
	ScreenWidth  = strWidth;
	ScreenHeight = strHeight;
    sFeatures = "dialogHeight:"+ScreenHeight+"px;";
    sFeatures+= "dialogWidth:"+ScreenWidth+"px;";
    sFeatures+= "dialogLeft:0px;";
    sFeatures+= "dialogTop:0px;";
    sFeatures+= "center:yes;dialogHide:yes;edge:raised;help:no;resizable:on;scroll:no;status:no;unadorned:yes"
    //var hWnd =   window.showModalDialog(strURL,document,sFeatures);
    //if ((document.window != null) && (!hWnd.opener))
    //hWnd.opener = document.window;
	window.open(strURL,"SpecsImage","toolbar=no, location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=" + strWidth + ",height=" + strHeight + "");
				
}

/*  To highlight the menu link */

function highlight(sobj,mobj,pobj,color,weight,ncolor,nweight)
{
	
	sobj = sobj.replace('&','&amp;');
	mobj = mobj.replace('&','&amp;');
	pobj = pobj.replace('&','&amp;');
	
	var divs = document.getElementsByTagName("a");
	
	for(dn=0,mm=0;dn<divs.length,mm<divs.length;dn++,mm++)
	{	
		if(String(divs.item(dn).id)==sobj)
		{	
			divs.item(dn).style.color=color;
			divs.item(dn).style.fontWeight=weight;
		}
		if(String(divs.item(mm).id)==mobj)
		{	
			divs.item(mm).style.color="#4B4B4D";
			divs.item(mm).style.fontWeight=weight;
		}
	}
	for(pm=0;pm<divs.length;pm++)
	{	
		if(String(divs.item(pm).id)==pobj)
		{	
			divs.item(pm).style.color=ncolor;
			divs.item(pm).style.fontWeight=nweight;
		}
		
	}
}

function highlightsample(iobj,sobj,mobj,pobj,color,weight,ncolor,nweight)
{
	
	sobj = sobj.replace('&','&amp;');
	mobj = mobj.replace('&','&amp;');
	iobj = iobj.replace('&','&amp;');
	pobj = pobj.replace('&','&amp;');
	
	var divs = document.getElementsByTagName("a");
	
	for(dn=0,mm=0;dn<divs.length,mm<divs.length;dn++,mm++)
	{	
		if(String(divs.item(dn).id)==sobj)
		{	
			divs.item(dn).style.color="#4B4B4D";
			divs.item(dn).style.fontWeight=weight;
		}
		if(String(divs.item(mm).id)==mobj)
		{	
			divs.item(mm).style.color=ncolor;
			divs.item(mm).style.fontWeight=nweight;
		}
	}
	for(im=0;im<divs.length;im++)
	{	
		if(String(divs.item(im).id)==iobj)
		{	
			divs.item(im).style.color=color;
			divs.item(im).style.fontWeight=weight;
		}
		
	}
	for(pm=0;pm<divs.length;pm++)
	{	
		if(String(divs.item(pm).id)==pobj)
		{	
			divs.item(pm).style.color=ncolor;
			divs.item(pm).style.fontWeight=nweight;
		}
		
	}
}