
/*
function ScreenWidth(){
if ((screen.width==1024) && (screen.height==768)){
   Pz_ImgWidth=1024;
   Pz_ImgHeight=768;}   
 else{
   if ((screen.width==800) && (screen.height==600)){
     Pz_ImgWidth=800;
     Pz_ImgHeight=600;}  
  }
//}
if ((screen.width==1280) && (screen.height==1024)){
   Pz_ImgWidth=1280;
   Pz_ImgHeight=1024;}   
  
}
*/


//var flag=false;
function DrawImage(ImgD){
var Pz_ImgWidth,Pz_ImgHeight;
Pz_ImgWidth=0;
Pz_ImgHeight=0;
Pz_ImgWidth=screen.width;
Pz_ImgHeight=screen.height;
var image=new Image();
image.src=ImgD.src;
ImgD.width=Pz_ImgWidth;
ImgD.height=(image.height*Pz_ImgWidth)/image.width; 

/*
if(image.width>0 && image.height>0){
   flag=true;
   if(image.width/image.height>=Pz_ImgWidth/Pz_ImgHeight){
 if(image.width>Pz_ImgWidth){
   ImgD.width=Pz_ImgWidth;
   ImgD.height=(image.height*Pz_ImgWidth)/image.width;}       
  else{
   //ImgD.width=image.width;
   ImgD.width=Pz_ImgWidth;
   ImgD.height=(Pz_ImgHeight*Pz_ImgWidth)/image.width;}  
     //ImgD.alt=image.width+"×"+image.height;
	 }   
   else{
 if(image.height>Pz_ImgHeight){
   ImgD.height=Pz_ImgHeight;
   ImgD.width=(image.width*Pz_ImgHeight)/image.height;}  
 else{
   ImgD.width=(Pz_ImgWidth*Pz_ImgHeight)/image.height;
   ImgD.height=Pz_ImgHeight;}
   //ImgD.alt=image.width+"×"+image.height; 
   }
   }
   */
}
