//Ρ‘ΤρΛωΣΠ
function DrawImage(ImgD,w,h){ 
	var image = new Image(); 
	image.src = ImgD.src; 
	if(image.width>0 && image.height>0){ 
		flag = true; 
    	if(image.width/image.height >= w/h){ 
     		if(image.width>w){   
     			ImgD.width = w; 
     			ImgD.height = (image.height*w)/image.width; 
     		}else{ 
     			ImgD.width = image.width;   
     			ImgD.height = image.height; 
     		} 
     		ImgD.alt = image.width+"‘Α"+image.height; 
     		} 
    	else{ 
     		if(image.height>h){   
     			ImgD.height = h; 
     			ImgD.width = (image.width*h)/image.height;      
     		}else{ 
     			ImgD.width = image.width;   
     			ImgD.height = image.height; 
     		} 
     		ImgD.alt = image.width+"‘Α"+image.height; 
     	} 
    } 
}
function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
}
function blueit(intID,fcolor)  { 
	selTR=eval("tr"+intID); 
	if(selTR.style.backgroundColor!=fcolor) 
    	selTR.style.backgroundColor=fcolor
} 
function lostit(intID,fcolor)  { 
	selTR=eval("tr"+intID); 
    	if(selTR.style.backgroundColor!=fcolor) 
    	selTR.style.backgroundColor=fcolor
}
function PublicOpenWin(URL,WinName,w,h){
	var putItThere = null; 
	var chasm = screen.availWidth;
	var mount = screen.availHeight;
	win = window.open(URL,WinName,'width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5)+',toolbar=no,scrollbars=yes,resizable=0,menubar=no');
}
function IsNumber()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
