﻿// JavaScript Document
Event.observe(window, 'load', function(){ 
								if($("go")){	   
									Event.observe('go', 'click', gotothepage);
								}
								var imgarray = $A($$(".main_hot_txt img"));
								imgarray.each(function(img){
												img.onclick=function(){
													var image = new Image();
													image.onload = function(){
														MM_openBrWindow(image.src,"","width="+ image.width +",height="+ image.height);};
													image.src = img.src; 
												};
								});
	});
function gotothepage(){
	var num = $F("pagenum")	;
	var reg = new RegExp(/^([1-9][0-9]*)$/);
	if(reg.test(num)){
		window.location.href=$F("url")+"&amp;page="+num;
	}else{
		alert("请输入一个数字");
	}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
