//Area : ASIA, Europe, USA, MEA(Middle East & Africa)
function view_Area1(theArea) {
	document.getElementsByName('cust')[0].src = '/RBS/Fn/CommBoard/List.php?RBIdx=Customers03&Area=' + theArea;
}
function view_Area2(theArea) {
	document.getElementsByName('cust')[0].src = '/RBS/Fn/CommBoard/List.php?RBIdx=Customers04&Area=' + theArea;
}
function view_Area3(theArea) {
	document.getElementsByName('cust')[0].src = '/RBS/Fn/CommBoard/List.php?RBIdx=Customers05&Area=' + theArea;
}

function view_Country1(theCountry) {
	document.getElementsByName('cust')[0].src = '/RBS/Fn/CommBoard/List.php?RBIdx=Customers03&Country=' + theCountry;
}
function view_Country2(theCountry) {
	document.getElementsByName('cust')[0].src = '/RBS/Fn/CommBoard/List.php?RBIdx=Customers04&Country=' + theCountry;
}
function view_Country3(theCountry) {
	document.getElementsByName('cust')[0].src = '/RBS/Fn/CommBoard/List.php?RBIdx=Customers05&Country=' + theCountry;
}

function t_windowOpen(theSRC) {
	window.open(theSRC,"Image_View","scrollbars=no,resizable=yes");
}

function t_screenTopKeep(theObj,theTop) {
	var varObj,varLen,varTop,varSpeed;
	//¼öÄ¡°¡ ÀûÀ» ¼ö·Ï »¡¶óÁü
	varSpeed = 4;
	varObj = eval(theObj);
	if(varObj.style){
		varLen = theTop + document.body.scrollTop;
		varTop = varObj.style.top;
		varTop = varTop.substring(0,varTop.length-2);
		varTop = parseInt(varTop);
		if(varTop != varLen){
			varObj.style.top = parseInt(varTop + (varLen-varTop)/varSpeed);
		}
	}
	setTimeout('t_screenTopKeep("' + theObj + '",' + theTop + ')',100);
}

function t_chImg(imgObj, imgSrc) {
	var varObj;
	varObj = (imgObj == "[object]")?imgObj:document.getElementsByName(imgObj)[0];
	if(varObj.filters.blendTrans){
		varObj.filters.blendTrans.stop();
		varObj.filters.blendTrans.apply();
		varObj.src = imgSrc;
		varObj.filters.blendTrans.play();
	} else {
		varObj.src = imgSrc;
	}
}

function t_chColor(theObj, theColor) {
	var varObj;
	varObj = (theObj == "[object]")?theObj:document.getElementsByName(theObj)[0];
	if(varObj.filters.blendTrans){
		varObj.filters.blendTrans.stop();
		varObj.filters.blendTrans.apply();
		varObj.style.backgroundColor = theColor;
		varObj.filters.blendTrans.play();
	} else {
		varObj.style.backgroundColor = theColor;
	}
}

function t_applyTrans(imgObj, imgSrc, theNum) { 
	var varObj;
	varObj = (imgObj == "[object]")?imgObj:document.getElementsByName(imgObj)[0];
	if(varObj.filters['revealTrans']) {
		varObj.filters['revealTrans'].transition = theNum;
		varObj.filters['revealTrans'].apply();
		varObj.src = imgSrc;
		varObj.filters['revealTrans'].play();
	} else {
		varObj.src = imgSrc;
	}
}

function setMImgSwf(theValue, theWidth, theHeight) {
	var varSource;
	varSource = '<div' + "\n";
	varSource += '><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' + "\n";
	varSource += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ' + "\n";
	varSource += 'WIDTH="' + theWidth + '" HEIGHT="' + theHeight + '" id="mainimage">' + "\n";
	varSource += '	<PARAM NAME=movie VALUE="' + theValue + '">' + "\n";
	varSource += '	<PARAM NAME=quality VALUE=high>' + "\n";
	varSource += '	<PARAM NAME=bgcolor VALUE=#FFFFFF>' + "\n";
	varSource += '	<PARAM NAME="wmode" VALUE="transparent">' + "\n";
	varSource += '	<EMBED src="' + theValue + '" ' + "\n";
	varSource += '	quality=high bgcolor=#FFFFFF WIDTH="' + theWidth + '" HEIGHT="' + theHeight + '" NAME="mainimage" WMODE="transparent" ' + "\n";
	varSource += '	TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' + "\n";
	varSource += '</OBJECT' + "\n";
	varSource += '></div>' + "\n";
	document.write(varSource);
}

function docResize() {
//	alert(document.body.scrollHeight);
	if (self != top){
		self.resizeTo(document.body.scrollWidth , document.body.scrollHeight + 10);
	}
}
