// flash insert scr.
function flashInsert(id,url,width,height,flashVars,bgColor,winMode,sAlign){

	var flashStr= "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"' id='"+id+"' align='middle'>" +
	"<param name='allowScriptAccess' value='always' />" +
	"<param name='movie' value='"+url+"' />" +
	"<param name='FlashVars' value='"+flashVars+"' />" +
	"<param name='wmode' value='"+winMode+"' />" +
	"<param name='menu' value='false' />" +
	"<param name='salign' value='"+sAlign+"' />" +
	"<param name='quality' value='high' />" +
	"<param name='scale' value='noscale' />" +
	"<param name='bgcolor' value='"+bgColor+"' />" +
	"<embed src='"+url+"' allowFullScreen='true' flashVars='"+flashVars+"' scale='noscale' wmode='"+winMode+"' menu='false' quality='high' bgcolor='"+bgColor+"' width='"+width+"' height='"+height+"' name='"+id+"' align='middle' allowScriptAccess='"+winMode+"' salign='"+sAlign+"' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' /></object>";
	document.write(flashStr);
}


//tab menu [seperate DL atg]
function frameDiv(shDiv){
	fDiv = document.getElementById("tabWrap");
	var getTag = fDiv.getElementsByTagName("dl");
	for (i=0; i<getTag.length; i++){
		var ele = document.getElementById(shDiv);
		if (ele == getTag[i])
		{
			getTag[i].style.display = "block";
		} else {
			getTag[i].style.display = "none";
		}
	}
}


function tabSelect(flag, ele){

	yearReplace = document.getElementById("choiceTab");
	var findImg = yearReplace.getElementsByTagName("img");
	for ( var i=0 ; i<findImg.length ; i++ ){
		findImg[i].src = findImg[i].src.replace("on.gif", "off.gif");
	}
	
	if (flag ==  "tab1"){
		frameDiv("tab1");
	}
	else if (flag ==  "tab2"){
		frameDiv("tab2");
	}
	else if (flag ==  "tab3"){
		frameDiv("tab3");
	}
	else if (flag ==  "tab4"){
		frameDiv("tab4");
	}
	else if (flag ==  "tab5"){
		frameDiv("tab5");
	}

	var imgSrc = ele.getElementsByTagName("img")[0].src;
	ele.getElementsByTagName("img")[0].src = imgSrc.replace("off.gif", "on.gif");
}


function tabPrdSelect(flag){

	yearReplace = document.getElementById("choiceTab");
	var findImg = yearReplace.getElementsByTagName("img");
	for ( var i=0 ; i<findImg.length ; i++ ){
		findImg[i].src = findImg[i].src.replace("on.gif", "off.gif");
	}
	
	if (flag ==  "tab1"){
		frameDiv("tab1");
		document.getElementsByName("tabImg")[0].src = document.getElementsByName("tabImg")[0].src.replace("off.gif", "on.gif");
	}
	else if (flag ==  "tab2"){
		frameDiv("tab2");
		document.getElementsByName("tabImg")[1].src = document.getElementsByName("tabImg")[1].src.replace("off.gif", "on.gif");
	}
	else if (flag ==  "tab3"){
		frameDiv("tab3");
		document.getElementsByName("tabImg")[2].src = document.getElementsByName("tabImg")[2].src.replace("off.gif", "on.gif");
	}
	else if (flag ==  "tab4"){
		frameDiv("tab4");
		document.getElementsByName("tabImg")[3].src = document.getElementsByName("tabImg")[3].src.replace("off.gif", "on.gif");
	}
	else if (flag ==  "tab5"){
		frameDiv("tab5");
		document.getElementsByName("tabImg")[4].src = document.getElementsByName("tabImg")[4].src.replace("off.gif", "on.gif");
	}
}


/* case use onload.. */
function allClose(){
	fDiv = document.getElementById("tabWrap");

	if(fDiv == null)
		return;

	var getTag = fDiv.getElementsByTagName("dl");
	for (i=0; i<getTag.length; i++){
		getTag[i].style.display = "none";
	}
	document.getElementById("tab1").style.display = "block";
}

window.onload = function(){
	allClose();
}



