var xmlHttp;
function createXMLHttpRequest(){
if(window.ActiveXObject){
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if(window.XMLHttpRequest){
xmlHttp = new XMLHttpRequest();
}
}

function startRequest(){
createXMLHttpRequest();
try{
xmlHttp.onreadystatechange = handleStateChange;
		d = new Date(); // 创建 Date 对象。 
		s="temp";
		s += d.getYear() ; // 获取年份。 
        s += d.getMonth()+1 ; // 获取月份。 
        s += d.getDate(); // 获取日。 
        s += d.getHours(); // 获取小时。
	    s += d.getMinutes(); // 获取分钟。
	    s += d.getSeconds(); // 获取秒数。
xmlHttp.open("GET", "iframeMovie.htm", true);
xmlHttp.send(null); 
}catch(exception){
alert("您要访问的资源不存在!");
}
}

function handleStateChange(){ 
if(xmlHttp.readyState == 4){ 
if (xmlHttp.status == 200 || xmlHttp.status == 0){
// 显示返回结果
document.getElementById("movie01").innerHTML=xmlHttp.responseText+'<div style=\"text-align:right; padding-right:20px; width:350px\"><a href=\"javascript:closemovie()\">关闭</a></div>';
//alert("responseText's value: " + xmlHttp.responseText);
}
}
}


