/**************************************************************************************************************
	皋春 匙捞怪 痹蘑
-------------------------------------------------------------------------------------------------
	荤捞飘傅农 : SL
	臂肺国 : G
	浚颇内 : M  /  S

***************************************************************************************************************/



/***************************************************************************************************************/
/*********************************************SSL 焊救荤捞飘利侩 ***********************************************/
/***************************************************************************************************************/


	mylocation = location.href;
	mypath = location.pathname;
	host_url = location.hostname;
	pagename = mypath.split("/");
	ssl_url = new Array();
	ssl_url[0] = "www.forcetec.co.kr";
	ssl_url[1] = "ibm.forcetec.co.kr:444";
	ssl_url[2] = "sd.forcetec.co.kr:449";
	
	web_url = new Array();
	web_url[0]= "www.forcetec.co.kr"
	web_url[1]= "ibm.forcetec.co.kr"
	web_url[2]= "sd.forcetec.co.kr"
	
	var weburl, sslurl;
	var fullpath;

	for(i=0;i<=web_url.length;i++){
		if (web_url[i]==host_url){
			weburl= "http://" + web_url[i];
			sslurl= "https://" +ssl_url[i];
		}
	}


	if (((pagename[1]=="members")&&(pagename[2]=="mypage.aspx"))
	||((pagename[1]=="members")&&(pagename[2]=="login.aspx"))
	||((pagename[1]=="members")&&(pagename[2]=="info_search.aspx"))
	||((pagename[1]=="members")&&(pagename[2]=="info_change.aspx"))
	||((pagename[1]=="members")&&(pagename[2]=="Secede.aspx"))
	||((pagename[1]=="members")&&(pagename[2]=="join_insert.aspx"))
	||((pagename[1]=="members")&&(pagename[2]=="login_t.aspx"))
	||((pagename[1]=="members")&&(pagename[2]=="grade_change.aspx"))
	||((pagename[1]=="members")&&(pagename[2]=="pass_change_insert.aspx"))
	||((pagename[1]=="members")&&(pagename[2]=="pass_change.aspx"))) // -->https(SSL SITE)肺 立加秦具 窍绰 其捞瘤
	{
		if (location.protocol=="http:"){ //http肺 立加矫 https肺 碍力 捞悼矫糯  //webgubun.test(mylocation)
			fullpath = mylocation.split(weburl);
			location.href=sslurl + fullpath[1];
		}else{//https肺 立加矫 
		}
	
	}else{ // -->http(焊烹昆)肺 立加秦具 窍绰 其捞瘤
		if (location.protocol=="https:"){ //https肺 立加矫 http肺 碍力 捞悼矫糯
			fullpath= mylocation.split(sslurl);
			location.href=weburl + fullpath[1];
		}else{//http肺 立加矫 
		}
	}
	


	
/***************************************************************************************************************/
/*********************************************荤捞飘傅农 : SL***************************************************/
/***************************************************************************************************************/

function linkSL0()
{
	window.open('http://kor.enginem.com/index_enpaco.jsp');
	//alert('eMarketPlace');
}
function linkSL1()	
{
	window.open('http://ep.onestx.com');
	//alert('弊缝傀绢');
}
function linkSL2()
{
	window.open('http://qms.stxenpaco.co.kr/Authentication/Login.asp?url=qms%2Estxenpaco%2Eco%2Ekr%2FTop%2Easp');
	//alert('版康矫胶袍巩辑');
}
function linkSL3()
{
	window.open('http://meta.stxenpaco.co.kr/');
	//alert('档搁包府(mata desk)');
}
function linkSL4()
{
	window.open('http://www.stx.co.kr');
	//location.href='http://www.stx.co.kr';
	//alert('STX');
}
function linkSL5()
{
	window.open('http://www.stxpanocean.com/kor/main.aspx');
	//alert('STX埔坷记');
}
function linkSL6()
{
	window.open('http://www.stxship.co.kr');
	//alert('STX炼急');
}
function linkSL7()
{
	window.open('http://www.stxeurope.com');
	//alert('STX蜡反');
}
function linkSL8()
{
	window.open('http://www.stxengine.co.kr');
	//alert('STX浚柳');
}
function linkSL9()
{
	window.open('http://www.stxhi.co.kr');
	//alert('STX吝傍诀');
}
function linkSL10()
{
	window.open('http://www.stxenergy.co.kr');
	//location.href='http://www.stxenergy.co.kr';
	//alert('STX俊呈瘤');
}
function linkSL11()
{
	window.open('http://www.stxconst.co.kr');
	//alert('STX扒汲');
}
function linkSL12()
{
	window.open('http://www.stxsolar.co.kr');
	//alert('STX贾扼');
}
function linkSL13()
{
	window.open('http://www.stxip.co.kr');
	//alert('STX魂诀敲罚飘');
}