function link(flag){
	if (flag ==  "01"){
		window.open("http://worldwide.hyundai.com/");
	}
	else if (flag ==  "02"){
		window.open("http://www.kiamotors.com/");
	}
	else if (flag ==  "03"){
		window.open("http://www.hyundai-steel.com/");
	}
	else if (flag ==  "04"){
		window.open("http://www.hysco.com/eng/main/main.aspx");
	}
	else if (flag ==  "05"){
		window.open("http://www.bngsteel.com:8080/scx_menu/menu.scx?cmd=menu-view&menu_code=114/");
	}
	else if (flag ==  "06"){
		window.open("http://www.hdec.kr/");
	}
	else if (flag ==  "07"){
		window.open("http://www.hyundai-amco.co.kr/");
	}
	else if (flag ==  "08"){
		window.open("http://eng.hec.co.kr/");
	}
	else if (flag ==  "09"){
		window.open("http://www.mobis.co.kr/eng/");
	}
	else if (flag ==  "10"){
		window.open("http://www.powertech.co.kr/");
	}
	else if (flag ==  "11"){
		window.open("http://www.dymos.co.kr/");
	}
	else if (flag ==  "12"){
		window.open("http://www.kefico.co.kr/");
	}
	else if (flag ==  "13"){
		window.open("http://www.wisco.co.kr/eng/");
	}
	else if (flag ==  "14"){
		window.open("http://www.metia.co.kr/");
	}
	else if (flag ==  "15"){
		window.open("http://www.partecs.co.kr/");
	}
	else if (flag ==  "16"){
		window.open("http://www.ihl.co.kr/");
	}
	else if (flag ==  "17"){
		window.open("http://www.mseat.co.kr/");
	}
	else if (flag ==  "18"){
		window.open("http://www.hyundaicard.com/ir/en_new/index.jsp");
	}
	else if (flag ==  "19"){
		window.open("http://www.hyundaicapital.com/?h=/ir/eng/eng_main.jsp");
	}
	else if (flag ==  "20"){
		window.open("http://www.hmcib.com/");
	}
	else if (flag ==  "21"){
		window.open("http://www.rotem.co.kr/eng/");
	}
	else if (flag ==  "22"){
		window.open("http://www.glovis.net/Eng/index_eng.asp");
	}
	else if (flag ==  "23"){
		window.open("http://www.autoeversystems.com/Eng/");
	}
	else if (flag ==  "24"){
		window.open("http://www.innocean.com/");
	}
	else if (flag ==  "25"){
		window.open("http://www.ngvtek.com/new/eng/");
	}
	else if (flag ==  "26"){
		window.open("http://www.tigers.co.kr/");
	}
	else if (flag ==  "27"){
		window.open("http://www.haevichi.com/");
	}
	else if (flag ==  "28"){
		window.open("http://www.hyundai.co.kr/");
	}	
}


function wiaquick(flag){
	if (flag ==  "1"){
		location.href = "/cyber/webzine.asp";
	}
	else if (flag ==  "2"){
		location.href = "/cyber/brochure.asp";
	}
	else if (flag ==  "3"){
		location.href = "/about/history.asp";
	}
}

function footer(flag){
	if (flag ==  "machine"){
		window.open("http://en.wiamachine.co.kr/");
	}
	else if (flag ==  "van"){
		location.href("/about/location.asp");
	}
	else if (flag ==  "vaatz"){
		window.open("http://mp.vaatz.com:7474/kor/front/index.jsp");
	}
}


function movie(){
	location.href = "/cyber/pr_movie.asp";
}

function plaza(){
	window.open("http://news.hyundai-kiamotors.com/");
}




function cyber(flag){
	if (flag ==  "1"){
		location.replace("/cyber/inspect_use.asp");
	}
	else if (flag ==  "2"){
		location.replace("/cyber/inspect_guard.asp");
	}
	else if (flag ==  "3"){
		location.replace("/cyber/inspect_result_write.asp");
	}
	else if (flag ==  "4"){
		location.replace("/cyber/inspect_result_confirm.asp");
	}
}

function cyberPop(){
	var width = 800;
	var height = 600;
	var calLeft = Math.round((screen.width / 2) - (width / 2));
	var calTop = Math.round((screen.height / 2) - (height / 2));

	window.open('/cyber/inspect.asp','cyberPop','width=800, height=600, top=' + calTop + ', left=' + calLeft);
}

