//GamVan.com javascript
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function opensps(url,width,height){
window.open(url,"opensps", 'width='+ width + ',height=' + height +', left=250, top=160, resizable=1, status=no,scrollbars=yes,toolbar=yes,menubar=no,location=no')
}

function CheckAll(form){
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if (e.name != 'chkall')
		e.checked = form.chkall.checked;
	}
}
function openDateWin(endtarget,ctl,WINname,WINwidth,WINheight){
	showx =  WINwidth + 200  ; // + deltaX;
	showy = WINheight ; // + deltaY;
	newWINwidth = WINwidth + 4 + 18;
	var features =
		'dialogWidth:'  + newWINwidth  + 'px;' +
		'dialogHeight:' + WINheight + 'px;' +
		'dialogLeft:'   + showx     + 'px;' +
		'dialogTop:'    + showy     + 'px;' +
		'directories:no; localtion:no; menubar:no; status=no; toolbar=no;scrollbars:yes;Resizeable=no';
	
	retval = window.showModalDialog(endtarget, WINname , features );
	if( retval != null ){
		ctl.value = retval;
	}else{
		//alert("canceled");
	}
}
//========================================================
function closeWin(t) {
setTimeout("self.close()",t)
}
var popTop=50;
function popshow(){
	//window.status=popTop;
	if(popTop>1720){
		clearTimeout(mytime);
	return;
	}else if(popTop>1520&&popTop<1720){
		window.moveTo(screen.width-250,screen.height,220,1720-popTop);
	}else if(popTop>1500&&popTop<1520){
		window.moveTo(screen.width-250,screen.height+(popTop-1720),220,152);
		//window.resizeTo(250,0);
	}else if(popTop<190){
		window.moveTo(screen.width-250,screen.height,220,popTop);
	}else if(popTop<220){
		window.moveTo(screen.width-250,screen.height-popTop,220,152);
	}
	popTop+=8;
	var mytime=window.setTimeout("popshow();",50);
}