/* Keep the consistent Height of Contentarea for 1024Res. - not for longer usage */
function ContentAreaHeightCaution() 
{
	var BrakingBorder = document.getElementById("BrakingBorder").clientHeight;        
	if(BrakingBorder > '430')
	{
		alert("Developer! Recommend 1024by768 Resolution Height is exceeding!");
	}
}

/* To be used when the Show Address Book button on the Select project is enabled. */

function ShowAddressBookButtonEnable()
{
    window.open('AddressBook.aspx','addressBook','width=650,height=500,menubar=no,status=no,location=no,toolbar=no,scrollbars=yes'); 
    return false;
}

/* To be used when the Show Address Book button on the Select project is disabled. */

function ShowAddressBookButtonDisable()
{
    this.disabled = true;
    return false;
}

function ShowDatePickerEnable()
{
    window.open('DatePicker.aspx','datePicker','width=200,height=200,menubar=no,status=no,location=no,toolbar=no,scrollbars=yes'); 
    return false;
}

function ShowDatePickerDisable()
{
    this.disabled = true;
    return false;
}

function ShowDistributionListSunmmary() {
    window.open('DistributionListSummary.aspx', 'DistributionListSummary', 'width=650,height=500,menubar=no,status=no,location=no,toolbar=no,scrollbars=yes');
    return false;
}
/* Fill the selected address on Address Book to the Select Project page and close the Address Book popup. */

function FillSelectedAddress(firstName, lastName, company, address, zipCode, city, telephone)
{		
//    var fName=window.opener.parent.document.forms[0].getElementById('firstNameDataTextBox');
//    window.opener.parent.document.forms[0].elements[10].value=firstName;
//    window.opener.parent.document.forms[0].elements[11].value=lastName;	
//    window.opener.parent.document.forms[0].elements[12].value=company;	
//    window.opener.parent.document.forms[0].elements[13].value=address;	
//    window.opener.parent.document.forms[0].elements[14].value=zipCode;	
//    window.opener.parent.document.forms[0].elements[15].value=city;	
//    window.opener.parent.document.forms[0].elements[16].value=telephone;	
//    
//    window.close();
}
