
var User_Skin_Ck;
User_Skin_Ck = getCookie("Skin_CK");
if(User_Skin_Ck == ""){
	setCookie( "Skin_CK", "blue" , 1); 	
	//alert("±âº»½ºÅ²À¸·Î ¼³Á¤ÇÕ´Ï´Ù.");
}

function SetSkin(Skin_Color){ 
	setCookie( "Skin_CK", Skin_Color , 1); 	
	self.location.reload()
}

function showSkin(){ 
	var text 
	text ='<table>'
	text += '<tr><td align=center><img src="/images/skin_color.gif" border="0" usemap=#skin_color_Map></td></tr></table><map name=skin_color_Map id=skin_color_Map><area shape=rect coords=168,11,177,20 href="javascript:SetSkin(\'brown\');" /><area shape=rect coords=156,11,165,20 href="javascript:SetSkin(\'green\');" /><area shape=rect coords=142,11,151,20 href="javascript:SetSkin(\'sky\');" /><area shape=rect coords=130,11,139,20 href="javascript:SetSkin(\'orange\');" /><area shape=rect coords=115,11,124,20 href="javascript:SetSkin(\'blue\');" /></map>'
	SKIN_SUB.innerHTML=text 
}

function hideSkin(){ 
	SKIN_SUB.innerHTML='' 
}

// º»¹®±ÛÀÚÅ©±â +,-

function getFontCookie() {
	var cookie = getCookie("news_font_size");	
	if ( cookie == null ) return 16;
	if ( cookie.length ) return cookie; else return 16;
}


function scaleFont(val){

	var fontSize = parseInt(getFontCookie());
	var content_oc, lineHeight;

	if (val > 0) { 		
		
		if (fontSize <= 18) { 
			fontSize = fontSize + val;
			lineHeight = fontSize+Math.round(1.1*fontSize);			
		}

	} else {

		if (fontSize > 12) {
			fontSize = fontSize + val;
			lineHeight = fontSize+Math.round(1.1*fontSize);			
		}

	}

	content_oc = document.getElementById("content_oc");
	/*
	SubDiv_l =  content_oc.getElementsByTagName("DIV").length;
	for(i=0; i <SubDiv_l; i++){
		SubDiv =  content_oc.getElementsByTagName("DIV").item(i);	
		SubDiv.style.fontSize = fontSize + "px"; 
	}

	SubSpan_l =  content_oc.getElementsByTagName("SPAN").length;
	for(i=0; i <SubSpan_l; i++){
		SubSpan =  content_oc.getElementsByTagName("SPAN").item(i);	
		SubSpan.style.fontSize = fontSize + "px"; 
	}

	SubP_l =  content_oc.getElementsByTagName("P").length;
	for(i=0; i <SubP_l; i++){
		SubP =  content_oc.getElementsByTagName("P").item(i);	
		SubP.style.fontSize = fontSize + "px"; 
	}
	*/

	SubTD_l =  content_oc.getElementsByTagName("TD").length;
	for(i=0; i <SubTD_l; i++){
		SubTD =  content_oc.getElementsByTagName("TD").item(i);	
		SubTD.style.fontSize = fontSize + "px"; 
	}

	setCookie("news_font_size", fontSize, "1"); 	
} 

//±ÛÀÚÅ©±â Á¶Á¤


//ÇÁ¸°Æ®ÆäÀÌÁö
function printPage() { 
        var t_url = document.URL; // ÇöÀç ÆäÀÌÁöÀÇ urlÀ» ¾ò¾î³¿
        
        // urlÁß ºÒÇÊ¿äÇÑ ºÎºÐÀº Àß¶ó³¿
        t_url = t_url.substr(t_url.indexOf('/')+1); 
        t_url = t_url.substr(t_url.indexOf('/')+1); 
        t_url = t_url.substr(t_url.indexOf('/')); 
        
        // ÇöÀç ÆÄÀÏ¸í°ú µÚÀÇ ÆÄ¶ó¸ÞÅÍºÎºÐÀ» ºÐ¸®ÇÔ
        opt = t_url.substr(t_url.indexOf('?')+1); 
        fn = t_url.substr(0,t_url.lastIndexOf('?')); 

// & ·Î µÇ¾îÀÖ´Â ÆÄ¶ó¸ÞÅÍ ±¸ºÐÀÚ¸¦ | ·Î ¹Ù²Þ
// ÀÌ´Â »õ·Î¿îÆäÀÌÁö·Î ³Ñ±æ¶§ ÆÄ¶ó¸ÞÅÍ°ªÀ» Ãæµ¹(?)À» ¹æÁöÇÏ±â À§ÇÔ 
        add = '|'; 
        out = '&'; 
        temp = opt; 
         
        while (temp.indexOf(out)>-1) { 
                pos= temp.indexOf(out); 
                temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length));
        } 

        opt=temp; 
         
        if( fn.length == 0 )fn=opt; 

