// JavaScript Document

function photoAttach(typeImage, path){
newwin = window.open("/admin/dataEntry/attachPhoto.asp?typeImage=" + typeImage +"&path="+ path, "sub", "height=100, width=300")
newwin.focus()
}

function showFriend(userID){
newwin = window.open("/admin/manageMailingList/friendList.asp?userID=" + userID, "sub", "height=400, width=450, scrollbars")
newwin.focus()
}

function formSubmit(objForm, pageAction, doAction) {
		objForm.action = pageAction;
		objForm.doaction.value = doAction
		objForm.submit();
}

function searchAppeal(objForm, pageAction) {
		objForm.action = pageAction;
		objForm.submit();
}

function StringTrim(trimstring){
	var TestString = trimstring;
	var SpaceChar  = " ";
	while (TestString.charAt(0) == SpaceChar) {TestString = TestString.substr(1)};
	while (TestString.charAt(TestString.length-1) == SpaceChar) {TestString = TestString.substr(0,TestString.length-1)};
	return TestString;
}



function HL(el){el.className = "TopCellUP";}
function DL(el){el.className = "TopCell";}
function LP(url){document.location.href=url;}

