// Show Hide Poll
function WriteFlash(flash,_width,_height) {
document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + _width + "\" height=\"" + _height + "\">");
document.writeln("   <param name=\"movie\" value=\"" + flash + "\" />");
document.writeln("   <param name=\"quality\" value=\"high\" />");
document.writeln("   <param name=\"wmode\" value=\"transparent\" />");
document.writeln("   <embed src=\"" + flash + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + _width + "\" height=\"" + _height + "\" wmode=\"transparent\"></embed>");
document.writeln("</object>");
}

//ÍË³öÏµÍ³
function closeWin(){
	window.opener=null;
	window.open('','_self',''); 
	window.close();
}

//½ûÖ¹ctrl nºÍ ½ûÖ¹ctrl rºÍ ½ûÖ¹shift f10 ½ûÖ¹Êó±êÓÒ¼üor×óÓÒ¼ü ºÍ½ûÖ¹f5
var oLastBtn=0,bIsMenu=false 
if (window.Event)
{
	document.captureEvents(Event.MOUSEUP); 
}

function nocontextmenu()
{ 
	event.cancelBubble=true;
	event.returnValue=false; 
	return false; 
} 

function norightclick(e) 
{ 
	if(window.Event) 
	{ 
		if (e.which !=1)
		{
			return false; 
		}
	} 
	else if(event.button!=1) 
	{ 
		event.cancelBubble=true;
		event.returnValue=false; 
		return false; 
	} 
} 
document.oncontextmenu=nocontextmenu; 
document.onmousedown=norightclick; 
function onKeyDown()
{
	if ((event.altKey)||((event.keyCode==8)&&(event.srcElement.type!="text"&&event.srcElement.type!="textarea"&&event.srcElement.type!="password"))||((event.ctrlKey)&&((event.keyCode==78)||(event.keyCode==82)))||(event.keyCode==116)) 
	{
		event.keyCode=0;
		event.returnValue=false;
	}
}

       
var zoom = 5;
function small1(){
	if (zoom > 1){
		var height1=images1.height            
		var width1=images1.width            
		images1.height=height1/1.5            
		images1.width=width1/1.5  
		zoom--;
	}
	         
}             
          
function big1(){  
	if (zoom < 10){
		var height1=images1.height            
		var width1=images1.width            
		images1.height=height1*1.5          
		images1.width=width1*1.5 
		zoom++;
	}
	          
}             
       
function disPic(){
	if(document.getElementById("picTxt").style.display=="none")            
		document.getElementById("picTxt").style.display = "block";
	else
		document.getElementById("picTxt").style.display = "none"          
}     

function initImg(x,y){
	var imgX,imgY
	var cw = document.body.clientWidth;
	var ch = document.body.clientHeight;
	
	if (x>y){
		imgY = ch-200;
		imgX = x/y * imgY;
	}
	else{
		imgY = ch-50;
		imgX = x/y * imgY;
	}
	
	var imgObj = document.getElementById("images1");
	imgObj.width = imgX;
	imgObj.height = imgY;
	
}
