﻿// JScript File
function getObject(objectId)
{
    if (document.all && !document.getElementById)
    {
        return document.all(objectId);
    }
    else
    {
        return document.getElementById(objectId);
    }
}

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}
        
function mouseover(_button,_cssname)
{
    var obj = getObject(_button);
    obj.className = _cssname;
}

function mouseout(_button,_cssname)
{
    var obj = getObject(_button);
    obj.className = _cssname;
}

function ChangeDisplay(targetID,diplayProperty)
{
    var obj = getObject(targetID);
    obj.style.display = diplayProperty;
}

function fnClickOK(sender, e) { 
        __doPostBack(sender,e); 
}

function submit_After(targetID, disabledCss, imageID)
{
    var obj = getObject(targetID)
    if (obj != null) 
    {
        obj.className = disabledCss;
        obj.disabled = true;
        getObject(imageID).style.display = "inline";
    }
}