function fairPop(){
	var width = 800;
	var height = 600;
	var calLeft = Math.round((screen.width / 2) - (width / 2));
	var calTop = Math.round((screen.height / 2) - (height / 2));

	window.open('/fair/fair_trade.asp','fairTrade','width=800, height=600, top=' + calTop + ', left=' + calLeft);
}

function fairTrade(flag){
	if (flag ==  "show"){
		document.getElementById("popFair").style.display ="block";
	}
	else if (flag ==  "hide"){
		document.getElementById("popFair").style.display ="none";
	}
}


function popCalendar(){
	var width = 591;
	var height = 447;
	var calLeft = Math.round((screen.width / 2) - (width / 2));
	var calTop = Math.round((screen.height / 2) - (height / 2));

	window.open('/customer/calendar.asp','calendar','width=591, height=447, top=' + calTop + ', left=' + calLeft);
}


function certi(){
	document.getElementById("certiWrap").style.display = "block";
}


function certiClose(){
	document.getElementById("certiWrap").style.display = "none";
}



function certiPop(flag1, flag2) {
	
	var width = 370;
	var height = 497;
	var calLeft = Math.round((screen.width / 2) - (width / 2));
	var calTop = Math.round((screen.height / 2) - (height / 2) - 50);
	switch (flag1) {
		case "quality": 
			switch (flag2)
			{
				case "1": window.open('/rnd/popup_isots16949.asp', 'quality1', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				case "2": window.open('/rnd/popup_iso9001ksaa9001.asp', 'quality2', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				case "3": window.open('/rnd/popup_iso14001.asp', 'quality3', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				case "4": window.open('/rnd/popup_as9100.asp', 'quality4', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				case "5": window.open('/rnd/popup_kds0050-9000.asp', 'quality5', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				default: return;
			}
		case "exam": 
			switch (flag2)
			{
				case "1": window.open('/rnd/popup_isoiec_17025_kor1.asp', 'exam1', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				case "2": window.open('/rnd/popup_isoiec_17025_kor.asp', 'exam2', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				default: return;
			}
		case "international": 
			switch (flag2)
			{
				case "1": window.open('/rnd/popup_nadcap.asp', 'international1', 'width=490, height=366, top=' + calTop + ', left=' + calLeft); return;
				case "2": window.open('/rnd/popup_sqav05903.asp', 'international2', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				case "3": window.open('/rnd/popup_isoiec_17025_kor2.asp', 'international3', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				default: return;
			}
		case "etc": 
			switch (flag2)
			{
				case "1": window.open('/rnd/popup_5_10.asp', 'etc1', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				case "2": window.open('/rnd/popup_2005_02.asp', 'etc2', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				case "3": window.open('/rnd/popup_gsac.asp', 'etc3', 'width=370, height=497, top=' + calTop + ', left=' + calLeft); return;
				case "4": window.open('/rnd/popup_skt200ttsy.asp', 'etc4', 'width=351, height=497, top=' + calTop + ', left=' + calLeft); return;
				default: return;
			}
		default: break;
	}
}






function catalog(flag1, flag2) {
	
	switch (flag1) {
		case "tool": 
			switch (flag2)
			{
				case "1": window.open('/brochure/machine/view.htm', 'tool1', 'width=1020, height=740'); return;
				case "2": alert("Preparing"); return;
				case "3": window.open('/brochure/robot.zip'); return;
				default: return;
			}
		case "part": 
			switch (flag2)
			{
				// case "1": location.href = "/brochure/automotive.pdf"; return; //
				case "1": window.open('/brochure/automotive.pdf'); return;
				case "2": alert("Preparing"); return;
				case "3": alert("Preparing"); return;
				default: return;
			}
		case "unique": 
			switch (flag2)
			{
				case "1": alert("Preparing"); return;
				case "2": window.open('/brochure/airplane.pdf'); return;
				default: return;
			}
		case "heavy": 
			switch (flag2)
			{
				case "1": window.open('/brochure/plant.pdf'); return;
				case "2": window.open('/brochure/press.pdf'); return;
				default: return;
			}
		case "satellite": 
			switch (flag2)
			{
				case "1": alert("Preparing"); return;
				default: return;
			}
		default: break;
	}
}


function goProd(flag1, flag2) {
	
	switch (flag1) {
		case "tool": 
			switch (flag2)
			{
				case "1": location.href = "/product/tool_machine.asp"; return;
				case "2": location.href = "/product/tool_fa.asp"; return;
				case "3": location.href = "/product/tool_robot.asp"; return;
				default: return;
			}
		case "part": 
			switch (flag2)
			{
				case "1": location.href = "/product/car_component.asp"; return;
				case "2": location.href = "/product/car_module.asp"; return;
				case "3": location.href = "/product/car_engine.asp"; return;
				default: return;
			}
		case "unique": 
			switch (flag2)
			{
				case "1": location.href = "/product/special_land.asp"; return;
				case "2": location.href = "/product/special_aviation.asp"; return;
				default: return;
			}
		case "heavy": 
			switch (flag2)
			{
				case "1": location.href = "/product/plant_crane.asp"; return;
				case "2": location.href = "/product/press_tandem.asp"; return;
				default: return;
			}
		case "satellite": 
			switch (flag2)
			{
				case "1": location.href = "/product/satellite_biz.asp"; return;
				default: return;
			}
		default: break;
	}
}



/* constructor */
/* 인수는 (엘리먼트 id, 초기 top 값, (선택사항) bottom 마진) */
function floatedLayer(eleName, initialTop, bottomLimit) {

	if (!document.getElementById(eleName)){
	    return;
	}
	this.ele = document.getElementById(eleName);
	this.initialTop = initialTop;
	this.bottomLimit = (!bottomLimit)? 0 : bottomLimit;
	this.timer = null;
	this.moveLayer();
}

/* class property */
floatedLayer.INTERVAL = 10; /* 동작 간격: (단위: 밀리초(ms)) */
floatedLayer.DEGREE = 10; /* 움직임 정도: (단위: 퍼센트, 0 < 범위 <= 100) */


/* instance method */
floatedLayer.prototype.moveLayer = function () {

	var scrollHeight = 0;

	// 스크롤된 높이 계산 (참고: http://www.howtocreate.co.uk/tutorials/javascript/browserwindow)
	if (document.body && document.body.scrollTop) {
		scrollHeight = document.body.scrollTop;
	} else if (document.documentElement && document.documentElement.scrollTop) {
		scrollHeight = document.documentElement.scrollTop;
	}

	var top = (isNaN(parseInt(this.ele.style.top)))? this.initialTop : parseInt(this.ele.style.top);
	var exactHeight = scrollHeight + this.initialTop;

	var moveHeight = Math.ceil(Math.abs(top - exactHeight) * floatedLayer.DEGREE / 100);
	
	top = (top > exactHeight)? top - moveHeight : top + moveHeight;

	var documentHeight = document.body.offsetHeight;
	var eleHeight = this.ele.offsetHeight;

	if ((top + eleHeight) >= documentHeight - this.bottomLimit) {
		top = documentHeight - eleHeight - this.bottomLimit;
	}

	this.ele.style.top = top + "px";

	// setTimeout에서 인스턴스 메소드 사용 (참고: http://www.faqts.com/knowledge_base/view.phtml/aid/2311)
	var self = this;
	if (this.timer) {
		window.clearTimeout(this.timer);
	}
	this.timer = window.setTimeout(function () { self.moveLayer(); }, floatedLayer.INTERVAL);
}

window.onload  = function() {
	var eleTop = 400;
	if (document.getElementById("divTop")) {
		new floatedLayer("divTop", eleTop, 100);
	}

	// new window in strict mode...
	externalLinks();
} 

// target at strict mode
function externalLinks(){
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++){
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
		anchor.target = "_blank";
	}
}

function korean(){
	parent.location.href = "http://www.hyundai-wia.co.kr/index.asp";
}

function english(){
	parent.location.href = "http://en.hyundai-wia.co.kr/index.asp";
}

function chinese(){
	parent.location.href = "http://cn.hyundai-wia.co.kr/index.asp";
}

/*
function korean(){
	parent.location.href = "http://www.hyundai-wia.co.kr/index.asp";
}

function english(){
	parent.location.href = "http://en.hyundai-wia.co.kr/index.asp";
}

function chinese(){
	parent.location.href = "http://cn.hyundai-wia.co.kr/index.asp";
}
*/





function product(flag1, flag2) {
	
	switch (flag1) {
		case "tool": 
			switch (flag2)
			{
				case "1": location.href = "/product/tool_turning.asp"; return;
				case "2": location.href = "/product/tool_vertical.asp"; return;
				case "3": location.href = "/product/tool_horizontal.asp"; return;
				case "4": location.href = "/product/tool_boring.asp"; return;
				case "5": location.href = "/product/tool_milling.asp"; return;
				case "6": location.href = "/product/tool_fa.asp"; return;
				case "7": location.href = "/product/tool_robot.asp"; return;
				case "8": window.open("http://en.wiamachine.co.kr/"); return;
				case "9": window.open("/ProductSearch/xSearchMachine.asp", "productSearch", "width=580, height=399"); return;
				
				default: return;
			}
		case "part": 
			switch (flag2)
			{
				case "1": location.href = "/product/car_component.asp"; return;
				case "2": location.href = "/product/car_module.asp"; return;
				case "3": location.href = "/product/car_engine.asp"; return;
				case "4": window.open("/brochure/automotive.pdf");
				default: return;
			}
		case "unique": 
			switch (flag2)
			{
				case "1": location.href = "/product/special_land.asp"; return;
				case "2": location.href = "/product/special_sea.asp"; return;
				case "3": location.href = "/product/special_aviation.asp"; return;
				case "4": window.open("/brochure/airplane.pdf"); return;
				default: return;
			}
		case "heavy": 
			switch (flag2)
			{
				case "1": location.href = "/product/plant_crane.asp"; return;
				case "2": location.href = "/product/plant_steel.asp"; return;
				case "3": location.href = "/product/press_tandem.asp"; return;
				case "4": window.open("/brochure/plant.pdf"); return;
				case "5": window.open("/brochure/press.pdf"); return;
				default: return;
			}
		case "satellite": 
			switch (flag2)
			{
				case "1": location.href = "/product/satellite_biz.asp#go1"; return;
				case "2": location.href = "/product/satellite_biz.asp#go2"; return;
				case "3": location.href = "/product/satellite_biz.asp#go3"; return;
				case "4": location.href = "/product/satellite_biz.asp#go4"; return;
				default: return;
			}
		default: break;
	}
}


function showPop(shImg){
	satePop = document.getElementById('satellitePopIn');
	var getImg = satePop.getElementsByTagName("img");
	
	for (i=0; i<getImg.length; i++){
		var ele = document.getElementById(shImg);
		
		if (ele == getImg[i])
		{
			getImg[i].style.display = "block";
		} else {
			getImg[i].style.display = "none";
		}
	}
}

/********************************잘생긴경팀장 자스************************************/
    function ImgViewer(obj, vDivID){
        var xNodeobj = obj.parentNode;
        var SameLevObj
        var SameImgSrc, ViewImgObj, ViewImgSrc
        
        //같은 수준에 존재하는 이미지의 객체를 찾는다.
        for(x=0;x<xNodeobj.childNodes.length;x++){
            if(xNodeobj.childNodes[x].tagName == "IMG" && obj.src != xNodeobj.childNodes[x].src){
                SameLevObj = xNodeobj.childNodes[x];
            }
        }
        
        //보여줘야할 이미지명을 조합한다.
        SameImgSrc = SameLevObj.src.substring(SameLevObj.src.indexOf("/",SameLevObj.src.indexOf("/") + 2));
        ViewImgSrc = SameImgSrc.substring(0, SameImgSrc.lastIndexOf("_") + 1) + "pop" + SameImgSrc.substring(SameImgSrc.lastIndexOf("_") + 1, SameImgSrc.length);
        
        document.getElementById(vDivID).innerHTML = "";
        //태그생성
        
        if(navigator.appName == "Netscape"){
            ViewImgObj = document.createElement("img");
            ViewImgObj.setAttribute("onclick", "ImgCloser(this)");
        }
        else{
            ViewImgObj = document.createElement("<img onclick='javascript:ImgCloser(this)'>");
        }
        ViewImgObj.setAttribute("src", ViewImgSrc);
       
        //태그시각화
        document.getElementById(vDivID).appendChild(ViewImgObj)
    }
    
    function ImgCloser(obj){
        var xNodeobj = obj.parentNode;
        xNodeobj.innerHTML = "";
    }
/********************************잘생긴경팀장 자스************************************/



function fair(flag){
	if (flag ==  "open"){
		document.getElementById("fairNotice").style.display = "block";
	}
	else if (flag ==  "close"){
		document.getElementById("fairNotice").style.display = "none";
	}
}


function top(flag){
	if (flag ==  "1"){
		location.href = "/main/index.asp";
	}
	else if (flag ==  "2"){
		location.href = "/sitemap/sitemap.asp";
	}
	else if (flag ==  "3"){
		location.href = "/customer/inquiry_list.asp";
	}
}

function goTop() {
	window.scrollTo(0,0);
}


function movingPop(flag){

	var width = 410;
	var height = 375;
	var calLeft = Math.round((screen.width / 2) - (width / 2));
	var calTop = Math.round((screen.height / 2) - (height / 2) - 50);

	if (flag == 'pre'){
		window.open ('/popup/forming_pre.asp', 'formingPre', 'width=410, height=375, scrollbars=no, top=' + calTop + ', left=' + calLeft);
	}
	else if (flag == 'post'){
		window.open ('/popup/forming_post.asp', 'formingPost', 'width=410, height=375, scrollbars=no, top=' + calTop + ', left=' + calLeft);
	}
	else if (flag == 'all'){
		window.open ('/popup/forming_all.asp', 'formingAll', 'width=410, height=375, scrollbars=no, top=' + calTop + ', left=' + calLeft);
	}
}





/* recruit pop */


function recruitPop(flag){

	var width = 410;
	var height = 400;
	var calLeft = Math.round((screen.width / 2) - (width / 2));
	var calTop = Math.round((screen.height / 2) - (height / 2) - 50);

	if (flag == 'pic'){
		window.open ('/popup/resume_pic.asp', 'resumePic', 'width=410, height=285, scrollbars=no, top=' + calTop + ', left=' + calLeft);
	}
	else if (flag == 'address'){
		window.open ('/popup/address_find.asp', 'findAddress', 'width=410, height=400, scrollbars=no, top=' + calTop + ', left=' + calLeft);
	}
	else if (flag == 'findpw'){
		window.open ('/popup/pw_find.asp', 'findPw', 'width=410, height=400, scrollbars=no, top=' + calTop + ', left=' + calLeft);
	}
	else if (flag == 'findsch'){
		window.open ('/popup/select_sch.asp', 'selectSch', 'width=410, height=380, scrollbars=no, top=' + calTop + ', left=' + calLeft);
	}
}


function submitPop(flag){
	if (flag == 'show'){
		document.getElementById('submitPop').style.display = "block";
	}
	else if (flag == 'hide'){
		document.getElementById('submitPop').style.display = "none";
		location.href = "/recruit/announce.asp";
	}
}



function machine(flag){
	if (flag ==  "0"){
		location.href = "/product/tool_turning.asp";
	}
	else if (flag ==  "1"){
		location.href = "/product/tool_vertical.asp";
	}
	else if (flag ==  "2"){
		location.href = "/product/tool_horizontal.asp";
	}
	else if (flag ==  "3"){
		location.href = "/product/tool_boring.asp";
	}
	else if (flag ==  "4"){
		location.href = "/product/tool_milling.asp";
	}
}




function car(flag){
	if (flag ==  "1"){
		location.href = "/product/car_engine.asp";
	}
	else if (flag ==  "2"){
		location.href = "/product/car_module.asp#go1";
	}
	else if (flag ==  "3"){
		location.href = "/product/car_component.asp#go3";
	}
	else if (flag ==  "4"){
		location.href = "/product/car_component.asp#go6";
	}
	else if (flag ==  "5"){
		location.href = "/product/car_module.asp#go1";
	}
	else if (flag ==  "6"){
		location.href = "/product/car_component.asp#go4";
	}
	else if (flag ==  "7"){
		location.href = "/product/car_module.asp#go1";
	}
	else if (flag ==  "8"){
		location.href = "/product/car_component.asp#go5";
	}
	else if (flag ==  "9"){
		location.href = "/product/car_module.asp#go2";
	}
	else if (flag ==  "10"){
		location.href = "/product/car_module.asp#go3";
	}
	else if (flag ==  "11"){
		location.href = "/product/car_component.asp#go1";
	}
}

