function doHighlight(val){
	if (!document.getElementById("star_rating")) {
		return false;
	}
	for (var x = val; x > 0; --x) {
		document['e' + x].src = '/images/colored_star.gif'
	}
}



function doClear(val){
	if (!document.getElementById("star_rating")) {
		return false;
	}

	for (var x = val; x > 0; x--) {

		document['e' + x].src = '/images/blank_star.gif'

	}

}


function ShowPic(element_id){
	if (!document.getElementById) {
		return false;
	}
	if (!document.getElementById("locate_img")) {
		return false;
	}

	var locate_action = document.getElementById(element_id);

	locate_action.setAttribute("class", "visible");

}



var poppedWindow = null;
var http_request = false;
function popupWindow( pURL, pWindowName, pWindowFeatures ){
	closePoppedWindow();
	poppedWindow = window.open( "", pWindowName, pWindowFeatures  );
	poppedWindow.location.href = pURL;
	poppedWindow.focus();
}
function popup( pURL ){
//	popupWindow( pURL, "popup", "left=50,top=50,status=yes,dependent=yes,scrollbars=auto,resizable=1,width=780,height=400" );
	popupWindow( pURL, "popup", "left=50,top=50,status=no, location=no, dependent=yes,scrollbars=yes,resizable=1,width=780,height=400" );
}
function closePoppedWindow() {
	if ( navigator.appName != "Microsoft Internet Explorer" || parseInt( navigator.appVersion ) >= 4 ) {
		if( poppedWindow != null ) {
			if( !poppedWindow.closed ) {
				poppedWindow.close();
			}
		}
	}
}

function ConfirmDelete(){
        return confirm('Please Confirm Delete!');
}

