function resizeIframe(fr) {
	var frameName = fr.id
	eval("var scName = "+frameName+".document.body");
	var ifheight = scName.scrollHeight
	if (ifheight == ''){
	ifheight = 500;
	}	
	else
	{
		ifheight += 30;
	}
	var strAppVersion = navigator.appVersion;	
	
	if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4){
		fr.setExpression('height',ifheight);	
	} else {
		fr.style.height = ifheight;
	}	
}

function resizeIframe2(fr,fheight) {
	var frameName = fr.id
	var fheight = fheight;
	eval("var scName = "+frameName+".document.body");
	var ifheight = scName.scrollHeight
	if (ifheight == ''){
		ifheight = fheight;
	}	
	else
	{
		ifheight += 30;
	}
	var strAppVersion = navigator.appVersion;		
	if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4){
		fr.setExpression('height',ifheight);	
	} else {
		fr.style.height = ifheight;
	}	
}

function newsletter_remove(fullurl){

	var fullurl = fullurl;
	if( confirm("Are you sure to remove this topic?")==false ) {
		return;
	}else{
		//alert(encodeURI(fullurl));
		location.href = encodeURI(fullurl);		
	}
}

function help_remove1(fullurl){

	var fullurl = fullurl;
	if( confirm("Are you sure to remove this topic?")==false ) {
		return;
	}else{
		//alert(encodeURI(fullurl));
		location.href = encodeURI(fullurl);		
	}
}

function help_remove2(fullurl){

	var fullurl = fullurl;
	if( confirm("Are you sure to remove this replied topic?")==false ) {
		return;
	}else{
		//alert(encodeURI(fullurl));
		location.href = encodeURI(fullurl);		
	}
}

function faq_remove(fullurl){

	var fullurl = fullurl;
	if( confirm("Are you sure to remove this topic?")==false ) {
		return;
	}else{
		//alert(encodeURI(fullurl));
		location.href = encodeURI(fullurl);		
	}
}

function image_null(nform,nfield){
	var null_check = eval("document."+nform+"."+nfield+".value = ''");
}

function comingSoon()
{
	alert('Coming Soon!');
}

