//캄보디아

	var URL = "/khmer/";
	var HOME = "/english/";

	function OpenWin(url){
	Openwidnow = window.open(url,"Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
	}

	function OpenWin_size(url){
	Openwidnow_size = window.open(url,"Openwindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=820,height=700");
	}
	
	
	function M00(rnum){ // 메인으로(로고)
		if(rnum == 0){
			location.href = URL+"index.php";	    // 메인으로(로고)
		}				
	}


	function M01(rnum){ // About SECC  
		if(rnum == 0){
			location.href = URL+"m11.php?pn=1&sn=1";       //Vision & Mission
		}
		if(rnum == 1){
			location.href = URL+"m11.php?pn=1&sn=1";       //Vision & Mission
		}
		if(rnum == 2){
			location.href = URL+"m12.php?pn=1&sn=2";       // Chairperson
		}
		if(rnum == 3){
			location.href = URL+"m13.php?pn=1&sn=3";       //Members   
		}
		if(rnum == 4){
			location.href = URL+"m14.php?pn=1&sn=4";       //Organization    
		}
		if(rnum == 5){
			location.href = URL+"m15.php?pn=1&sn=5";       //Careers     
		}
		if(rnum == 6){
			location.href = URL+"m16.php?pn=1&sn=6";       //Photo Gallery   
		}
	}
	
	
	function M02(rnum){ // Laws & regulations 
		if(rnum == 0){
			location.href = URL+"m20.php?pn=2&sn=1";       //Genneral
		}
		if(rnum == 1){
			location.href = URL+"m21.php?pn=2&sn=1";       //Laws 
		}
		if(rnum == 2){
			location.href = URL+"m22.php?pn=2&sn=2";       //Anukrets  
		}
		if(rnum == 3){
			location.href = URL+"m23.php?pn=2&sn=3";       //Prakas 
		}
		if(rnum == 4){
			location.href = URL+"m24.php?pn=2&sn=4";       //Order & Guidelines 
		}
		if(rnum == 5){
			location.href = URL+"m25.php?pn=2&sn=5";       //Other Laws
		}
	}


	function M03(rnum){ // Disclosure
		if(rnum == 0){
			location.href = URL+"m31.php?pn=3&sn=1";       //Introduction 
		}
		if(rnum == 1){
			location.href = URL+"m31.php?pn=3&sn=1";       //Introduction
		}
		if(rnum == 2){
			location.href = URL+"m32.php?pn=3&sn=2";       //Latest Disclosure 
		}		
		if(rnum == 3){
			location.href = URL+"m33.php?pn=3&sn=3";       //Disclosure Search
		}		
	}
	
	function M04(rnum){ // Investors
		if(rnum == 0){
			location.href = URL+"m41.php?pn=4&sn=1";       //Brochures  
		}
		if(rnum == 1){
			location.href = URL+"m41.php?pn=4&sn=1";       //Brochures  
		}
		if(rnum == 2){
			location.href = URL+"m42.php?pn=4&sn=2";       //Educations 
		}
		if(rnum == 3){
			location.href = URL+"m43.php?pn=4&sn=3";       //Complaint
		}
	}
	
	function M05(rnum){ // Market Participants
		if(rnum == 0){
			location.href = URL+"m51.php?pn=5&sn=1";       //Market Operator
		}
		if(rnum == 1){
			location.href = URL+"m51.php?pn=5&sn=1";       //Market Intermediar
		}
		if(rnum == 2){
			location.href = URL+"m52.php?pn=5&sn=2";       //CIS
		}
		if(rnum == 3){
			location.href = URL+"m53.php?pn=5&sn=3";       //Market Participants
		}
	}
	
	function M06(rnum){ // Market Info
		if(rnum == 0){
			location.href = URL+"m63.php?pn=6&sn=1";       //Market Index 
		}
		if(rnum == 1){
			location.href = URL+"m63.php?pn=6&sn=1";       //Market Index 
		}
		if(rnum == 2){
			location.href = URL+"m64.php?pn=6&sn=2";       //Trading Info 
		}
		if(rnum == 3){
			location.href = URL+"m63.php?pn=6&sn=3";       //World Index 
		}
		if(rnum == 4){
			location.href = URL+"m64.php?pn=6&sn=4";       //Exchange Rate
		}
	}
	
	function M07(rnum){ // News & Publication
		if(rnum == 0){
			location.href = URL+"m71.php?pn=7&sn=1";       //Speeches 
		}
		if(rnum == 1){
			location.href = URL+"m71.php?pn=7&sn=1";       //Speeches 
		}
		if(rnum == 2){
			location.href = URL+"m72.php?pn=7&sn=2";       //Press Releases 
		}
		if(rnum == 3){
			location.href = URL+"m73.php?pn=7&sn=3";       //Public Notices 
		}
		if(rnum == 4){
			location.href = URL+"m74.php?pn=7&sn=4";       //Reports  
		}
		if(rnum == 5){
			location.href = URL+"m75.php?pn=7&sn=5";       //Glossary
		}
	}
	
	function M08(rnum){ //Corporate Governance
		if(rnum == 0){
			location.href = URL+"m82.php?pn=8&sn=1";       //Corporate Governance
		}
		if(rnum == 1){
			location.href = URL+"m82.php?pn=8&sn=1";       //Corporate Governance
		}
	}
	
	
	function topmenu(rnum){ // top-menu
		if(rnum == 1){
			location.href = URL;      //home
		}
		if(rnum == 2){
			location.href = "https://supremecenter25.com/horde/imp/login.php";    //mail
		}
		if(rnum == 3){
			location.href = URL+"faq.php?pn=9&sn=1";	     //faq
		}
		if(rnum == 4){
			location.href = URL+"links.php?pn=11&sn=1";	     //link
		}
		if(rnum == 5){
			location.href = URL+"m81.php?pn=12";	     //down
		}
		if(rnum == 6){
			location.href = URL+"sitemap.php?pn=10&sn=1";	   //sitemap
		}
		if(rnum == 7){
			location.href = HOME;	     //eng
		}
		if(rnum == 8){
			location.href = URL+"location.php?pn=13&sn=1";	     //location
		}
		if(rnum == 9){
			location.href = URL+"search.php?pn=12&sn=1";	   //search
		}
	}	

function resizeIF(obj_name) 
{ 
	
	//if(!obj_name){obj_name ="bbs";}
	var iframeBody; 
    var H, Min; 

    // 최소 높이 설정 (너무 작아지는 것을 방지) 
    Min = 100; 
	MinW = 700;
    //var objs = document.getElementById(obj_name);
	var objs = document.getElementById("bbs");
	var objs_area = document.getElementById("bbsarea");
	iframeBody = (objs.contentWindow.document.getElementsByTagName('BODY'))[0]; 
    
	H = parseInt(iframeBody.scrollHeight) + 5; 
    objs.style.height =  (H<Min?Min:H) + 'px'; 
	objs_area.style.height =  (H<Min?Min:H) + 'px'; 
	
	W = parseInt(iframeBody.scrollWidth) + 5; 
    objs.style.width =  (W<MinW?MinW:W) + 'px';
	objs_area.style.width =  (W<MinW?MinW:W) + 'px';
    //window.scrollTo(1, 1); 
} 


function resize_IF(obj_name) 
{ 
    var iframeBody; 
    var H, Min; 

    // 최소 높이 설정 (너무 작아지는 것을 방지) 
    Min = 100; 
	MinW = 700;
    var objs = document.getElementById(obj_name);
	iframeBody = (objs.contentWindow.document.getElementsByTagName('BODY'))[0]; 
    
	H = parseInt(iframeBody.scrollHeight) + 5; 
    objs.style.height =  (H<Min?Min:H) + 'px'; 
	
	W = parseInt(iframeBody.scrollWidth) + 5; 
    objs.style.width =  (W<MinW?MinW:W) + 'px';
    //window.scrollTo(1, 1); 
} 

function resize_IF_value(obj_name,width,heigt) 
{ 
    var iframeBody; 
    var H, Min; 
    // 최소 높이 설정 (너무 작아지는 것을 방지) 
    Min = 100; 
	MinW = 700;
    var objs = document.getElementById(obj_name);
	iframeBody = (objs.contentWindow.document.getElementsByTagName('BODY'))[0]; 
    
    objs.style.height =  width + 'px'; 
    objs.style.width =  height + 'px';

} 
