if(location.href.indexOf('http://www.kab.or.kr') >= 0)
{
	location.href = location.href.replace('http://www.kab.or.kr', 'https://www.kab.or.kr');
}
else if(location.href.indexOf('http://kab.or.kr') >= 0)
{
	location.href = location.href.replace('http://kab.or.kr', 'https://www.kab.or.kr');
}

	//Status Bar
	var msg = '¢Æ¢Æ¢Æ¢Æ¢Æ Welcome to Korea Accreditation Board! ¢Æ¢Æ¢Æ¢Æ¢Æ'; 
	function hideURL() { 
		window.status = msg; 
		timerID= setTimeout("hideURL()", 0); 
	} 
	hideURL(); 
	
	// ÄÁÆß ¸Þ¼¼Áö ¹Ú½º
	
	function ConfirmJavaScript(JSMessage,JSGotoPageURL) 
	{
			
		var ConFirmTxt = confirm(JSMessage);  
	
		if(ConFirmTxt){
			document.location.href = JSGotoPageURL;
		}	
		else{
			return;
		}	
	}	
	
	// ÀÌ¸ÞÀÏ Ã¼Å©
	
	function isEmail(s) 
	{
		  var i = 1;
		  var sLength = s.length;
		  
		  while ((i < sLength) && (s.charAt(i) != "@"))
		  { i++ }
		  
		  if (( i>= sLength) || (s.charAt(i) != "@")) return false;
		  else i += 2;
	
		  while ((i < sLength) && (s.charAt(i) != "."))
		  { i++  }
	
		  if (( i>= sLength - 1) || (s.charAt(i) != ".")) return false;
		  else return true;
	}
	
	
	// Ã¢ ¶ç¿ì±â
	
	var DefaultPopupView = null; 
	function DefaultPopup(CurrentOpenPageUrl,PopupName,Width,Height,Scroll){ 
		LeftPosition = (screen.width) ? (screen.width-Width)/2 : 0; 
		TopPosition = (screen.height) ? (screen.height-Height)/10 : 0; 
		PopupSetting = 'height='+Height+',width='+Width+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+Scroll+',resizable=0' 
		DefaultPopupView = window.open(CurrentOpenPageUrl,PopupName,PopupSetting) 
	}	
	
	//Document Write	
	function documentwrite(GotoSrcString)
	{
		document.write(GotoSrcString);
	}

	//ÇÃ·¡½¬ ÄÚµå

	function MakeFlashString(FlashFileURL,WIdthSize,HeightSize,WmodeString,FlashNameString,AlignString) 
	{
		if(WmodeString == "1")
		{
			return "<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=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" id=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\"><PARAM NAME=movie VALUE=\""+FlashFileURL+"\"><PARAM NAME=quality VALUE=high><PARAM NAME=\"allowScriptAccess\" VALUE=\"sameDomain\" /><PARAM NAME=\"wmode\" VALUE=\"transparent\" /><EMBED src=\""+FlashFileURL+"\" quality=high bgcolor=#FFFFFF WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" NAME=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"https://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>";
		}
		else
		{
			return "<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=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" id=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\"><PARAM NAME=movie VALUE=\""+FlashFileURL+"\"><PARAM NAME=quality VALUE=high><PARAM NAME=\"allowScriptAccess\" VALUE=\"sameDomain\" /><EMBED src=\""+FlashFileURL+"\" quality=high bgcolor=#FFFFFF WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" NAME=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"https://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>";
		}										
	}

	//µ¿¿µ»ó ÄÚµå

	function MakeMovieString(MovieFileURL,WIdthSize,HeightSize,MovieNameString,MovieAlign) 
	{
		return "<EMBED SRC=\""+MovieFileURL+"\" ALIGN=\""+MovieAlign+"\" WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" NAME=\""+MovieNameString+"\">";
	}

	