<!--
/* **************************************************************

Modified 6/29/01 - added logic facilitate production servers mappings

wan21c@yahoo.com 08-26-2001
************************************************************* */

function winPopUp(sLocArg, sWinNameArg, iWidthArg, iHeightArg, bToolBarArg, iLctArg) {
//Open a child window.
	sLoc 		= new String(sLocArg);
	sWinName	= new String(sWinNameArg);
	iWidth		= new String(iWidthArg);
	iHeight		= new String(iHeightArg);
	bToolBar	= new String(bToolBarArg);
	iLct		= new String(iLctArg);

	if (sWinName.length < 1) {
		sWinName = "winPropt";
	}
		
	if (iWidth.length < 1) {
		iWidth = 590;
	}
	if (iHeight.length < 1) {
		iHeight = 500;
	}
//alert ("iWidth.length:"+iWidth.length);
//alert ("iWidth:"+iWidth+ " iHeight:"+iHeight);

	if (bToolBar.length < 1) {
		bToolBar="yes";
	}
	if (iLct.length < 1) {
		iLct = 0;
	}


	var win = window.open(sLoc, sWinName, "width="+iWidth+",height="+iHeight+",toolbar="+bToolBar+",location="+iLct+",directories=1,resizable=1,status=1,menubar=1,scrollbars=yes");
//	win.moveTo(0,70);
//	win.focus();
}

function imagePopUp(sLocArg, sWinNameArg, iWidthArg, iHeightArg, bToolBarArg) {
//Open a child window.
	sLoc 		= new String(sLocArg);
	sWinName	= new String(sWinNameArg);
	iWidth		= new String(iWidthArg);
	iHeight		= new String(iHeightArg);
	bToolBar	= new String(bToolBarArg);

	if (sWinName.length < 1) {
		sWinName = "winPic";
	}
		
	if (iWidth.length < 1) {
		iWidth = 590;
	}
	if (iHeight.length < 1) {
		iHeight = 500;
	}
//alert ("iWidth.length:"+iWidth.length);
//alert ("iWidth:"+iWidth+ " iHeight:"+iHeight);

	if (bToolBar.length < 1) {
		bToolBar="no";
	}


	var win2 = window.open(sLoc, sWinName, "width="+iWidth+",height="+iHeight+",toolbar="+bToolBar+",location=0,directories=0,resizable=1,status=1,menubar=0,scrollbars=yes");
//	win2.moveTo(5,5);
//	win2.focus();
}

function helpPopUp(sLocArg, sWinNameArg, iWidthArg, iHeightArg, bToolBarArg) {
//Open a child window.
	sLoc 		= new String(sLocArg);
	sWinName	= new String(sWinNameArg);
	iWidth		= new String(iWidthArg);
	iHeight		= new String(iHeightArg);
	bToolBar	= new String(bToolBarArg);

	if (sWinName.length < 1) {
		sWinName = "winPic";
	}
		
	if (iWidth.length < 1) {
		iWidth = 200;
	}
	if (iHeight.length < 1) {
		iHeight = 150;
	}
//alert ("iWidth.length:"+iWidth.length);
//alert ("iWidth:"+iWidth+ " iHeight:"+iHeight);

	if (bToolBar.length < 1) {
		bToolBar="no";
	}


	var win3 = window.open(sLoc, sWinName, "width="+iWidth+",height="+iHeight+",toolbar="+bToolBar+",location=0,directories=0,resizable=1,status=1,menubar=0,scrollbars=yes");
	win3.moveTo(20,20);
//	win2.focus();
}

function CkDel() {
	if (confirm("Are you sure to delete?.")) return true;
	return false;
}

function CkDelBod() {
	if (confirm("Are you sure to delete?.")) return true;
	return false;
}

function UpdateDes(theForm, p_fid, p_tid, p_path, p_nb){
	var subDes = theForm.elements['up2date[]'];
	window.location.href = "./?sect=updateSubPic&fid="+p_fid+"&tid="+p_tid+"&path="+p_path+"&update_des="+subDes[p_nb].value
}

function UpdateDesV(theForm, p_fid, p_tid, p_path, p_nb){
	var subDesV = theForm.elements['up2dateV[]'];
	window.location.href = "./?sect=updateSubPic&fid="+p_fid+"&tid="+p_tid+"&path="+p_path+"&update_des="+subDesV[p_nb].value
}
//-->
