// JavaScript Document
function menushow(menuno)
{
for(i=1;i<=100;i++)
{
	var menuno1="menu"+i
	if(i==menuno){
    document.getElementById(menuno1).style.display="";
	}else{
	 if(document.getElementById(menuno1)){
	document.getElementById(menuno1).style.display="none";
	 }
	}
}
}

function Dwh(ImgD,ImgW){ 
var image=new Image(); 
var intWidth = ImgW; 
image.src=ImgD.src; 
if((image.width*(intWidth/image.height)>intWidth) && ((intWidth/image.height)<1)) 
{     
ImgD.width=intWidth; 
ImgD.height=image.height*(intWidth/image.width); 
} 
else if((image.height*(intWidth/image.width)>intWidth) && ((intWidth/image.width)<1))
{
ImgD.height=intWidth; 
ImgD.width=image.width*(intWidth/image.height); 
}
else if(image.width>intWidth)
{
ImgD.width=intWidth; 
ImgD.height=image.height*(intWidth/image.width); 	
}
else if(image.height>intWidth)
{
ImgD.height=intWidth; 
ImgD.width=image.width*(intWidth/image.height); 
}
else
{ 
ImgD.width=image.width; 
ImgD.height=image.height; 
} 
}

function checkclick(msg){if(confirm(msg)){event.returnValue=true;}else{event.returnValue=false;}}