function openIT() {
	theURL="heritage.html"
	wname ="CHROMELESSWIN"
	W=705;
	H=320;
	windowCERRARa 		= "images/close_a.gif"
	windowCERRARd 		= "images/close_d.gif"
	windowCERRARo 		= "images/close_o.gif"
	windowNONEgrf 		= "images/none.gif"
	windowCLOCK		= "images/clock.gif"
	windowREALtit		= "&nbsp; Task title"
	windowTIT 	    	= "<font face=arial size=2 color=#ffffff>&nbsp; Heritage of Hindustan Motors</font>"
	windowBORDERCOLOR   	= "#A080b0"
	windowBORDERCOLORsel	= "#E0BFD0"
	windowTITBGCOLOR    	= "#A080b0"
	windowTITBGCOLORsel 	= "#E0BFD0"
	openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}
function changeURL()
{
if(document.frmView.D1.value=='amby')
{
window.open("http://www.hmambassador.com")
}
if(document.frmView.D1.value=='winner')
{
window.open("http://www.hmambassador.com/winner-overview.asp")
}
if(document.frmView.D1.value=='mitsubishi')
{
window.open("http://www.mitsubishi-motors.co.in")
}
//if(document.frmView.D1.value=='rtv')
//{
//window.open("http://www.hmrtv.com")
//}
//if(document.frmView.D1.value=='exports')
//{
//window.open("http://www.hmexports.net")
//}
}
function doSave()
{
document.execCommand('SaveAs');
}
function doPrint()
{
document.execCommand('Print');
}

function openmenu(menu)
{
var IE=(document.all || document.getElementById);
var NS=(document.layers);
if(IE)
{
arrLayer=new Array('GROUP','VEHICLES','PLANTS','INVESTORS','NEWS','RSD');
for(i=0;i<arrLayer.length;i++)
		{
		if(arrLayer[i]==menu)
			eval("document.getElementById('" + arrLayer[i] + "')").style.display="";
		else
			eval("document.getElementById('" + arrLayer[i] + "')").style.display="none";
	}
}
if(NS)
{
arrLayer=new Array('GROUP','VEHICLES','PLANTS','INVESTORS','NEWS','RSD');
	for(i=0;i<arrLayer.length;i++)
		{
		if(arrLayer[i]==menu)
		document.layers[arrLayer[i]].visibility="show";
		else
		document.layers[arrLayer[i]].visibility="hide";
	}
}
document.onclick=openmenu
}