/***************************************************************************************************************/
/*********************************************臂肺国皋春 : G****************************************************/
/***************************************************************************************************************/

function linkG1()
{
	location.href='/main.aspx';
}

function linkG2()
{
	//location.href='/main.aspx';
	alert("荤捞飘甘");
}
function linkG3()
{
	location.href='/cs/contact.aspx';
}
function linkG4()
{
	location.href='/english/main.aspx';
	//alert("康巩权其捞瘤");
}
function linkG5()
{
	//location.href='/cs/contact.aspx';
	alert("惫巩权其捞瘤");
}



/*******************************************雀荤家俺********************************************/

function linkM1()
{
	location.href="/?p=10";
}
function linkM1S1()
{
	location.href="/?p=43";
}
function linkM1S2()
{
	location.href="/?p=45";
}
function linkM1S3()
{
	location.href="/?p=46";
}
function linkM1S4()
{
	location.href="/?p=47";
}
function linkM1S5()
{
	location.href="/?p=48";
}
function linkM1S5_1()
{
	location.href="/?p=49";
}
function linkM1S6()
{
	location.href="#";
}


/*******************************************荤诀盒具********************************************/

function linkM2()
{
	location.href="/?p=12";
}
function linkM2S1()
{
	location.href="/?p=53&c=26";
}
	function linkM2S1_2()
	{
		location.href="/?p=53&c=26";
	}
	function linkM2S1_3()
	{
		location.href="/?p=53&c=26";
	}
function linkM2S2()
{
	location.href="/?p=53&c=27";	
}
	function linkM2S2_2()
	{
		location.href="/?p=53&c=27";
	}
	function linkM2S2_3()
	{
		location.href="/?p=53&c=27";
	}
	function linkM2S2_4()
	{
		location.href="/?p=53&c=27";
	}
	function linkM2S2_5()
	{
		location.href="/?p=53&c=27";
	}
	function linkM2S2_6()
	{
		location.href="/?p=53&c=27";
	}
function linkM2S3()
{
	location.href="/?p=53&c=28";
}
	function linkM2S3_2()
	{
		location.href="/?p=53&c=28";
	}
	function linkM2S3_3()
	{
		location.href="/?p=53&c=28";
	}

/*******************************************捧磊沥焊********************************************/

function linkM3()
{
	location.href="/?p=11";
}
function linkM3S1()
{
	location.href="/?p=8";
}
	function linkM3S1_1()
	{
		location.href="/?p=8";
	}
	function linkM3S1_2()
	{
		location.href="/?p=8";
	}
	function linkM3S1_3()
	{
		location.href="/?p=8";
	}
function linkM3S2()
{
	location.href="/?p=9";
}
	function linkM3S2_1()
	{
		location.href="/?p=9";
	}
	function linkM3S2_2()
	{
		location.href="/?p=9";
	}
function linkM3S3()
{
	location.href="#";
}
function linkM3S4()
{
	location.href="#";
}
function linkM3S5()
{
	location.href="#";
}


/*******************************************春胶堡厘********************************************/

function linkM4()
{
	location.href="/?p=72";
}
function linkM4S1()
{
	location.href="/?p=60";
}
function linkM4S2()
{
	location.href="/?p=60";
}
function linkM4S2_1()
{
	location.href="/?p=62";
}
function linkM4S3()
{
	location.href="/?p=62";
}
function linkM4S4()
{
	location.href="/?p=62";
}
function linkM4S5()
{
	location.href="/?p=62";
}
function linkM4S6()
{
	location.href="/?p=62";
}

/*******************************************楷备俺惯********************************************/

function linkM5()
{
	location.href="/?p=14";
}
function linkM5S1()
{
	location.href="/?p=14";
}
function linkM5S1_1()
{
	location.href="#";
}
function linkM5S1_2()
{
	location.href="#";
}
function linkM5S2()
{
	location.href="/?p=64";
}
function linkM5S3()
{
	location.href="#";
}
function linkM5S4()
{
	location.href="#";
}
function linkM5S5()
{
	location.href="#";
}


/*******************************************绊按瘤盔********************************************/

function linkM6()
{
	location.href="/?p=29";
}
function linkM6S1()
{
	location.href="/?m=user&a=login&url=";
}
function linkM6S2()
{
	location.href="/?m=user&a=reg";
}
function linkM6S3()
{
	location.href="#";
}


/*******************************************盲侩沥焊********************************************/

function linkM7()
{
	location.href="/";
}
function linkM7S1()
{
	location.href="/?p=65";
}
	function linkM7S1_1()
{
	location.href="/?p=19";
}
function linkM7S2()
{
	location.href="/?p=66";
}
function linkM7S2_1()
{
	location.href="#";
}
function linkM7S3()
{
	location.href="/?p=66";
}
function linkM7S4()
{
	location.href="/?p=66";
}