// »õÃ¢À»¿­°í ÆÄÀÏ¸í°ú request °ªÀ» ³Ñ°ÜÁÜ
        link_page = "/include/print_contents.php?opt="+opt+"&fn="+fn;
		window.open(link_page,"print","width=720,height=700,left=200,top=50,scrollbars=yes,toolbar=no");
} 
//ÇÁ¸°Æ®ÆäÀÌÁö

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

function newWindow1(imgname,name,width,height)
{
	url="gallery_zoom.html?imgname="+imgname+"&width="+width+"&height="+height;
	window.open(url,name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=680,height=655");
}

function newWindow2(url,name)
{
	window.open(url,name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=705,height=610");
}

function newWindow3(url,name)
	{
		window.open(url,name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=670,height=610");
	}
	
function newWindow4(url,name)
	{
		window.open(url,name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=460,height=490");
	}
function newWindow5(url,name)
	{
		window.open(url,name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=563,height=490");
	}
// ´ã´çÀÚ ÀüÈ­¹øÈ£ °Ë»ö½Ã¿¡ »ç¿ëµÊ
function searchchk()
{
	if(introsearch.person.value.length<1 || introsearch.person.value=="´ã´çÀÚ ¼º¸í") 
	{
		alert('´ã´çÀÚ ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		introsearch.person.focus();
		return false;
	}
	return true;
}

function setCookie( name, value, expiredays )
{
 var todayDate = new Date(); 
 todayDate.setDate( todayDate.getDate() + expiredays );
 document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function getCookie( name ){
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x <= document.cookie.length )
	{
		var y = (x+nameOfCookie.length);
		if ( document.cookie.substring( x, y ) == nameOfCookie ) {
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
			endOfCookie = document.cookie.length;
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		
		x = document.cookie.indexOf( " ", x ) + 1;
		
		if ( x == 0 ) break;
	}
			return "";
}

function openwin1(code,linkurl,width,height,scroll)
{		
	/*** ÆË¾÷ Ã¢ È­¸é Áß¾Ó¿¡ ¿ÀÇÂ½ÃÅ°±â**/
	
	if ( getCookie(code) != "done" )	{
	    var str;
	    
	    str = "height=" + height + ",innerHeight=" + height;
	    str += ",width=" + width + ",innerWidth=" + width;
	    if(scroll==1) str += ",scrollbars=yes";
	
	    if (window.screen) {
	        var ah = screen.availHeight - 30;
	        var aw = screen.availWidth - 10;
	        var xc = (aw - width) / 2;
	        var yc = (ah - height) / 2;
	
	        str += ",left=" + xc + ",screenX=" + xc;
	        str += ",top=" + yc + ",screenY=" + yc;

	    }
		//ÆË¾÷ÀÌ ¾øÀ»½Ã ¾Æ·¡ 2ÁÙ ¾ÕºÎºÐÀ» "//"À¸·Î °¡·ÁÁÜ
	    noticeWindow = window.open(linkurl, code , str);
	    //noticeWindow.opener = self;
	    noticeWindow.focus();
	}
}


function openwin2(code,linkurl,width,height,top,left,scroll)
{		

	if ( getCookie(code) != "done" )
	{
		 //ÆË¾÷ÀÌ ¾øÀ»½Ã ¾Æ·¡ 2ÁÙ ¾ÕºÎºÐÀ» "//"À¸·Î °¡·ÁÁÜ
		
		str = "scrollbars=yes,width=" + width +", height="+ height +", top="+ top +", left=" + left;
		
		if(scroll==1) str += ",scrollbars=yes";
		else  str += ",scrollbars=no";
		noticeWindow = window.open(linkurl, code , str);
		
		//noticeWindow.opener = self;
	}
}

function open_win(code,linkurl,width,height,scroll)
{		
	/*** ÆË¾÷ Ã¢ È­¸é Áß¾Ó¿¡ ¿ÀÇÂ½ÃÅ°±â**/
	
	if ( getCookie(code) != "done" )	{
	    var str;
	    
	    str = "height=" + height + ",innerHeight=" + height;
	    str += ",width=" + width + ",innerWidth=" + width;
	
	    if (window.screen) {
	        var ah = screen.availHeight - 30;
	        var aw = screen.availWidth - 10;
	        var xc = (aw - width) / 2;
	        var yc = (ah - height) / 2;
	
	        str += ",left=" + xc + ",screenX=" + xc;
	        str += ",top=" + yc + ",screenY=" + yc;
	        if(scroll==1) str += ",scrollbars=yes";

	    }
		//ÆË¾÷ÀÌ ¾øÀ»½Ã ¾Æ·¡ 2ÁÙ ¾ÕºÎºÐÀ» "//"À¸·Î °¡·ÁÁÜ
	    bannerWindow = window.open(linkurl, code , str);
	    //bannerWindow.opener = self;
	    bannerWindow.focus();
	}
}


function open_win_all(code,linkurl,width,height,scroll)
{		
	/*** ÆË¾÷ Ã¢ È­¸é Áß¾Ó¿¡ ¿ÀÇÂ½ÃÅ°±â**/
	    
	    str = "height=" + height + ",innerHeight=" + height;
	    str += ",width=" + width + ",innerWidth=" + width;
	
	    if (window.screen) {
	        var ah = screen.availHeight - 30;
	        var aw = screen.availWidth - 10;
	        var xc = (aw - width) / 2;
	        var yc = (ah - height) / 2;
	
	        str += ",left=" + xc + ",screenX=" + xc;
	        str += ",top=" + yc + ",screenY=" + yc;
	        if(scroll==1) str += ",scrollbars=yes";

	    }
		//ÆË¾÷ÀÌ ¾øÀ»½Ã ¾Æ·¡ 2ÁÙ ¾ÕºÎºÐÀ» "//"À¸·Î °¡·ÁÁÜ
	    bannerWindow = window.open(linkurl, code , str);
	    //bannerWindow.opener = self;
	    bannerWindow.focus();
}


function pagemove(form,formselect)
{
	var gval="";
	gval = formselect.options[formselect.selectedIndex].value;
	if(gval=="minwon_08_01_05.html") {
		openwin1('minwonselect','minwon_08_01_05.html',466,500,1);
		return false;
	}
	
	if(gval=="welfare_05_03.html" || gval=="/welfare/welfare_05_03.html") {
		openwin1('welfareselect','/welfare/jawon2.htm',587,500,1);
		return false;
	}
	
	if(gval=="welfare_05_05.html") {
		openwin1('welfareselect','/welfare/welfare_05_05.html',587,500,1);
		return false;
	}


	if(gval=="") {
		return false;
	}
	else 
	{
		form.action= gval;
		if(gval.substring(0,4)=="http") form.target="_blank";
		else  form.target="_self";
		form.submit();
	}
}

function pagemove2(form,formselect)
{
	var gval="";
	gval = formselect.options[formselect.selectedIndex].value;
	if(gval=="") {
		return false;
	}
	else 
	{
		location.href= gval;
	}
	
}

function ZoomWindow(imgname,name,width,height,title)
{
	url="gallery_zoom.html?imgname="+imgname+"&width="+width+"&height="+height+"&title="+title;
	window.open(url,name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=630,height=620");
}

function ZoomWindow2(imgname,name,width,height,title)
{
	url="gallery_zoom_02.html?imgname="+imgname+"&width="+width+"&height="+height+"&title="+title;
	window.open(url,name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=630,height=620");
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function viewImage1(img,W,H){ 
	str = 'height=' + H + ',innerHeight=' + H;
	str += ',width=' + W + ',innerWidth=' + W;
	
	if (window.screen) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		var xc = (aw - W) / 2;
		var yc = (ah - H) / 2;
		
		str += ',left=' + xc + ',screenX=' + xc;
		str += ',top=' + yc + ',screenY=' + yc;
		if(scroll==1) str += ',scrollbars=yes';
	}
	img = escape(img);            
	imgWin=window.open('/gallery/zoom.html?img='+img,'img',str); 
}

function viewImage2(img){ 
        W=document.imagezoom.winwidth.value; 
        H=document.imagezoom.winheight.value; 

	str = 'height=' + H + ',innerHeight=' + H;
	str += ',width=' + W + ',innerWidth=' + W;
	
	if (window.screen) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		var xc = (aw - W) / 2;
		var yc = (ah - H) / 2;
		
		str += ',left=' + xc + ',screenX=' + xc;
		str += ',top=' + yc + ',screenY=' + yc;
		if(scroll==1) str += ',scrollbars=yes';
	}
	img = escape(img);
	imgWin=window.open('/gallery/zoom.html?img='+img,'img',str); 
}

function change_img(img_big){
	var img_big = img_big;
	document.big_photo.src=img_big;
}

function performyear(f,url)
{
	window.location.href=url+"?year="+f.year.options[f.year.selectedIndex].value;
}

function performmonth(f,url)
{
	window.location.href=url+"?year="+f.year.options[f.year.selectedIndex].value+"&mon="+f.mon.options[f.mon.selectedIndex].value;
} 

/* ¾ÆÀÌÇÁ·¹ÀÓ ¸®»çÀÌÁî */

function reSize()
{
	var BoardMainFrame = main_contents.document.body;
	var ContentFrame = document.all["main_contents"];

	ContentFrame.style.height = BoardMainFrame.scrollHeight + (BoardMainFrame.offsetHeight - BoardMainFrame.clientHeight);
	ContentFrame.style.width = BoardMainFrame.scrollWidth + (BoardMainFrame.offsetWidth - BoardMainFrame.clientWidth); 

}
/* ¸®»çÀÌÁî ³¡ */

/* e-catalog */
function ecatalogOpen(url)
{
	if(screen.width>1024) openwin1('e_catalog',url,1000,675,0);
	else {
		if(screen.width==1024) window.open(url,"e_catalog","fullscreen,scrollbars=no");
		else alert('¿ÁÃµ±ººê·Î½´¾î´Â ÇØ»óµµ 1024¡¿768 ºÎÅÍ Áö¿øÀÌ µË´Ï´Ù.');
	}
	
}
/* e-catalog ³¡ */



//ÀÌ¹ÌÁö¿À¹ö
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
// Á¡ÇÁ¸Þ´º(·¹ÀÌ¾î¿¡¼­)
function MM_jumpMenu(selObj,restore){ //v3.0
  eval('parent'+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// ·¹ÀÌ¾îº¸ÀÓ_¾Èº¸ÀÓÁ¦¾î
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


// »õÃ¢¶ç¿ì±â
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//ÀÎ¼â ÆäÀÌÁö
function printContent(site) 
{
	if(site) param = "?site="+site;
	else param = "";
	window.open("/include/print_contents.php"+param,"print","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=700");
}

//ÀÎ¼â ÆäÀÌÁö
function printContent_eng() 
{
	window.open("/include/print_contents_eng.php","print","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=700");
}

//¸ÞÀÏ º¸³»±â
function printMail()
{
	window.open("/include/mail_send.html","mail","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=700,height=540");
}

function setClock() 
{ 
  var now = new Date(); 
  var Hours= now.getHours(); 
  var Minutes= now.getMinutes(); 
  var Seconds= now.getSeconds(); 
  var Value = Hours;
  Value+= ((Minutes <10) ? ":0" : ":") + Minutes 
  Value+= ((Seconds <10) ? ":0" : ":") + Seconds 
  document.clockform.clock.value = Value; 
  setTimeout ("setClock()", 1000); 
} 

function setClock2() 
{ 
	var now = new Date(); 
	var Hours= now.getHours(); 
	var Minutes= now.getMinutes(); 
	// var Seconds= now.getSeconds(); 
	var Value = Hours;
	Value+= ((Minutes <10) ? ":0" : ":") + Minutes 
	//Value+= ((Seconds <10) ? ":0" : ":") + Seconds 
	document.clockform.clock.value = Value; 
	setTimeout ("setClock()", 60000); 
} 

function viewOBJ(sourceHTML){
	document.write(sourceHTML);
}