function login()
{
	strUrl="login.html";
	window.open( strUrl, "_blank", "width=600,height=320,menubar=no,location=no,resizable=no,scrollbars=no");
}
function newWindow1() {
 popupWindow = window.open('http://starnex.co.kr/video/11.wmv','third','toolbar=no,location=no,scrollbars=yes,status=yes,width=400,height=360')
}

function newWindow2() {
 popupWindow = window.open('http://starnex.co.kr/video/arirang.wmv','Arirang','toolbar=no,location=no,scrollbars=yes,status=yes,width=400,height=360')
}

function newWindow3() {
 popupWindow = window.open('http://starnex.co.kr/video/Starnex_3min_en.avi','Product','toolbar=no,location=no,scrollbars=yes,status=yes,width=400,height=360')
}

function newWindow4() {
 popupWindow = window.open('http://starnex.co.kr/video/Starnex_3min_kr.avi','Product','toolbar=no,location=no,scrollbars=yes,status=yes,width=400,height=360')
}

function newWindow5() {
 popupWindow = window.open('http://starnex.co.kr/video/SelfGuard.asf','SelfGaurd','toolbar=no,location=no,scrollbars=yes,status=yes,width=400,height=360')
}

function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
function searchform_check()
{
	document.Search.submit();
}
function PassCheck()
{
	
	
	if(document.Password.password.value=='')
		{
			alert ('please input password!');
			document.Password.password.focus();
		 	return;
		 }
	for (var i = 0; i < Password.password.value.length; i++){
         var oneChar = Password.password.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
         
        }
        
        for (var k = 0; k < Password.password.value.length; k++){
         var oneChar = Password.password.value.charAt(k)
         if (k==0) 
         {
         	if (oneChar!="S") 
         	{
         		alert ('wrong password!');
         		return;
         	}
         }
         if (k>0)
         {
         	if ((oneChar!="1") && (oneChar!="2") && (oneChar!="3") && (oneChar!="4")&& (oneChar!="5")&& (oneChar!="6")&& (oneChar!="7")&& (oneChar!="8")&& (oneChar!="9")&& (oneChar!="0"))
         	{
         	alert ('wrong password!');
         	return;
        	}
         }
         
        }
        if(k != 13)
        {
        	alert ('wrong password!');
         	return;
        }
	Password.submit();
}
function NoticeCheck()
{
	for (var i = 0; i < Notice.title.value.length; i++){
         var oneChar = Notice.title.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	
	for (var i = 0; i < Notice.comment.value.length; i++){
         var oneChar = Notice.comment.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	
	
	if(document.Notice.title.value=='')
		{
			alert ('please input the title!');
			document.Notice.title.focus();
		 	return;
		 }
	if(document.Notice.comment.value=='')
		{
			alert ('please input the content!');
			document.Notice.comment.focus();
		 	return;
		 }
	
	
	Notice.submit();
}
function DownloadT()
{
	
	for (var i = 0; i < Notice.title.value.length; i++){
         var oneChar = Notice.title.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	
	for (var i = 0; i < Notice.comment.value.length; i++){
         var oneChar = Notice.comment.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	
	 attach = document.Notice.FileTitle.value; 
        
    	 if(attach.length>0){ 
         dot = attach.lastIndexOf("."); 
         ext = attach.substring(dot); 
         
         if(dot<0 || (ext==".asp" || ext == ".ASP"  || ext == ".php"  || ext == ".html" || ext == ".HTML" || ext == ".PHP" || ext == ".htm")){ 
            alert("wrong data."); 
           
            return; 
        } 
	}
	
	if(document.Notice.title.value=='')
		{
			alert ('please input the title!');
			document.Notice.title.focus();
		 	return;
		 }
	if(document.Notice.FileTitle.value=='')
		{
			alert ('please select the file!');
			document.Notice.FileTitle.focus();
		 	return;
		 }
	if(document.Notice.comment.value=='')
		{
			alert ('please input the content!');
			document.Notice.comment.focus();
		 	return;
		 }
	
	
	Notice.submit();
}
function DownloadT1()
{
	for (var i = 0; i < Notice.title.value.length; i++){
         var oneChar = Notice.title.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	
	for (var i = 0; i < Notice.comment.value.length; i++){
         var oneChar = Notice.comment.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	
	 attach = document.Notice.FileTitle.value; 
        
    	 if(attach.length>0){ 
         dot = attach.lastIndexOf("."); 
         ext = attach.substring(dot); 
         
         if(dot<0 || (ext==".asp" || ext == ".ASP"  || ext == ".php"  || ext == ".html" || ext == ".HTML" || ext == ".PHP" || ext == ".htm")){ 
            alert("wrong data."); 
           
            return; 
        } 
	}
	
	
	if(document.Notice.title.value=='')
		{
			alert ('please input the title!');
			document.Notice.title.focus();
		 	return;
		 }
	
	if(document.Notice.comment.value=='')
		{
			alert ('please input the content!');
			document.Notice.comment.focus();
		 	return;
		 }
	
	
	Notice.submit();
}
function GuideCheck()
{
	for (var i = 0; i < guide.title.value.length; i++){
         var oneChar = guide.title.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	
	for (var i = 0; i < guide.Inputer.value.length; i++){
         var oneChar = guide.Inputer.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	for (var i = 0; i < guide.email.value.length; i++){
         var oneChar = guide.email.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
        for (var i = 0; i < guide.comment.value.length; i++){
         var oneChar = guide.comment.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
        
	
	if(document.guide.title.value=='')
		{
			alert ('please input the title!');
			document.guide.title.focus();
		 	return;
		 }
	if(document.guide.Inputer.value=='')
		{
			alert ('please input the name!');
			document.guide.Inputer.focus();
		 	return;
		 }
	if(document.guide.email.value=='')
		{
			alert ('please input the email!');
			document.guide.email.focus();
		 	return;
		 }
	if(document.guide.comment.value=='')
		{
			alert ('please input the content!');
			document.guide.comment.focus();
		 	return;
		 }
	
	
	guide.submit();
}
function ExampleCheck()
{
	for (var i = 0; i < Notice.title.value.length; i++){
         var oneChar = Notice.title.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	if(document.Notice.title.value=='')
		{
			alert ('please input the title!');
			document.Notice.title.focus();
		 	return;
		 }
	
	
	Notice.submit();
}
function ExamplePic()
{
	 attach = document.Example.FileTitle.value; 
        
    	 if(attach.length>0){ 
         dot = attach.lastIndexOf("."); 
         ext = attach.substring(dot); 
         
         if(dot<0 || (ext==".asp" || ext == ".ASP"  || ext == ".php"  || ext == ".html" || ext == ".HTML" || ext == ".PHP" || ext == ".htm")){ 
            alert("wrong data."); 
           
            return; 
        } 
	}
	
	
	if(document.Example.FileTitle.value=='')
		{
			alert ('please select the file!');
			document.Example.FileTitle.focus();
		 	return;
		 }
	
	
	Example.submit();
}
function MailSend()
{
	
	for (var i = 0; i < MailForm.title.value.length; i++){
         var oneChar = MailForm.title.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
        
        for (var i = 0; i < MailForm.comment.value.length; i++){
         var oneChar = MailForm.comment.value.charAt(i)
         if (oneChar=="'") 
         {alert ('wrong data!');
         return;
         }
        }
	if(document.MailForm.title.value=='')
		{
			alert ('please input the tile!');
			document.MailForm.title.focus();
		 	return;
		 }
	if(document.MailForm.comment.value=='')
		{
			alert ('please input the content!');
			document.MailForm.comment.focus();
		 	return;
		 }
	MailForm.submit();
}


<!--
// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,win){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

}
-->