﻿// JScript File

function CC_Getform(){
	var theform;
	if(window.navigator.appName.toLowerCase().indexOf("netscape")>-1){
		theform = document.forms["aspnetForm"];
	}else{
		theform = document.aspnetForm;
	}
	return theform;
}
function CC_Getelement(id) {
	var theelem;
	if(window.navigator.appName.toLowerCase().indexOf("netscape")>-1){
		theelem = document.getElementById(id);
	}else{
		var theform = CC_Getform();
		theelem = theform.elements(id);
	}
	return theelem;
}

function CC_goTop(){
    $("#ctl00_txtKeywords").focus();
}

function prompt_processing(){
    dhtmlmodal.openveil()
}
function close_processing(){
    dhtmlmodal.closeveil()
}

function doSavedata(){
    prompt_processing();
    if(!doSave()){
        close_processing();
        return false;
    }
    return true;
}

var M_setOf = new Array("N", "H", "B", "T", "I", "L", "LR", "R", "RR", "F");
function Relocate_extnews(){
    //$(document).ready(function(){ 
        var mi=0;
        while(mi<M_setOf.length){
            var m = M_setOf[mi];
            var des = $("div[id^='extnewsarea"+m+"']");
            des.each(function (di) {
                $("#CONTENTNEWS"+m).html($("#CONTENTNEWS"+m).html()+des.eq(di).html());
                des.eq(di).html("").hide();
            });
            mi++;
        }
    //});
}