// JavaScript Document

function openWinCentered(loc, winname, widthh, heightt, params)
 {
            tp = Math.ceil((screen.height-heightt)/2);
            lf = Math.ceil((screen.width-widthh)/2);
            if (params.length > 0)
	        params = "," + params;

            var win=window.open(loc,winname,"width="+widthh+",height="+heightt+",top="+tp+",left="+lf+params);
            win.focus();
            return win;
}
 

function postIt(idd)
   {
        var invIDs = document.getElementById('invIDs');

        if (invIDs.value.indexOf(idd+':')>-1)
        { //id is unselecting
            var st = invIDs.value.indexOf(idd+':');
            var stEnd = st+4;
            var ssTemp = invIDs.value.substring(0,st)+invIDs.value.substring(stEnd,invIDs.value.length);
            //alert('ssTemp='+ssTemp);
            invIDs.value=ssTemp;

        }
        else
        { //id is selecting
            invIDs.value += idd+':';
        }
          //alert('Result: '+idd+"\n"+selectedID);
   }

function viewArray()
   {
     alert(invIDs.value);
   }

function relancer()
   {

    alert(invIDs.value);

    return false;
   }

function annuler()
   {
    alert(invIDs.value);
    return false;
   }

function Image1_onclick() {

}

function Image2_onclick() {

}

var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}

function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}

var Page_Validators =  new Array(document.getElementById("RequiredFieldValidator1"));

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}












