//Function to change page from option list
function linkURL(URL) {
	
	if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;	
	return true;
}

//Function to open pop up window
function winOpener(theURL, winName, scrollbars, resizable, width, height) {
	
	winFeatures = 'left=' + (screen.availWidth-10-width)/2 + ',top=' + (screen.availHeight-30-height)/2 + ',scrollbars=' + scrollbars + ',resizable=' + resizable + ',width=' + width + ',height=' + height + ',toolbar=0,location=0,status=1,menubar=0'
  	window.open(theURL, winName, winFeatures);
}


//以下函数用于控制图片宽度
//宽度值限定为400，如需更改请在下几行代码中寻找更改，共三处
function resizeImages() {
	
	 
          if (document.images.length > 0)          //Has images, validate sizes 
          { 
               var imgHeight; 
               var imgWidth; 
               for (var loop = 0; loop < document.images.length; loop++) 
               { 
                    if (document.images[loop].name.substring(0,6) == 'chkImg') 
                    { 
                         imgWidth = document.images[loop].width; 
                         imgHeight = document.images[loop].height; 
                          
                         if (imgWidth > 400) 
                         { 
                              document.images[loop].width = 400; 
                              //Proportionalize Height 
                              imgHeight = imgHeight / (imgWidth/400); 
                              document.images[loop].height = imgHeight; 
                         } 
                    } 
               } 
          } 

} 



