﻿
function checknumber(String) 
  { 
  var Letters = "1234567890"; 
  var i; 
  var c; 
  for( i = 0; i < String.length; i ++ ) 
  { 
  c = String.charAt( i ); 
  if (Letters.indexOf( c ) ==-1) 
  { 
  return true; 
  } 
  }
   return false; 
   } 
 
  
  
  
  function DrawImage(ImgD,ImgDWidth,ImgDHeight){
	var image=new Image();
	image.src=ImgD.src;
	if(image.width/image.height>=ImgDWidth/ImgDHeight){
		if(image.width>ImgDWidth){
			ImgD.width=ImgDWidth;
			ImgD.height=(image.height*ImgDWidth)/image.width;
		}else{
			ImgD.width=image.width;
			ImgD.height=image.height;
		}
	}else{
		if(image.height>ImgDHeight){
			ImgD.width=(image.width*ImgDHeight)/image.height;
			ImgD.height=ImgDHeight;
		}else{
			ImgD.width=image.width;
			ImgD.height=image.height;
		}
	}
}
  
  
  
function menushow(obj,allnum,oname){
	if(obj.style.display=="none"){
		
		obj.style.display="block";
	}else{
		obj.style.display="none";
	}
}