function submitdbtoexcel()
{	
	var theForm = document.fromdbtoexcel;
	var prevWin = window.open ("", "dbtoexcel", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=560,height=230");
	theForm.target = "dbtoexcel";
	theForm.action = "/common/dbtoexcel.asp";
	prevWin.focus();
	theForm.submit();
}


function newWindow_new(width,height)
{
	var width = width;
	var height = height;
	newwins = window.open("","newWindow","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height);
	newwins.focus();
}

function helpopen(curl)
{
	newwins = window.open("/common/helpopen.asp?hurl=" + curl,"helpopen","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=100,height=50");
	newwins.focus();
}

function newWindow_selectimage()
{
	newwins = window.open("","selectimage","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=50,height=50");
	newwins.focus();
}

function newWindow_selectcategory()
{
	newwins = window.open("","selectcategory","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=50,height=50");
	newwins.focus();
}

function java_viewsamnews()
{
	newwins = window.open("","samnews","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=50,height=50");
	newwins.focus();
}

function isNumber(obj) {
	if (isNaN(obj.value)) {
			alert("You must enter number only in this field.");
			obj.focus();
			obj.select();
	}
}	

function roundTableNew(targetObjID, rborder1, rborder2, rbgcolor)
{
	var rborder1 = rborder1;	// round1?Ç rborder»ö.
	var rborder2 = rborder2;	// round2?Ç rborder»ö.
	var rbgcolor2 = rbgcolor;	// round2?Ç rbgcolor»ö.

	var obj = null;
	obj = document.getElementById(targetObjID);
	roundTableNewSub(obj, rborder1, rborder2, rbgcolor2);	
}


function roundTableNewSub(objDiv, rgb1, rgb2, rgb3)
{
	//alert("objDiv.style.width="+objDiv.style.width+", rbg1="+rbg1+", rbg2="+rbg2+", rbg3="+rbg3);
	var objDivWidth = parseInt(objDiv.style.width);
	var objDivHTML = objDiv.innerHTML;

	var roundBox = "";
	roundBox += "<table width="+objDivWidth+"border=0 cellpadding=0 cellspacing=0><tr><td valign=top align=center>";
	roundBox += "";
	roundBox += "	<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "	<tr><td width=2></td><td width="+(objDivWidth-4)+" bgcolor="+rgb1+"></td><td width=2></td></tr></table>";
	roundBox += "";
	roundBox += "	<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "	<tr><td width=1></td><td width="+(objDivWidth-2)+" bgcolor="+rgb1+"></td><td width=1></td></tr></table>";
	roundBox += "";
	roundBox += "	<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "	<tr><td width="+(objDivWidth-0)+" bgcolor="+rgb1+"></td></tr></table>";
	roundBox += "";
	roundBox += "	<table border=0 cellpadding=0 cellspacing=0>";
	roundBox += "	<tr><td width=3 bgcolor="+rgb1+"></td>";
	roundBox += "		<td width="+(objDivWidth-6)+" bgcolor="+rgb1+">";
	roundBox += "";
	roundBox += "			<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "			<tr><td width=2 bgcolor="+rgb1+"></td><td width="+(objDivWidth-10)+" bgcolor="+rgb2+"></td>";
	roundBox += "				<td width=2 bgcolor="+rgb1+"></td></tr></table>";
	roundBox += "";
	roundBox += "			<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "			<tr><td width=1 bgcolor="+rgb1+"></td>";
	roundBox += "				<td width=1 bgcolor="+rgb2+"></td>";
	roundBox += "				<td width="+(objDivWidth-10)+" bgcolor="+rgb3+"></td>";
	roundBox += "				<td width=1 bgcolor="+rgb2+"></td>";
	roundBox += "				<td width=1 bgcolor="+rgb1+"></td></tr></table>";
	roundBox += "";
	roundBox += "			<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "			<tr><td width=1 bgcolor="+rgb2+"></td><td width="+(objDivWidth-8)+" bgcolor="+rgb3+">";
	roundBox += "";
	roundBox += objDivHTML;
	roundBox += "";
	roundBox += "			</td><td width=1 bgcolor="+rgb2+"></td></tr></table>";
	roundBox += "";
	roundBox += "			<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "			<tr><td width=1 bgcolor="+rgb1+"></td>";
	roundBox += "				<td width=1 bgcolor="+rgb2+"></td>";
	roundBox += "				<td width="+(objDivWidth-10)+" bgcolor="+rgb3+"></td>";
	roundBox += "				<td width=1 bgcolor="+rgb2+"></td>";
	roundBox += "				<td width=1 bgcolor="+rgb1+"></td></tr></table>";
	roundBox += "";
	roundBox += "			<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "			<tr><td width=2 bgcolor="+rgb1+"></td><td width="+(objDivWidth-10)+" bgcolor="+rgb2+"></td>";
	roundBox += "				<td width=2 bgcolor="+rgb1+"></td></tr></table>";
	roundBox += "";
	roundBox += "		</td>";
	roundBox += "		<td width=3 bgcolor="+rgb1+"></td>";
	roundBox += "	</tr></table>";
	roundBox += "";
	roundBox += "	<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "	<tr><td width="+(objDivWidth-0)+" bgcolor="+rgb1+"></td></tr></table>";
	roundBox += "";
	roundBox += "	<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "	<tr><td width=1></td><td width="+(objDivWidth-2)+" bgcolor="+rgb1+"></td><td width=1></td></tr></table>";
	roundBox += "";
	roundBox += "	<table border=0 cellpadding=0 cellspacing=0 height=1>";
	roundBox += "	<tr><td width=2></td><td width="+(objDivWidth-4)+" bgcolor="+rgb1+"></td><td width=2></td></tr></table>";
	roundBox += "";
	roundBox += "</td></tr></table>";
	
	objDiv.innerHTML = roundBox;
}

function BeginLodingPage() 
{     
  document.getElementById("indicator").style.display = 'none';
}