function ndswf(src, w, h ) {

	hstr = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+w+"\" height=\""+h+"\"> ";
	hstr += "<param name=\"movie\" value=\""+src+"\">";
        hstr += "<param name=\"quality\" value=\"high\">";
        hstr += "<param name=\"menu\" value=\"false\">";
        hstr += "<embed src=\""+src+"\" menu=\"false\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\"></embed>";
        hstr += "</object>";
	document.write(hstr);		
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function showManualsWindow_e(){
 var W = screen.width;
 var H = screen.height;
 var w_m;
 if( W >800) {WS = 800;}else{WS = W;}
 if( H >620) {HS = 600;}else{HS = H;}
 var OPTIONS = "WIDTH="+WS+",HEIGHT="+HS+",menubar=0,location=0,status=0,toolbar=0,resizable=0,scrollbars=1";
 w_m=window.open("http://www.kikusui.co.jp/manuals/index_e.php","Manuals",OPTIONS) ;
 }

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
No3 = (parseInt(navigator.appVersion) > 3) ? 1:0;
layer = (document.all && No3) ? "document.all['L'+menu].style" : (document.layers && No3) ? "document.layers['L'+menu]" : 0;
var timer;

function Show() { if(layer) {
        if(timer) clearTimeout(timer);
        for(menu=0; menu<Layer.length; menu++) { if(Layer[menu]) { eval(layer).visibility = "hidden"; } }
        for(i=0; i<arguments.length; i++) { menu=arguments[i]; eval(layer).visibility = "visible"; }
} }
function Hide() { timer = setTimeout("Show()", 500); }

function openwindow(fname,w,h,s){
	window.open(fname,"opnwn","width="+w+",height="+h+",scrollbars="+s);
}

//////////////////////////////////////////////////////////////////////////////////////////////////////

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

///////////////////////////////////////////////////////////////////////////////////////////////////////

function formchk1(){
	if(validCheck(frm.company,"¾÷Ã¼¸íÀ» "));
	else if(validCheck(frm.namez,"´ã´çÀÚ¸íÀ» "));
	else if(validCheck(frm.tel,"¿¬¶ôÃ³¸¦ "));
	else if(validCheck(frm.mail,"ÀÌ¸ÞÀÏÀ» "));
	else if(emailChk(frm.mail));
	else if(validCheck(frm.maker,"Á¦Ç°¸ÞÀÌÄ¿¸¦ "));
	else if(validCheck(frm.model,"¸ðµ¨¸íÀ» "));
	else if(validCheck(frm.serial,"½Ã¸®¾ó¹øÈ£¸¦ "));
	else if(validCheck(frm.content,"°íÀå³»¿ëÀ» "));
	else frm.submit();
}

function formchk2(){
	if(validCheck(frm.company,"¾÷Ã¼¸íÀ» "));
	else if(frm.locale.selectedIndex==0) alert("Áö¿ªÀ» ¼±ÅÃÇÏ¼¼¿ä!");
	else if(validCheck(frm.namez,"´ã´çÀÚ¸íÀ» "));
	else if(validCheck(frm.tel,"¿¬¶ôÃ³¸¦ "));
	else if(validCheck(frm.mail,"ÀÌ¸ÞÀÏÀ» "));
	else if(emailChk(frm.mail));
	else if(validCheck(frm.maker,"Á¦Ç°¸ÞÀÌÄ¿¸¦ "));
	else if(validCheck(frm.model,"¸ðµ¨¸íÀ» "));
	else if(validCheck(frm.service,"»ç¿ë¿ëµµ¸¦ "));
	else if(validCheck(frm.content,"¿äÃ»»çÇ×À» "));
	else frm.submit();
}

function formchk3(){
	if(validCheck(frm.company,"¾÷Ã¼¸íÀ» "));
	else if(frm.locale.selectedIndex==0) alert("Áö¿ªÀ» ¼±ÅÃÇÏ¼¼¿ä!");
	else if(validCheck(frm.namez,"´ã´çÀÚ¸íÀ» "));
	else if(validCheck(frm.tel,"¿¬¶ôÃ³¸¦ "));
	else if(validCheck(frm.mail,"ÀÌ¸ÞÀÏÀ» "));
	else if(emailChk(frm.mail));
	else if(validCheck(frm.maker,"Á¦Ç°¸ÞÀÌÄ¿¸¦ "));
	else if(validCheck(frm.model,"¸ðµ¨¸íÀ» "));
	else if(validCheck(frm.service,"»ç¿ë¿ëµµ¸¦ "));
	else if(validCheck(frm.content,"¹®ÀÇ³»¿ëÀ» "));
	else frm.submit();
}

function validCheck(object,msg){
	if(object.value==""){
		alert(msg+"ÀÔ·ÂÇÏ¼¼¿ä!");
		object.focus();
		return true;
	}else{
		return false;
	} // if else
}

function emailChk(mailObj){
	if(mailObj.value.search(/^\s*[\w\~\-\.]+\@[\w\~\-]+(\.[\w\~\-]+)+\s*$/g)){
		alert("¿Ã¹Ù¸¥ ¸ÞÀÏÇü½ÄÀÌ ¾Æ´Õ´Ï´Ù!");
		mailObj.value="";
		mailObj.focus();
		return true;
	}
}

//////////////////////////////////////////////////////////////////////////////////////////////////////

	function validateFileType(fileName)
	{
		var denyExts = "asp,jsp,php,java,class".split(",");
		if(fileName.lastIndexOf(".")+1 == fileName.length)
		{
			return false;
		}
		var fileExt = fileName.substring(fileName.lastIndexOf(".")+1).toLowerCase();
		for (var i=0;i<denyExts.length;i++)
		{
			if(fileExt == denyExts[i])
			{
				return false;
			}
		}
		return true;
	}

	function replaceChar(obj, fromChar, toChar)
	{
		var str = "" + obj.value;

		while (str.indexOf(fromChar) > -1)
		{
			pos= str.indexOf(fromChar);
			str = "" + (str.substring(0, pos) + toChar + str.substring((pos + fromChar.length), str.length));
		}
		return str;
	}

	function checkSchar(val)
	{
		var denyChar = "!@#$%^&*()-=+\|[]{}';:/?>,<`~";
		var chk = 0;

		for(var i = 0; i < val.length; i++)
		{
			for(var j = 0; j < denyChar.length; j++)
			{
				if(val.charAt(i) == denyChar.charAt(j)) chk++;
			}
		}

		if(chk > 0) return true;
		else return false;
	}

	function commaSplit(srcNumber)
	{
		var txtNumber = '' + srcNumber;
		var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
		var arrNumber = txtNumber.split('.');
		arrNumber[0] += '.';

		do
		{
			arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
		}
		while (rxSplit.test(arrNumber[0]));

		if (arrNumber.length > 1)
		{
			return arrNumber.join('');
		}
		else
		{
			return arrNumber[0].split('.')[0];
		}
	}

	function makeByte(val)
	{
		if(val < 1024) str = "Byte";
		else if(1024 < val)
		{
			val = parseInt(val / 1024);
			str = "Kb";
		}
		return commaSplit(val) + "<b><font color=red>" + str + "</font></b>"
	}

