﻿// JavaScript Document
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){ //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;
    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

/*弹出窗口大小*/
function popad(pageurl,tit,h,w)
{
	var
	popwin=window.open(pageurl,tit,"scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width="+ w +",height="+ h +",left=100,top=120");
	return false;
}


function seldo(selid, obj, obj2)
{
	document.getElementById(obj).style.display='none';
	document.getElementById(obj2).value = selid;
}


function TurnPic(img,idval,n,w){
	var obj = document.getElementById(idval);
	var w = parseInt(w)
	var imgobj=new Image()
	imgobj.src=img
	if (imgobj.width>w){
		obj.width=w;
		obj.style.cursor = 'pointer';
		obj.onclick = function(){window.open(this.src, '', '');}
	}
	else {
		obj.width=imgobj.width
	}
	document.getElementById(idval).src=imgobj.src ;
	var innertxt = document.getElementById('txt_'+idval);
}



function chek(){
if(document.frm.nm.value=='') {
	document.frm.nm.focus();
	alert("Pls Input Your Name!");
	return false;
	}
  
if(document.frm.nationality.value=='') {
	document.frm.nationality.focus();
	alert("Pls Input Your Nationality!");
	return false;
	}
  
if(document.frm.tel.value=='') {
	document.frm.tel.focus();
	alert("Pls Input Your Tel!");
	return false;
	}
  
if(document.frm.maxbudget.value=='') {
	document.frm.maxbudget.focus();
	alert("Pls Input Your Max Budget!");
	return false;
	}
  
if(document.frm.email.value=='') {
	document.frm.email.focus();
	alert("Pls Input Your Email!");
	return false;
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}


/*重置窗口大小*/
function ReSize(id_v,imgsrc){
    var width = document.all[id_v].offsetWidth;    
    var height = document.all[id_v].offsetHeight; 
    
	var imgobj = new Image()
	imgobj.src = imgsrc;
	
    width = eval(imgobj.width + 30);  //加上滚动条的宽度
    height = eval(imgobj.height + 85);  //加上滚动条的高度
    
    if (width < 150)
        width = 150;
    else if (width > screen.width)
        width = screen.width;
    
    if (height < 150)
        height = 150;
    else if (height > screen.height)
        height = screen.height;
    
    window.resizeTo(width,height);
	//tblList.innerHTML = strTxt;
}


function mover(src,clrOver){ 
	src.bgColor = clrOver; 
}

function mout(src,clrout)  { 
	src.bgColor = clrout; 
}<!--此文件由 GB2UTF8 生成于2009-5-5-->