
function submit(form) {
		if (form_minilog.membership_id.value == "") {alert("Insert ID.");form_minilog.membership_id.focus();return;}
		if (form_minilog.membership_password.value == "") {alert("Insert Password.");form_minilog.membership_password.focus();return;}
		{ form_minilog.submit();}		

		}

function focusmove() {
  document.form_minilog.membership_id.focus();
  return;
}


function cu(stat){
	if (stat == 1){ 
		document.all.cu1.style.display = "block"; 
		document.all.cu2.style.display = "none";
		} else if (stat == 2){  
		document.all.cu1.style.display = "none"; 
		document.all.cu2.style.display = "block";
		}
}




function bt(id,after) 
{ 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
}  



function channelChange(url)
{
    if (url != "_blank") {
//       location.href(url);
        window.open(url);
    }
	
}



function channelChange2(url)
{
    if (url != "") {
//        top.location.href = url;
        window.open(url);
    }
}


function winOpen(url,name,scr,sta,width,height) {
  window.open(url,name,'scrollbars='+scr+',status='+sta+',width='+width+',height='+height+'')
}


function resizeFrame(iframeObj){
        var innerBody = iframeObj.contentWindow.document.body;
        oldEvent = innerBody.onclick;
        innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; };
        var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
        iframeObj.style.height = innerHeight;
        var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
        iframeObj.style.width = innerWidth;     
        if( !arguments[1] )       
                this.scrollTo(1,1);
}


function showAnswer(i){
						var dd = document.all["a"+i];
						if(dd.style.display == "none")
							dd.style.display = "block";
						else
							dd.style.display = "none";
}