//Post A Seal
function PostSeal() {
	var strMessage;
	strMessage="Do you want to post a seal for  the selected auctions?"
	var agree=confirm(strMessage);
	if (agree) {
		frmDashBoard.action="PostSeal.asp"
		frmDashBoard.submit(); 
	} else {
		window.frmDashBoard.focus();
	}
}


//Post A Seal
function GetEbayAuctionInfo() {
	frmDashBoard.action="DashBoard.asp?Mode=EA"
	frmDashBoard.submit(); 
}



//Select All Open Auctions
function checkall() {
	var el_collection=eval("document.forms.frmDashBoard.chk_Auction")
	for (c=0;c<el_collection.length;c++)
		el_collection[c].checked=true
}



function DisplayTotal(sAmt) {
	var sTotal;
	sTotal=document.getElementById("totalAmt").innerText;	
	sTotal=sTotal + sAmt ;
	totalAmt.innerText=sTotal;
}


  
function addNum() {
	var tf = window.document.the_form;
	var a = tf.DB371.value;
	var b = tf.DB372.value;
	var c;
	if (a != "" && b != "") {
    a = parseInt(a);
    b = parseInt(b);
    c = a + b;
    tf.Total.value = c;
	} else {
		return true;
	}
}



//Display Help Window 
function LoadHelp() {
	var hWnd=window.open("../help_employees/webhelp/employeehelp.htm","LoadWindow",",toolbar=no,menubar=no,left=175,top=150,width=600,height=400,resizable=yes,title=no,scrollbars=yes,status=no");
	if (document.window != null && !hWnd.opener)
		hWnd.opener = document.window;
}



//Display Edit User Account
function EditUserAccount(str1, str2, str3) {
	var url;
	url="../comman/EditAccount.asp?Userid=" + str1 + "&Type=" + str2 + "&E=" + str3
	var hWnd=window.open(url,"LoadWindow",",toolbar=no,menubar=no,left=510,top=185,width=400,height=320,resizable=no,title=no,scrollbars=no,status=no");
	if (document.window != null && !hWnd.opener)
		hWnd.opener = document.window;
}



//Display AuctioninFo
function AuctioninFo(str) {
	var url;
	url="AuctioninFo.asp?Item=" + str
	var hWnd=window.open(url,"LoadWindow",",toolbar=no,menubar=no,left=175,top=150,width=400,height=290,resizable=no,title=no,scrollbars=no,status=no");
	if (document.window != null && !hWnd.opener)
		hWnd.opener = document.window;
}



function DisplayMiniWindow(windowpage, popupwidth, popupheight) {
	window.open(windowpage, '', 'width=' + popupwidth + ',height=' + popupheight +
		',location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
}