function MakeFlash(Url,Width,Height){                 
  document.writeln("<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=\"" + Width + "\" height=\"" + Height + "\">"); 
  document.writeln("<param name=\"movie\" value=\"" + Url + "\">"); 
  document.writeln("<param name=\"quality\" value=\"high\" />");     
  document.writeln("<param name=\"wmode\" value=\"transparent\">"); 
  document.writeln("<embed src=\"" + Url + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + Width + "\"  height=\"" + Height + "\">"); 
  document.writeln("</object>");     
}

  function setPng24(obj) {
      obj.width=obj.height=1;
      obj.className=obj.className.replace(/\bpng24\b/i,'');

      obj.style.filter =

      "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
      obj.src=''; 
      return '';
  }


function getExtension(file)
{
	while(file.indexOf("\\") != -1)
		file = file.slice(file.indexOf("\\") + 1);

	extension = file.substr(file.lastIndexOf(".")+1).toLowerCase();
	return extension;
}

function checkExtension(file)
{
	if(arr_extension!="")
	{
		extension = getExtension(file);
		for(var i=0;i<arr_extension.length;i++) 
		{
			if(arr_extension[i] == extension)
			{	 
				return true; 			
				break; 
			}
		}
		return false; 			
	}
	else
	{
		return true;
	}
}

function JuminNumCheck(code1, code2)
{
	var ssno=code1+ "-" + code2;

	if (isNaN(parseInt(code1))) return false;
	if (isNaN(parseInt(code2))) return false;

	tval=ssno.charAt(0)*2 + ssno.charAt(1)*3 + ssno.charAt(2)*4
		+ ssno.charAt(3)*5 + ssno.charAt(4)*6 + ssno.charAt(5)*7
		+ ssno.charAt(7)*8+ ssno.charAt(8)*9 + ssno.charAt(9)*2
		+ ssno.charAt(10)*3 + ssno.charAt(11)*4 + ssno.charAt(12)*5;

	tval2=11- (tval % 11);
	tval2=tval2 % 10;

	if (ssno.charAt(13)==tval2 &&  (ssno.charAt(7)=="1" ||ssno.charAt(7)=="2"))
		return true;
	else
		return false;
}

function confirmUrl(url,msg)
{
	if(confirm(msg))
	{
		window.location.replace(url);
	}
}

var win=null;
function newWindow(mypage,myname,w,h,scroll,pos){ 
if(pos=='random'){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=='center'){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h-100)/2:100;}
else if((pos!='center' && pos!='random') || pos==null){LeftPosition=0;TopPosition=0}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
if(win.focus){win.focus();}
}