﻿// JScript 文件
function OpenImg(imgFile){
	var imgObj = new Image();
	imgObj.src = imgFile.src;
	OpenTrueImgage(imgObj);
}
function OpenTrueImgage(imgFile){
	OpenPage(imgFile.src,imgFile.width,imgFile.height - 20);
}
function OpenPage(pageUrl,windowWidth,windowHeight){
	var winTitle = document.title;
	document.title = '文件预览';
	var reValue = window.showModalDialog(pageUrl,'window','dialogWidth='+windowWidth+'px;dialogHeight='+ (windowHeight + 20) +'px;status=0;scroll=0;');
	document.title = winTitle;
	return reValue;
}
function OpenFlash(flashUrl,windowWidth,windowHeight){
	window.open(flashUrl,'flash','width=' + windowWidth + ',height=' + windowHeight + ',top=' + (window.screen.availHeight-windowHeight)/2 + ',left=' + (window.screen.availWidth-windowWidth)/2 + ',toolbar=0, menubar=0, scrollbars=0, resizable=0, location=0, status=0');
}
function OpenMusic(musicUrl,windowWidth,windowHeight){
	window.showModalDialog('./Script/Listen.htm?' + escape(musicUrl),'window','dialogWidth=100px;dialogHeight=120px;status=0;scroll=0;');
}
